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.
Perfect for beginners learning OSF syntax:
- 01-hello-world.osf - Minimal example (2 min) β±οΈ
- 02-basic-document.osf - Formatting, headings, lists (5 min) β±οΈ
- 03-simple-presentation.osf - Slides with layouts (5 min) β±οΈ
- 04-basic-spreadsheet.osf - Data tables and formulas (10 min) β±οΈ
Professional document examples:
- technical-report.osf - Multi-section technical document
- meeting-notes.osf - Structured meeting notes template
- research-paper.osf - Academic document with citations
- user-manual.osf - Technical documentation
Business and educational slide decks:
- business-pitch.osf - Corporate pitch deck
- product-demo.osf - Product showcase slides
- quarterly-review.osf - Business review presentation
- training-slides.osf - Educational training materials
Data analysis and tracking sheets:
- budget-tracker.osf - Personal/business budget
- sales-dashboard.osf - Sales metrics dashboard
- expense-report.osf - Expense tracking with formulas
- inventory-management.osf - Inventory system
Professional tables with styling and alignment:
- basic-table.osf - Simple product catalog with default styling
- styled-table.osf - Examples of all three style variants
- sales-report.osf - Complete sales report with multiple tables
Document composition using @include directive:
- main.osf - Main document including multiple sections
- sections/intro.osf - Executive summary section
- sections/body.osf - Technical implementation section
- sections/conclusion.osf - Results and recommendations
Multi-format documents demonstrating OSF's versatility:
- business-report.osf - Doc + Slides + Sheets in one file
- project-proposal.osf - Comprehensive project proposal
- annual-report.osf - Full annual business report
Complex examples showcasing advanced features:
- complex-formulas.osf - Advanced Excel-style formulas
- nested-tables.osf - Complex table structures
- multi-theme.osf - Theme switching demonstration
- large-dataset.osf - Performance testing with large data
Real-world application scenarios:
- llm-prompts.osf - AI/LLM prompt documentation
- api-documentation.osf - Technical API docs
- classroom-materials.osf - Educational content
- personal-finance.osf - Personal finance tracking
# Clone the repository
git clone https://github.com/OmniScriptOSF/omniscript-examples.git
cd omniscript-examples
# Browse examples
ls -R# Install dependencies
npm install
# Validate all examples
npm run validate# 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# 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- Start with Getting Started examples in order
- Read the inline comments to understand syntax
- Modify examples to experiment
- Progress to category-specific examples
- Browse by category to find relevant template
- Copy the example file
- Modify metadata and content
- Export to your desired format
- Search for specific features (charts, formulas, layouts)
- Copy and adapt code snippets
- Consult comments for best practices
We welcome community contributions! Submit your own examples via pull request.
- File Naming: Use
kebab-case(e.g.,my-example.osf) - Location: Place in appropriate category folder
- Documentation: Add header comment explaining purpose
- Comments: Include inline comments for complex syntax
- Validation: Ensure file parses without errors
- Realistic Content: Use meaningful content, not lorem ipsum
- Showcase Features: Demonstrate specific OSF capabilities
// =============================================================================
// 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
}
# 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- 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
- 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
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
All examples are automatically validated on every commit using GitHub Actions. See .github/workflows/validate-examples.yml.
These examples are used as test cases in:
omniscript-parsertest suiteomniscript-convertersintegration testsomniscript-cliend-to-end tests
MIT License - see LICENSE for details.
All examples are provided as templates and may be freely used, modified, and distributed.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: https://omniscriptosf.github.io
- Email: alpha912@github.com
Happy documenting with OmniScript! π