Skip to content
@OmniScriptOSF

OmniScript OSF

Universal document format for LLMs and humans — Documents, Slides, Spreadsheets, Charts, Diagrams & Code in one plain-text DSL

OmniScript Format (OSF)

OmniScript Logo

🌟 The Universal Document DSL

Write once, export everywhere - Documents, Slides, Sheets, Charts, Tables & More

v1.2.0TestsSecurityLicense: MIT

🚀 Get Started📖 Documentation🧪 Playground💬 Discussions


🎉 v1.2.0 - Tables, Includes & Enterprise Security!

NEW in v1.2.0:

  • @table blocks - Markdown-style tables with captions, alignment, and styling
  • @include directive - Modular documents with file composition and security
  • 🔒 Security Grade A+ - Path traversal protection, ReDoS prevention, strict validation
  • 📊 203 tests - 130 core + 73 converters, 100% passing with 19 security tests
  • 🏗️ Refactored - 85-91% code reduction, highly modular architecture (46 focused files)
  • Zero breaking changes - Fully backward compatible with v1.1

💡 What is OmniScript?

OmniScript Format (OSF) is a universal document DSL that lets you write structured content once and export to multiple formats:

@meta { title: "Sales Report"; date: "2025-10-16"; }
@doc {
# Q4 Sales Report
**Outstanding performance** across all regions!
}
@table {
caption: "Regional Performance";
style: "bordered";
alignment: ["left", "right", "center"];
| Region | Revenue | Status |
| --- | --- | --- |
| North | $120K | ✓ Growth |
| South | $95K | → Stable |
| East | $145K | ✓ Growth |
}
@chart {
type: "bar";
title: "Revenue by Region";
data: [
{ label: "North"; values: [120]; },
{ label: "South"; values: [95]; },
{ label: "East"; values: [145]; }
];
}
@include { path: "./sections/recommendations.osf"; }

Export to: PDF 📄 • DOCX 📝 • PPTX 🎞️ • XLSX 📊 • HTML 🌐 • Markdown 📃


🚀 Quick Start

Install

# CLI tools (v1.2.1)
npm install -g omniscript-cli@1.2.1
# Libraries (v1.2.0)
npm install omniscript-parser@1.2.0
npm install omniscript-converters@1.2.0

Use

# Create documentecho'@doc { # Hello World }'> hello.osf
# Export to PDF
osf render hello.osf --format pdf --output hello.pdf
# Parse and validate
osf parse hello.osf
# Format code
osf format hello.osf

📦 Official Packages

PackageVersionDescriptionTestsStatus
omniscript-parser1.2.0Zero-dependency TypeScript parser83/83NPM
omniscript-cli1.2.1Command-line tools47/47NPM
omniscript-converters1.2.0PDF, DOCX, PPTX, XLSX converters73/73NPM
omniscript-vscode0.1.0VSCode extension with IntelliSense-✅ Stable
omniscript-examples-25+ professional examplesAll ✓✅ Complete

✨ Features

Block Types

  • @meta - Document metadata
  • @doc - Markdown content with rich formatting
  • @slide - Presentation slides
  • @sheet - Spreadsheets with formulas
  • @table - NEW v1.2 Markdown-style tables
  • @chart - Bar, line, pie charts
  • @diagram - Flowcharts, sequences (Mermaid/Graphviz)
  • @code - Syntax-highlighted code blocks

Directives

  • @include - NEW v1.2 File composition and modular documents

Export Formats

  • PDF with charts and diagrams
  • DOCX with tables and formatting
  • PPTX with native charts
  • XLSX with formulas
  • HTML with live rendering
  • Markdown with formatting

🏆 Why OmniScript?

Git-Friendly - Plain text format perfect for version control
AI-Friendly - Easy for AI to generate and understand
Developer-First - Designed for technical writers and developers
Type-Safe - Full TypeScript support with 0 'any' types
Secure - Grade A+ security with comprehensive testing
Fast - Zero-dependency parser, blazing performance
Modular - Compose documents from reusable sections
Extensible - Easy to add custom blocks and renderers


🔒 Security

OmniScript v1.2.0 achieves Security Grade A+:

  • ✅ Path traversal protection (prevents directory escape)
  • ✅ ReDoS prevention (bounded regex quantifiers)
  • ✅ XSS protection (multi-layer sanitization)
  • ✅ Strict input validation (all inputs validated)
  • ✅ Defense-in-depth architecture
  • ✅ 19 comprehensive security tests

View Security Review →


📊 Stats

MetricValue
Tests203/203 passing (100%)
Core Tests130 (parser + CLI)
Converter Tests73 (all formats)
Security Tests19 comprehensive
Security GradeA+
Lines of Code3,059 (highly modular)
Dependencies0 (parser)
Block Types8
Export Formats6
Examples25+

🎯 Use Cases

  • 📚 Technical Documentation - Write once, export to multiple formats
  • 🎓 Education - Create worksheets, slides, and exercises
  • 💼 Business Reports - Generate reports with charts and tables
  • 📊 Data Visualization - Build dashboards and analytics
  • 🎨 Presentations - Professional slides with code and diagrams
  • 📝 API Documentation - Version-controlled documentation
  • 🔬 Research Papers - Academic papers with citations and tables

🌍 Community


🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Ways to contribute:

  • 🐛 Report bugs
  • 💡 Suggest features
  • 📝 Improve docs
  • 🔧 Submit PRs
  • 🎨 Create themes
  • 📚 Add examples

📄 License

MIT License - See LICENSE


Built with ❤️ by the OmniScript community

⭐ Star us on GitHub📖 Read the Docs🧪 Try the Playground

Pinned Loading

  1. omniscript-coreomniscript-corePublic

    🚀 Core spec, parser, CLI & converters for OmniScript Format (OSF) — Universal document DSL: Documents, Slides, Spreadsheets, Charts, Diagrams & Code in one plain-text format

    TypeScript 1

  2. omniscript-vscodeomniscript-vscodePublic

    ✨ VSCode extension for OmniScript Format (OSF) — Syntax highlighting, IntelliSense, linting, snippets & live previews

    TypeScript

  3. omniscript-convertersomniscript-convertersPublic

    🔄 Converters for OmniScript Format (OSF) — Export to PDF, DOCX, PPTX, XLSX, Markdown, LaTeX, JSON & YAML

    TypeScript

  4. omniscript-examplesomniscript-examplesPublic

    📚 Example library for OmniScript Format (OSF) — 20+ real-world documents, slides, spreadsheets, charts & diagrams

    JavaScript

Repositories

Showing 7 of 7 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…