Docs Examples Why Mantra About Language Tour Download GitHub
v0.2.0 — mantra.web ยท mantra.rest ยท Enhanced ORM (macOS, Linux, Windows)

Get Mantra

Download Mantra v0.2.0 including the mantrac compiler, mantra_web, mantra_rest, and enhanced mantra_sql_orm and mantra MDK. Runs on the Mantra VM or compiles to native binaries via Clang.

Latest Release (v0.2.0) ↓ All Releases & Version Archive ↓
Apple macOS
Apple macOS

Universal โ€” Apple Silicon (M1/M2/M3) & Intel x86_64

Download .dmg v0.2.0 (1.4 MB)
$ ./installer/macos/install.sh
Linux
Linux

Ubuntu 22.04+, Debian, Fedora, Arch โ€” x86_64 & ARM64

Download .tar.gz (2.4 MB) Self-Extracting .sh (2.4 MB)
$ sudo ./installer/linux/install.sh
Windows
Windows

Windows 10 / 11 64-bit (MSVC & MinGW runtimes)

Download .zip Bundle (2.4 MB)
.\installer\windows\Install-Mantra.ps1

Version-Level Downloads

Select your preferred release version. Each package includes pre-compiled binaries (mantra, mantrac), the Mantra standard library, and installation scripts.

Mantra v0.2.0

Latest Stable
Released: October 29, 2026 • View Release on GitHub →
Release Highlights:
  • โœจ mantra.web โ€” Built-in HTTP server, flexible routing, request/response cycle, middleware chain, and template engine.
  • โœจ mantra.rest โ€” First-class RESTful controllers, CRUD routing, JSON serializer, and standardized ApiResponse.
  • โœจ mantra.sql.orm โ€” Added SQLiteAdapter alongside MySQL & PostgreSQL, QueryBuilder, and database migrations.
  • โšก mantrac compiler โ€” Native C emitter enhancements with Clang -O2 optimization support and enhanced type diagnostics.
  • ๐Ÿ“š Docs & Specs โ€” Comprehensive documentation for all 11 standard packages.
Platform / OS Package File Type Size Action
macOS (Apple Silicon & Intel) Mantra-0.2.0-macOS.dmg Apple Disk Image (.dmg) 1.4 MB โฌ‡ Download .dmg
Linux (Ubuntu, Debian, Fedora, Arch) mantra-0.2.0-linux.tar.gz Compressed Tarball (.tar.gz) 2.4 MB โฌ‡ Download .tar.gz
Linux (Self-Extracting) mantra-installer-linux.sh Shell Bundle (.sh) 2.4 MB โฌ‡ Download .sh
Windows (10 / 11 64-bit) mantra-0.2.0-windows.zip Portable ZIP Archive 2.4 MB โฌ‡ Download .zip
๐Ÿ“– Browse v0.2.0 Documentation → Source Tree (v0.2.0)
SHA-256 Checksums (v0.2.0):
06fbed656bb4841a9107c3ab796a5ec3536a7092cdf8648ee500d4a98ad12c05 Mantra-0.2.0-macOS.dmg 1ce65656c08721ff6bed2bb41417cbc974dd600bf1d625e17b00ad0eae7b4cff mantra-0.2.0-linux.tar.gz f3c6e1d8d2141144c55efdbf2a18bebe8d42d1abaec9e4a48f741f16d3801ae9 mantra-installer-linux.sh 254d8f297ade568b96843c127bede1d2a66aa96b211822e67cf2eb655814492c mantra-0.2.0-windows.zip

Mantra v0.1.0

Previous Stable
Released: October 28, 2026 • View Release on GitHub →
Release Highlights:
  • ๐Ÿš€ Initial Public Release of the Mantra Programming Language compiler and runtime.
  • โšก mantrac compiler โ€” Lexer, AST, recursive-descent Parser, and TypeChecker with full OOP validation.
  • ๐Ÿ–ฅ Mantra VM โ€” Integrated bytecode interpreter for immediate mantrac --run execution.
  • ๐Ÿ›  MDK (Mantra Development Kit) โ€” Project scaffolding (mantra new), code formatting (mantra fmt), and doc generation (mantra doc).
  • ๐Ÿ“ฆ Base Standard Library โ€” mantra.lang, mantra.io, mantra.util.collections, mantra.net.http, and mantra.mdk.
