Skip to content

πŸ“š Example library for OmniScript Format (OSF) β€” 20+ real-world documents, slides, spreadsheets, charts & diagrams

License

OmniScriptOSF/omniscript-examples

OmniScript Examples Library

Comprehensive collection of OmniScript Format (OSF) examples, templates, and real-world use cases.

This repository contains 20+ professionally crafted OSF documents demonstrating all features of the format, from basic syntax to advanced multi-format compositions.


πŸ“š Categories

🌱 Getting Started

Perfect for beginners learning OSF syntax:

πŸ“„ Documents

Professional document examples:

πŸ“Š Presentations

Business and educational slide decks:

πŸ“ˆ Spreadsheets

Data analysis and tracking sheets:

πŸ“‹ Tables (v1.2+)

Professional tables with styling and alignment:

πŸ”— Modular Documents (v1.2+)

Document composition using @include directive:

🎯 Combined

Multi-format documents demonstrating OSF's versatility:

⚑ Advanced

Complex examples showcasing advanced features:

πŸ’‘ Use Cases

Real-world application scenarios:


πŸš€ Quick Start

Clone and Explore

# Clone the repository
git clone https://github.com/OmniScriptOSF/omniscript-examples.git
cd omniscript-examples

# Browse examples
ls -R

Validate Examples

# Install dependencies
npm install

# Validate all examples
npm run validate

Convert an Example

# Install OSF CLI globally (v1.2.1)
npm install -g omniscript-cli@1.2.1

# Convert to PDF
osf render getting-started/01-hello-world.osf --format pdf

# Convert to DOCX
osf render documents/technical-report.osf --format docx --theme corporate

# Convert to PPTX
osf render presentations/business-pitch.osf --format pptx --theme modern

Try New v1.2 Features

# Create a document with @table blocks
echo '@table { | A | B |\n| --- | --- |\n| 1 | 2 |\n}' > test.osf
osf render test.osf --format html

# Use @include for modular documents
echo '@include { path: "./section.osf"; }' > main.osf
osf parse main.osf

πŸ“– How to Use These Examples

For Learning

  1. Start with Getting Started examples in order
  2. Read the inline comments to understand syntax
  3. Modify examples to experiment
  4. Progress to category-specific examples

As Templates

  1. Browse by category to find relevant template
  2. Copy the example file
  3. Modify metadata and content
  4. Export to your desired format

For Reference

  1. Search for specific features (charts, formulas, layouts)
  2. Copy and adapt code snippets
  3. Consult comments for best practices

🀝 Contributing Examples

We welcome community contributions! Submit your own examples via pull request.

Contribution Guidelines

  1. File Naming: Use kebab-case (e.g., my-example.osf)
  2. Location: Place in appropriate category folder
  3. Documentation: Add header comment explaining purpose
  4. Comments: Include inline comments for complex syntax
  5. Validation: Ensure file parses without errors
  6. Realistic Content: Use meaningful content, not lorem ipsum
  7. Showcase Features: Demonstrate specific OSF capabilities

Example Template

// =============================================================================
// Example: [Name]
// Category: [Category]
// Description: [What this example demonstrates]
// Features: [List of OSF features used]
// Estimated time: [X minutes]
// =============================================================================

@meta {
  title: "Example Title";
  author: "Your Name";
  theme: default;
}

@doc {
  # Your content here
}

Submit Your Example

# Fork the repository
# Create a new branch
git checkout -b add-example-name

# Add your example
git add your-category/your-example.osf

# Commit with descriptive message
git commit -m "Add: [Category] - [Example Name]"

# Push and create pull request
git push origin add-example-name

πŸ” Finding Examples

By Feature

  • Markdown formatting: 02-basic-document.osf
  • Slide layouts: 03-simple-presentation.osf
  • Formulas: 04-basic-spreadsheet.osf, complex-formulas.osf
  • Multi-format: All files in combined/ folder
  • Themes: multi-theme.osf
  • Large scale: large-dataset.osf

By Use Case

  • Business: business-pitch.osf, quarterly-review.osf, business-report.osf
  • Education: training-slides.osf, classroom-materials.osf
  • Technical: technical-report.osf, api-documentation.osf, user-manual.osf
  • Personal: meeting-notes.osf, personal-finance.osf, budget-tracker.osf
  • AI/LLM: llm-prompts.osf

βœ… Example Quality Standards

All examples in this repository meet these criteria:

  • βœ“ Parse successfully with omniscript-parser
  • βœ“ Include descriptive header comments
  • βœ“ Contain realistic, meaningful content
  • βœ“ Demonstrate specific OSF features
  • βœ“ Follow OSF specification
  • βœ“ Validated by CI on every commit

πŸ“¦ Integration

CI/CD Validation

All examples are automatically validated on every commit using GitHub Actions. See .github/workflows/validate-examples.yml.

Test Suite Usage

These examples are used as test cases in:

  • omniscript-parser test suite
  • omniscript-converters integration tests
  • omniscript-cli end-to-end tests

πŸ“„ License

MIT License - see LICENSE for details.

All examples are provided as templates and may be freely used, modified, and distributed.


🌟 Support


Happy documenting with OmniScript! πŸ“

About

πŸ“š Example library for OmniScript Format (OSF) β€” 20+ real-world documents, slides, spreadsheets, charts & diagrams

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published