Sirpi Features

A toolchain built for sovereign architecture.

1. The Llama-Powered CLI

The Sirpi CLI is not just a build tool; it is an intelligent architectural coach. Powered by a specialized, edge-hosted Llama model (LoRA), the CLI understands the 10 Laws of Object Calisthenics natively.

  • Semantic Linting: Instead of generic syntax errors, the CLI provides context-aware refactoring advice (e.g., "Violation of Law 2. Suggestion: Use polymorphism to replace this branching logic.")
  • Automated Sculpting: Generate boilerplate-free `.sculpt` files and compliant test skeletons automatically.
  • Lattice Analysis: Ask the CLI to audit your architecture for friction and "chatty" message passing.

2. Direct-to-WASM Compiler

Sirpi bypasses the "JavaScript Tax" by compiling your business logic directly into WebAssembly.

  • Hardware-Level Enforcement: Law 9 (No Getters) is physically enforced by the WASM sandbox.
  • Near-Native Speed: Zero Virtual DOM diffing. The WASM lattice runs at native speed, providing 60FPS UI updates.
  • Universal Portability: Run the exact same compiled logic in the Browser, on Cloudflare Workers, or in Tauri desktop apps.

3. The Sculpt DSL

A minimalist, domain-specific language designed to reduce LLM token usage and eliminate boilerplate.

  • Built-in Guardrails: The `else` keyword is syntactically invalid. Classes are physically limited to two instance variables.
  • Linguistic Sovereignty: Write keywords in Tamil, Marathi, or any language via transparent Mnemonic Mapping.
  • Automatic Wrapping: Define domains (e.g., `domain Age = number`) and the compiler handles the primitive wrapping automatically.

4. Surgical Static Export

Sirpi replaces heavy Static Site Generators like Jekyll. The framework acts as its own projector.

  • Zero-Overhead SSG: Run `sirpi export` to boot the WASM lattice on the server and capture the exact DOM state as flat HTML.
  • Isomorphic Rendering: Guarantee that the static HTML perfectly matches the dynamic application state.

5. The Sovereign Debugger

A forensic toolset for mastering your state lattice.

  • Visual Intent Mapping: See the exact causal chain of every UI update.
  • Time-Travel Auditing: Rewind the message stream to diagnose complex state bugs deterministically.