Skip to content

Core spec, reference parser, and CLI tools for OmniScript Format (OSF) — a universal LLM-friendly, Git-native document language combining the powers of Markdown, YAML, LaTeX, DOCX, PPTX, and XLSX into a single plain-text DSL.

License

Notifications You must be signed in to change notification settings

OmniScriptOSF/omniscript-core

Repository files navigation

OmniScript Core

OmniScript Logo

OmniScript Format (OSF)

🚀 The Universal Document DSL for LLMs, Agentic AI, and Git-Native Workflows

MIT License npm version npm downloads GitHub stars

Build Status Coverage Status TypeScript Node.js

📖 Documentation🚀 Quick Start💡 Examples🤝 Contributing💬 Discussions


✨ What is OmniScript Format?

OmniScript Format (OSF) revolutionizes document creation by unifying the best features of multiple formats into a single, AI-friendly syntax:

📝 Rich Documents

Like Markdown & LaTeX

  • Expressive prose & math
  • Structured content
  • Beautiful typography

🎯 Dynamic Presentations

Like PowerPoint & Keynote

  • Rich layouts & themes
  • Smooth transitions
  • Interactive elements

📊 Live Spreadsheets

Like Excel & Google Sheets

  • Data tables & formulas
  • Real-time calculations
  • Dynamic charts

🎯 Current Version: v0.5.6 | 🔥 Status: Active Development | 📅 Next Release: v1.0.0


🌟 Why Choose OmniScript?

Feature Traditional Formats OmniScript Format
🔄 Version Control Binary, merge conflicts ✅ Git-native, meaningful diffs
🤖 AI Integration Complex parsing ✅ LLM-friendly syntax
📱 Multi-format Output Single format only ✅ Export to DOCX, PPTX, XLSX, MD
🔗 Interoperability Format silos ✅ Unified document ecosystem
⚡ Live Formulas Static content ✅ Dynamic calculations
🎨 Rich Styling Limited or complex ✅ Intuitive theme system

🚀 Quick Start

📦 Installation

Global CLI Installation

npm install -g omniscript-cli
# or
pnpm add -g omniscript-cli

Library Integration

# Core parser only
npm install omniscript-parser

# With professional format converters
npm install omniscript-parser omniscript-converters

# or with pnpm
pnpm add omniscript-parser omniscript-converters

⚡ Quick Commands

# Parse and validate OSF files
osf parse examples/rich_demo.osf

# Render to beautiful HTML
osf render examples/rich_demo.osf --format html

# Export to professional formats (requires omniscript-converters)
osf render examples/rich_demo.osf --format docx --output report.docx
osf render examples/rich_demo.osf --format pptx --output slides.pptx
osf render examples/rich_demo.osf --format xlsx --output data.xlsx
osf render examples/rich_demo.osf --format pdf --output document.pdf

# Export to other formats
osf export examples/rich_demo.osf --target md

# Format for consistency
osf format examples/rich_demo.osf

💡 Example in Action

🎯 Click to see a complete OSF example
@meta {
  title   : "Q2 Business Review";
  author  : "Alphin Tom";
  date    : "2025-06-07";
  theme   : "CorporateBlue";
}

@doc {
  # Executive Summary

  Our Q2 performance exceeded expectations with **15% revenue growth**
  and significant improvements in customer retention.

  ## Key Metrics
  - Revenue: $2.3M (+15%)
  - Customer Churn: 3% (-2%)
  - Team Size: 45 (+8 new hires)
}

@slide {
  title : "Q2 Highlights";
  layout : TitleAndBullets;
  transition : FadeIn;
  bullets {
    "💰 Revenue grew 15% to $2.3M";
    "👥 Customer churn decreased to 3%";
    "🚀 Launched 3 major features";
    "🌟 Team expanded by 8 members";
  }
}

@sheet {
  name : "Regional Performance";
  cols : [Region, Q1_Revenue, Q2_Revenue, Growth_Percent];
  data {
    (2,1)="North America"; (2,2)=850000; (2,3)=975000;
    (3,1)="Europe"; (3,2)=650000; (3,3)=748000;
    (4,1)="Asia Pacific"; (4,2)=400000; (4,3)=477000;
  }
  formula (2,4): "=(C2-B2)/B2*100";
  formula (3,4): "=(C3-B3)/B3*100";
  formula (4,4): "=(C4-B4)/B4*100";
}

