Omniscript

October 28, 2025 ยท View on GitHub

License: MIT Node Version npm version Tests

A modern, production-ready programming language for full-stack development with advanced type safety, async/await, pattern matching, and built-in ORM capabilities.

โœจ Features

Language Features

  • ๐Ÿ”’ Advanced Type System - Strong typing with inference, generics, and union/intersection types
  • โšก Async/Await - First-class asynchronous programming support
  • ๐ŸŽฏ Pattern Matching - Powerful pattern matching and destructuring
  • ๐ŸŽจ Decorators - Component, state, effect, and computed decorators
  • โš™๏ธ Operator Overloading - Custom operator implementations
  • ๐Ÿ”„ Reactive Programming - Built-in reactive features for modern UIs

Developer Experience

  • ๐Ÿ“ฆ Complete CLI Toolchain - new, build, dev, run, repl commands
  • ๐Ÿ”ง VS Code Extension - Full IDE support with syntax highlighting and debugging
  • ๐Ÿ—๏ธ Project Scaffolding - Professional project structure generation
  • ๐Ÿ”ฅ Hot Reloading - Modern development workflow
  • ๐Ÿ“š Comprehensive Documentation - Extensive guides and API references

Runtime & Performance

  • โšก JIT Compilation - Optimized execution with just-in-time compilation
  • ๐Ÿš€ SIMD Operations - Hardware-accelerated mathematical computations
  • ๐Ÿ’พ Memory Management - Efficient pooling and garbage collection
  • ๐Ÿ”€ Parallel Execution - Multi-threading and concurrent processing

Standard Library

  • ๐Ÿ—„๏ธ Database ORM - Type-safe database queries (PostgreSQL, SQLite)
  • ๐ŸŒ Networking & HTTP - Built-in HTTP client and server utilities
  • ๐Ÿ” Cryptography - Security and encryption functions
  • ๐ŸŽฌ Media Processing - Audio, video, and graphics capabilities
  • ๐Ÿงฌ AI & ML Utilities - Neural networks and genetic algorithms
  • ๐Ÿ“Š Collections - Rich data structures and algorithms
  • โœ… Validation - Input validation and sanitization

๐Ÿš€ Quick Start

Installation

npm install -g omniscript

Create a New Project

omni new my-project
cd my-project

Run Your Project

# Development mode with hot reload
omni dev

# Build for production
omni build

# Run production build
omni run

Interactive REPL

omni repl

๐Ÿ“– Example

// Type-safe web server with ORM
@component
class UserService {
  @state users: User[] = []

  async getUser(id: number): User | null {
    return await db.users.findOne({ id })
  }

  @computed
  get activeUsers(): User[] {
    return this.users.filter(u => u.active)
  }
}

// Pattern matching
match response {
  { status: 200, data } => handleSuccess(data),
  { status: 404 } => handleNotFound(),
  { error } => handleError(error)
}

// Async/await with error handling
async function fetchData() {
  try {
    const result = await api.getData()
    return result
  } catch (error) {
    logger.error("Failed to fetch data", error)
    throw error
  }
}

๐Ÿ—๏ธ Project Structure

omniscript/
โ”œโ”€โ”€ src/               # Source code (40k+ lines)
โ”‚   โ”œโ”€โ”€ compiler/      # Compiler and optimizer
โ”‚   โ”œโ”€โ”€ parser/        # Language parser
โ”‚   โ”œโ”€โ”€ runtime/       # Runtime engine
โ”‚   โ”œโ”€โ”€ stdlib/        # Standard library
โ”‚   โ””โ”€โ”€ type-checker/  # Type system
โ”œโ”€โ”€ tests/             # Test suite (782 tests)
โ”œโ”€โ”€ docs/              # Documentation
โ”œโ”€โ”€ examples/          # Example projects
โ”œโ”€โ”€ demos/             # Demo applications
โ””โ”€โ”€ vscode-extension/  # VS Code integration

๐Ÿงช Testing

# Run all tests
npm test

# Run tests with coverage
npm run test:coverage

# Watch mode
npm run test:watch

Test Coverage: 782/782 tests passing (100%)

๐Ÿ› ๏ธ Development

# Install dependencies
npm install

# Build the project
npm run build

# Run linter
npm run lint

# Format code
npm run format

๐Ÿ“š Documentation

๐Ÿ” Security

We take security seriously. See our Security Policy for reporting vulnerabilities.

๐Ÿค Contributing

Contributions are welcome! Please see our Contributing Guide for details.

๐Ÿ“‹ Requirements

  • Node.js: >= 16.0.0
  • npm: >= 8.0.0

๐Ÿ“œ License

MIT License - see LICENSE file for details

๐ŸŽฏ Roadmap

See ROADMAP.md for planned features and improvements.

๐Ÿ“ Changelog

See CHANGELOG.md for release history.

๐ŸŒŸ Show Your Support

Give a โญ๏ธ if this project helped you!

๐Ÿ‘ค Author

RyAnPr1Me

๐Ÿ™ Acknowledgments

Built with TypeScript, ANTLR4, and modern web technologies.


Status: โœ… Production Ready | v2.1.0