Platform / OS Package File Type Size Action
macOS (Apple Silicon & Intel) Mantra-0.1.0-macOS.dmg Apple Disk Image (.dmg) 1.4 MB โฌ‡ Download .dmg
Linux (Ubuntu, Debian, Fedora, Arch) mantra-0.1.0-linux.tar.gz Compressed Tarball (.tar.gz) 2.4 MB โฌ‡ Download .tar.gz
Windows (10 / 11 64-bit) mantra-0.1.0-windows.zip Portable ZIP Archive 2.4 MB โฌ‡ Download .zip
๐Ÿ“– Browse v0.1.0 Documentation → Source Tree (v0.1.0)
SHA-256 Checksums (v0.1.0):
06fbed656bb4841a9107c3ab796a5ec3536a7092cdf8648ee500d4a98ad12c05 Mantra-0.1.0-macOS.dmg 1ce65656c08721ff6bed2bb41417cbc974dd600bf1d625e17b00ad0eae7b4cff mantra-0.1.0-linux.tar.gz 254d8f297ade568b96843c127bede1d2a66aa96b211822e67cf2eb655814492c mantra-0.1.0-windows.zip

Verify your installation

Run these commands once the installation completes:

terminal
$ mantra --version Mantra Development Kit (MDK) v0.2.0 Compiler: mantrac 0.2.0 Host Target: aarch64-apple-darwin $ mantrac --help Mantra Compiler (mantrac) v0.2.0 Usage: mantrac <input.mantra> [options] --emit vm Run on the Mantra VM (default) --emit native Compile to native binary via Clang --check Type-check only (no code output) --help Show this message

Create your first Mantra project

The MDK scaffolds a complete project with a mantra.toml manifest:

terminal
$ mantra new my_app โœ“ Created project: my_app/ my_app/ โ”œโ”€โ”€ mantra.toml <-- project manifest โ””โ”€โ”€ src/ โ””โ”€โ”€ main.mantra <-- entry point $ cat my_app/mantra.toml
mantra.toml
[package] name = "my_app" version = "0.1.0" edition = "2026" description = "Mantra application: my_app" license = "MIT" [dependencies] # add packages here [build] entry = "src/main.mantra"

๐ŸŽ‰ What’s New in v0.2.0

Released alongside the v0.2.0 standard library โ€” major new packages and ORM improvements.

New Packages
  • โœ… mantra.web โ€” Server, Router, Request, Response, Middleware, Template
  • โœ… mantra.rest โ€” RestController, JsonSerializer, RouteHandler, ApiResponse
Enhanced in v0.2.0
  • โœ… mantra.sql.orm โ€” QueryBuilder, SQLiteAdapter, Migration, SchemaBuilder
  • โœ… 3 new Rust crates: mantra_sql_orm, mantra_web, mantra_rest
  • โœ… Workspace expanded to 11 crates

Build from Source (Rust)

The Mantra toolchain is an 11-crate Rust workspace. You need Rust 1.80+ and Clang for native compilation.

terminal
$ git clone https://github.com/solotrondigital/mantra_programming_language.git $ cd mantra_programming_language $ cargo build --release Compiling mantrac_lexer v0.1.0 Compiling mantrac_ast v0.1.0 Compiling mantrac_parser v0.1.0 Compiling mantrac_checker v0.1.0 Compiling mantrac_vm v0.1.0 Compiling mantrac_codegen v0.1.0 Compiling mantrac v0.1.0 Compiling mantra_mdk v0.1.0 Compiling mantra_sql_orm v0.2.0 Compiling mantra_web v0.2.0 Compiling mantra_rest v0.2.0 Finished release in 18.4s $ ./target/release/mantrac examples/01_hello_world.mantra ======================================== Welcome to the Mantra Language! ======================================== Hello, Developer! Mantra is up and running.

11-Crate Rust Workspace (v0.2.0)

mantrac_lexer

Tokeniser: converts raw .mantra source text into a flat token stream.

mantrac_ast

Abstract Syntax Tree nodes: classes, interfaces, functions, expressions.

mantrac_parser

Recursive-descent parser that builds the AST from the token stream.

mantrac_checker

Type checker: resolves names, verifies interface contracts and override correctness.

mantrac_vm

Bytecode interpreter โ€” runs .mantra programs without native compilation.

mantrac_codegen

C emitter that generates portable C99, then invokes Clang to produce a native binary.

mantrac

The compiler driver CLI โ€” orchestrates lexer โ†’ parser โ†’ checker โ†’ codegen.

mantra_mdk

The Mantra Development Kit: mantra new, mantra fmt, mantra doc.

mantra_sql_orm v0.2.0

Model, QueryBuilder, MySQLAdapter, PostgreSQLAdapter, SQLiteAdapter, Migration & SchemaBuilder.

mantra_web NEW v0.2.0

HTTP Server, Router, Request/Response, Middleware pipeline, and Template engine.

mantra_rest NEW v0.2.0

RestController, JsonSerializer, RouteHandler, RouteRegistry, ApiResponse, Pagination.