📦 Package Ecosystem

Core Packages

omniscript-parser omniscript-cli omniscript-converters

Package Description Version Downloads
omniscript-parser Core parsing library with TypeScript support npm npm
omniscript-cli Command-line tools with osf binary npm npm
omniscript-converters Professional format converters (DOCX, PPTX, XLSX, PDF) npm npm

🏗️ Project Architecture

OmniScript Architecture
graph TB
    A[📝 OSF Source Files] --> B[🔍 Parser]
    B --> C[🎯 AST Representation]
    C --> D[📊 Renderer]
    C --> E[🔄 Transformer]
    D --> F[🌐 HTML Output]
    D --> G[📄 PDF Output]
    E --> H[📝 Markdown]
    E --> I[📊 Excel/DOCX]
    E --> J[🎨 PowerPoint]
Loading

📂 Repository Structure

omniscript-core/
├── 📋 spec/               # Versioned specifications
│   ├── v0.5/             # Current stable spec
│   ├── v1.0/             # Next major version
│   └── roadmap.md        # Development roadmap
├── 🔍 parser/            # Core parsing engine
├── ⚡ cli/               # Command-line interface
├── 📚 examples/          # Sample OSF documents
├── 🧪 tests/             # Comprehensive test suite
├── 📖 docs/              # Architecture & design docs
└── 🔧 scripts/           # Development & release tools

🛠️ Development

Prerequisites

Node.js pnpm TypeScript

Setup

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

# Install dependencies
pnpm install

# Build all packages
pnpm run build

# Run tests
pnpm test

# Start development
pnpm run dev

🚀 Release Process

📋 For Maintainers
# Patch release (0.5.6 → 0.5.7)
pnpm run release:patch

# Minor release (0.5.6 → 0.6.0)
pnpm run release:minor

# Major release (0.5.6 → 1.0.0)
pnpm run release:major

Our automated release process:

  • ✅ Runs comprehensive tests
  • ✅ Updates package versions
  • ✅ Creates GitHub releases
  • ✅ Publishes to npm
  • ✅ Updates documentation

🎯 Roadmap

🗓️ Version Timeline

Version Status Features ETA
v0.5 Current Core parsing, CLI tools, basic rendering Released
v1.0 🚧 In Progress Advanced exports, diagram support Q2 2025
v1.1 📋 Planned Real-time collaboration, plugins Q3 2025
v2.0 💭 Future Visual editor, cloud integration 2026

🔥 Coming Soon

  • 🎨 Visual Editor - WYSIWYG editing experience
  • 📊 Advanced Charts - Interactive data visualizations
  • 🔗 Real-time Collaboration - Multi-user editing
  • 🧩 Plugin System - Extensible functionality
  • ☁️ Cloud Integration - Seamless sync across devices

🤝 Contributing

We ❤️ contributions from the community!

Contributors PRs Welcome First Timers Only

🌟 Ways to Contribute

  • 🐛 Report bugs via GitHub Issues
  • 💡 Suggest features in Discussions
  • 📖 Improve documentation
  • 🔧 Submit pull requests
  • Star the repository

📋 Quick Links


📊 Project Stats

GitHub repo size GitHub code size Lines of code GitHub commit activity


📄 License

MIT License © 2025 Alphin Tom

License: MIT

This project is free and open-source software. We believe in the power of community-driven development.


🌐 Connect With Us

GitHub Discussions Twitter Discord

Maintainer: Alphin Tom | Organization: OmniScriptOSF


OmniScript

🚀 Ready to revolutionize your document workflow?

Get Started NowView ExamplesJoin Community


Made with ❤️ by the OmniScript community

About

Core spec, reference parser, and CLI tools for OmniScript Format (OSF) — a universal LLM-friendly, Git-native document language combining the powers of Markdown, YAML, LaTeX, DOCX, PPTX, and XLSX into a single plain-text DSL.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published