verin-lang0.9.0
Verin — durable statechart, capability-sandboxed, formally verified language compiling to WebAssembly & LLVM native binaries
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
Verin
Software AI agents can write, and humans can actually trust.
Website (verin-lang.org) · Browser Playground · Documentation · FAQ · 226-Port Corpus · Agent Evals · Live Server Stats
Verin (.verin) is a small, zero-dependency programming language combining capability sandboxing, JSON-snapshot durability, W3C SCXML hierarchical statechart model checking, and dual compilation from one source file to:
- Sandboxed WebAssembly (
.wasm): ~8.5 KB average binary, zero C toolchain, embedded capability manifest, deterministic fuel metering. - Full-LTO LLVM Native binaries (
--target native): ~65.9 KB average standalone executables and C/Python/Go/Rust FFI libraries with no garbage collector and no borrow checker. - Formal verification models: built-in BFS model checking (
verin verify) on the compiled.wasmbinary plus 1:1 exports to Lean 4, TLA+, and Z3 SMT-LIB2.
New in v0.9.0
- Light-OOP TP7-slim (#23): Strict
unit <name>+interface { ... }+ token-frugal omitted-signatureimpl { ... }(fn Store.get.cost { ... }), dottedfnnames, valuestructmethods (self/var self/static) & single static embedding (struct Child(Parent)+super.*),readonly/privatevisibility, structinvariants across all 3 engines + Lean 4 / TLA+ / Z3, unified leading-.(with+.Enum), field punning, and///unit docgen + doctests. Zero vtables, zero C runtime changes, 100% flat-module backward compatibility. - Agent-First CLI Tooling (#30):
verin doc --interface <file|dir> [--json]prints a compact signature-only API view with zeroimplleakage;verin check --fix <file> [--json]auto-fixeslet,===/!==, legacy bitwise ops, JS/Python aliases, and missing deferredimpl { ... }stubs;verin check --jsonemits structuredExpected: ...; Try: ...hints on every error. - Static Race-Check Hardening (#24) & Jump-Table Codegen: Closed transitive
fn, enclosing local, captured collection/struct, andvarparam mutation gaps inparallel/race/| par(...), plus automaticbr_table/LLVMswitchlowering formatchandf64bitcast intrinsics across all 3 engines.
New in v0.8.0
- First-Class Portable Native SIMD & Crypto-SIMD (#20): All 24 vector types (
u8x16..f64x8) + 6 mask types (boolx2..boolx64), unified bitwise methods (.and/.or/.xor/.shl/.shr), safe tails (load.pad/store.part), shuffles, casts, Auto-SoA, and portableu8x16.aes.enc/enclast+u64x2.clmul(x86 AES-NI/PCLMULQDQ, ARM64 Crypto/PMULL, constant-time WASM SIMD128, and zero-C-dep LLVM SW fallback) across all 3 engines + Lean 4 / TLA+ / Z3. - 100% Pure-Verin System Library (
8,044 LOC, 12 modules) & Zero C Crypto: Retiredruntime/verin_s2_rt.inc(4,687 -> 0 LOC) and deleted all C crypto, shrinkingruntime/verin_rt.wasmby -51.5% (348 KB -> 164.8 KB). Pure.verinAES-256-GCM hits1.92 GB/sNative (1.07x faster than retired C AES-NI+PCLMULQDQ) and 3.66x faster constant-time on FastWASM; ChaCha20-Poly1305 hits0.95 GB/sNative /61 MB/sFastWASM; BLAKE3 hits1.61 GB/s. - Race-Free Concurrency & Parallel Worker Pools (#19): Native POSIX & WASM worker pools, multi-machine
flowsupervisor, capability attenuation, and ASAN+UBSAN+LSan-hardened subprocess cancellation. - Automatic Zero-Copy & Vectorization Compiler Passes: Zero-copy
return buf.str()move, read-onlybytes(str)view, static full-overwriteu8[n]zero-memsetallocation (11.79 GB/swarm SIMD stdlib), overflow-freei64bounds checks, and hoisted scalar/SIMD(dp, len)enabling automatic LLVM AVX2 vectorization of scalar Verin loops.
New in v0.7.1
- 70 Certified SIMD & Auto-Vectorizer Wins across All 3 Engines: Full AVX2/AES-NI/PCLMUL/WASM-SIMD128 C11 runtime (8-way BLAKE3, 3-way PCLMUL CRC32C at
19.6 GB/s, 16-way SwissTableMap/LruMap/list.uniq, 6-op bitmap URI & charclass scanners,5xfaster JSON), plus Safe & Fast WASMv128auto-vectorizers forf64[], 8-widef32[](f32x4+pmin/pmax), 8-widei32[]/u32[]CIDR/bitmask count,u8[]/str.byte(i)diff/threshold/clamp, columnarsoa Struct[], and Safe-WASMv128linear-memoryBitSet/hash/codec/SWAR parse kernels (evals/SIMD-ACCRETIVE-LEDGER.md). - Zero-Vtable Protocols & Pure-Verin Stdlib: Compile-time
impl Display,Encode,Decodeacross WASM, LLVM, and formal backends, plus single-sourcepackages/std/{glob,path,ip}.verinstdlib modules beating hand-written C (1.83x,1.52x,1.08x). - LSP & CLI Tooling Catch-Up: Resilient mid-edit LSP hover & quick-fixes,
verin test --filter/--seed/--json,verin fmtreflex normalizations,verin diffhost fnchecks, static OTPsupervisechecks, andf64x2threshold +tbuf.reverse()parity fixes.
New in v0.7.0
- Self-hosted native durable services (
verin service): zero-downtime verified upgrades with pre-flight snapshot migration, auto-rollback,transient var,LISTEN_FDSsocket activation, and live Observer-lite introspection (verin service inspect <name>). Powersverin-lang.orgat2.4 MB RSS. - Multi-module native FFI & opaque C-buffer ABI:
--prefix <name>, static.aarchives, multi-fileverin compile a.verin b.verin --target native -o libbundle.a, Rust--dlopenbindgen, and thread-isolatedsave/restore/clone/emit_json. - Bounded quantifiers (
forall/exists):invariant forall i in 0..32: slots[i] >= 0across Safe WASM, Fastwasm-rt, LLVM Native, BFS, Lean 4, TLA+, and Z3. - Roc-inspired purity, comptime
const, &host fn:pure fnenforcement, automatic compile-timeconstevaluation into.rodata, and assume-guaranteehost fn ... ensures ...platform callbacks. - Deterministic simulation & OTP flow supervision:
simulate(seed: 42) { mock ... }intestblocks andsupervise { strategy: restForOne, maxRestarts: 3, window: 10s, onEscalate: halt }inflowgraphs.
Quick Taste
1. AI Agent Read-Only Audit Pipeline (use, policy, under, |)
// Request filesystem capability up front (baked into the .wasm binary manifest)
use fs
// Monotonic policy: nested code can tighten limits, never widen them
policy audit = budget(fuel: 50000, calls: 200, time: 5s), caps(fs: "ro")
// Filter inside the WASM sandbox; `|` pipes output, `.` is the current item
return under audit { // Enforce read-only + fuel cap
fs.glob("src/**/*.ts") // 1. Match paths inside sandbox
| map(fs.read(.)) // 2. Read files inside host (not LLM context)
| where(.lines > 100) // 3. Keep files > 100 lines
| select("path", "lines", "bytes") // 4. Return metadata only
| sort(-.lines) // 5. Sort descending by line count
| take(5) // 6. Return top 5 as compact JSON
}
2. Verified Durable Deploy Gate (state, view, invariant, transact + unwind)
use fs, sh, web // Explicit capability manifest
// Reusable exponential backoff schedule with +/-20% anti-storm jitter
policy ciRetry = retry(after: 5s, backoff: 2x, cap: 30s, jitter: 20%, max: 3)
input sha: str // Immutable run input
var approved = false // Durable state (persisted in JSON snapshots)
view canShip: bool = approved // Pure read-only view for callers & proofs
// Checked by `verin verify` on the compiled .wasm binary before deploy:
invariant !(inState(deploying) && !canShip)
eventually inState(done) || inState(aborted) || inState(timedOut)
state testing {
repeat {
res = try $`npm test` // Argv-safe shell execution
until res.ok
retry under ciRetry
} else -> aborted
-> review
}
// Pauses cleanly as a JSON snapshot while waiting for human approval or 24h timer
state review {
on approve { approved = true } -> deploying
on reject -> aborted
after 24h -> timedOut
}
state deploying {
// Atomic state rollback + LIFO `unwind` cleanup on any `?` failure
out = transact {
slot = web.post("https://deploy.example.com/slots", { sha: sha })?
unwind web.delete("https://deploy.example.com/slots/" + slot.json.id)
fs.write(".deploy-sha", sha)
$`./scripts/deploy.sh $sha`? // `$sha` passed as single safe argv token
"shipped"
}
if out.ok { -> done } else { -> aborted }
}
final state done
final state aborted
final state timedOut
3. Hierarchical W3C SCXML Statechart + Packed bitset (v0.6.0)
// Zero-allocation packed hardware flags (u8/u16/u32) with coalesced writes & Z3/Lean/TLA+ proofs
bitset GateFlags : u8 { built, tested, signed, notified }
var flags = GateFlags {}
var errors = 0
invariant !(in(live) && !flags.all())
initial state pipeline {
history { errors += 0 } -> build // Fallback runs only on first visit
initial state build {
on build_ok { flags.built = true } -> verify
on build_fail(msg: str) { raise err.build(msg) }
}
state verify {
on checks_ok { flags.tested = true; flags.signed = true; flags.notified = true }
always when flags.all() -> ready("v0.6.0")
}
final state ready(pkg: str) // Compound final payload -> parent `on done(pkg)`
on err.*(msg: str) { errors += 1 } // Dot-prefix wildcard catches err.build / err.net
on pause -> paused // Records shallow & deep history on exit
on cancel, abort -> aborted // Multi-event handler
on done(pkg: str) -> live(pkg)
}
state paused {
on resume, retry -> pipeline.history // Restores active substate (or .deepHistory)
}
final state live(pkg: str)
final state aborted
See the complete runnable example with inline tests in examples/15-scxml-release-orchestrator.verin.
Empirical Evidence: 226-Library Polyglot Corpus & Paired LLM Evals
To measure Verin beyond micro-benchmarks, we ported 226 permissively licensed open-source libraries across 6 languages (198 JavaScript, 11 TypeScript, 5 Go, 4 Python, 4 Rust, 4 C; MIT / ISC / BSD / Apache-2.0 / PSF-2.0) and recorded 3-way benchmarks in corpus/benchmarks.sqlite, inspectable side-by-side at verin-lang.org/corpus:
| Metric | Measured Result (corpus/benchmarks.sqlite, n=226) |
|---|---|
| Source lines (SLOC) | 38,836 -> 18,207 (-53.1%) |
| Cyclomatic complexity | 8,791 -> 6,697 (-23.8%) |
Sandboxed .wasm size |
8.5 KB avg (3.2 KB to 19.8 KB) |
| LLVM Native binary size | 65.9 KB avg (31.7 KB to 226 KB) |
| Verin LLVM Native vs OG | Faster on 214 / 226 (94.7%) (median 2.94x, geomean 2.89x, range 0.24x to 52.09x) |
Verin WASM (i64) vs OG |
Faster on 16 / 226 (median 0.19x, max 5.42x; pays JS-to-WASM marshaling + fuel metering in Node) |
Why these speed numbers matter (not bare-metal benchmarking): Verin beats 94.7% of bare upstream libraries across 6 languages (100% vs Python, TypeScript, and Rust; 97.1% vs JS/TS) while doing far more work under the hood: deterministic fuel metering, memory and bounds safety without a GC or borrow checker, capability sandboxing, durable JSON snapshots with
transact/unwindrollback, and model-checkable W3C SCXML statecharts, all in-53.1%fewer lines of code.
| Original Language | Libraries | LLVM Faster | LLVM Geomean vs OG | Standouts |
|---|---|---|---|---|
| Python 3.14 | 4 | 4 / 4 (100%) | 19.1x | py-shlex-split 50.4x, py-fnmatch-glob 37.8x, py-textwrap-dedent 10.1x |
| TypeScript (V8) | 11 | 11 / 11 (100%) | 3.69x | jwt-lite 15.8x, cron-schedule 12.46x, stomp-parser 12.15x, eventsource-parser 1.32x |
| JavaScript (V8) | 198 | 192 / 198 (97.0%) | 2.92x | p-limit 52.1x, ulid-codec 27.5x, normalize-path 6.71x, dns-wire 2.23x |
Rust (rustc -O) |
4 | 4 / 4 (100%) | 1.52x | rs-crc32c-castagnoli 2.38x, rs-aho-find 1.59x, rs-zigzag-varint 1.33x, rs-percent-encode 1.05x |
| Go 1.24 | 5 | 3 / 5 (60.0%) | 1.20x | go-filepath-clean 2.58x, gobreaker 1.69x, go-net-ip4 1.08x |
C (clang -O3) |
4 | 0 / 4 | 0.70x | c-pico-status 0.88x, c-siphash24 0.82x, c-jsmn-tokens 0.72x |
Paired LLM Coding Evals & Code-Mode MCP Benchmarks
Full multi-model paired benchmarks (governed by @deft/accretive) are published at verin-lang.org/evals, evals/LEDGER.md, and evals/BET-LOOP-LEDGER.md:
- Code-Mode vs. Raw MCP Tool-Calling (3 Vendors, 4 Models: Claude Sonnet, OpenAI Codex, xAI Grok 4.7 & Claude Haiku, 8 paired multi-file tasks across a 30-file workspace, 32/32 = 100% pass on Verin):
- Claude Sonnet: Both arms achieved 100% exact accuracy (8/8), while
verin mcp --stdio --caps fs:rocut tool turns by -78.9% (11.25 -> 2.38, paired p=0.0054, Holm p=0.0272), cut wall latency by -60.7% (14.3s -> 5.6s, Holm p=0.0456), cut context tokens by -81.3% (502.6k -> 94.2k, paired p=0.0446), and cut real billed USD by -94.5% (18.2x cheaper) ($2.0236 -> $0.1114, paired p=0.0261; 8/8 wins, up to 74x cheaper oncm-error-tally). - OpenAI Codex: Both arms achieved 100% exact accuracy (8/8), with 7/8 tasks solved in 1 single
verin_runcall and ALL FOUR efficiency metrics statistically significant after Holm-Bonferroni correction: tool turns -80.7% (11.00 -> 2.13, Holm p=0.0207), wall latency -31.0% (18.8s -> 13.0s, 8/8 wins, Holm p=0.0012), context tokens -29.3% (705.3k -> 499.0k, Holm p=0.0108), output tokens -46.7% (8/8 wins), and estimated API cost -27.6% (Holm p=0.0315). - xAI Grok 4.7: Verin Code-Mode improved accuracy from 62.5% (5/8) to 100.0% (8/8) (Raw MCP timed out on all 3 NDJSON log tasks), cut tool turns by -56.9% (
9.00 -> 3.88), cut context tokens by -88.1% (8.4x fewer) (3.02M -> 358.0k), cut wall latency by -52.7% (125.9s -> 59.6s), and cut real billed USD by -69.3% (3.3x cheaper) ($0.6795 -> $0.2083, paired p=0.0424). - Claude Haiku: Verin Code-Mode improved accuracy from 75.0% (6/8) to 100.0% (8/8) (Raw MCP failed both
cm-largest-tsandcm-p95-latency), cut tool turns by -66.7% (10.88 -> 3.63, paired p=0.0151), cut context tokens by -64.2% (499.2k -> 178.6k), cut wall latency by -56.5% (31.1s -> 13.5s, 2.3x faster), and cut real billed USD by -96.5% (28.7x cheaper) ($0.4513 -> $0.0157; up to 168x cheaper oncm-error-tally).
- Claude Sonnet: Both arms achieved 100% exact accuracy (8/8), while
- Code-Mode vs. Native Agent (Default OS Bash / Python / Grep Tools, 3 Frontier Vendors, 24/24 = 100% accuracy both arms):
- Claude Sonnet: Verin Code-Mode beat normal Claude Code across every metric: -67.1% context tokens (
454.3k -> 149.3k, Holm p=0.0024), -26.6% output tokens, -43.9% real USD ($0.3523 -> $0.1976), -10.6% wall time (7.3s -> 6.5s), and 2.50 vs 2.63 turns with strict 8 KB read-only WASM sandboxing instead of an OS shell. - OpenAI Codex: Exact tie on accuracy (8/8) and turns (2.25 vs 2.25, 7/8 solved in 1 script), with modest MCP schema overhead (
$0.165vs$0.120,14.3svs12.1s) while running cleanly in environments where OS-levelbwrapsandboxes fail to start. - xAI Grok 4.7: Exact tie on accuracy (8/8) and -4.5% context tokens (
466.5k -> 445.7k), while native Python/bash was faster (17.1svs60.7s) and slightly cheaper ($0.175vs$0.234).
- Claude Sonnet: Verin Code-Mode beat normal Claude Code across every metric: -67.1% context tokens (
- Multi-Turn Cached Sessions (Claude Sonnet, 4x4 turns = 16 paired turns, real
claude --resumeprompt caching): 93.8%pass@1(beating TS 87.5%), 100.0%pass@2(16/16), -51.1% output tokens (Holm p=0.0334), -67.4% SLOC (Holm p=0.0000), and -38.8% real billed USD ($0.8273 -> $0.5064, paired p=0.0124). - Core 16-Task Suite (Sonnet + Codex + Haiku, n=48 paired tasks): 95.8% cold-start
pass@1(matching TypeScript; 100% on Sonnet & Codex), 100.0%pass@2(48/48), -17.3% output tokens (-22.5% Frontier), and -46.1% SLOC (Holm p=0.0001). - Tier-2 Hard 16-Task Suite (Concurrency, Transactions, Binary Codecs & Formal Traps, Frontier Sonnet + Codex, n=32): 96.9%
pass@2(100% / 16/16 certifiedACCRETIVEon Claude Sonnet, 15/16 on Codex), -38.1% output tokens (Holm p=0.0151), and -62.4% SLOC (Holm p=0.0000), withverifyWasmcounterexample traces catching and repairing a subtle livelock cycle on both models on Attempt 2.
The two targets serve different roles: use .wasm when you want tiny, portable, zero-C-toolchain sandboxing (browsers, edge hosts, AI agent runners), and LLVM Native when you want standalone executables, FFI libraries, or high-throughput server workloads.
Dogfooded Live in Production
verin-lang.org is served directly by a verified Verin HTTP/2 + HTTP/1.1 WebAssembly server (website/server.verin + website/lib/http2.verin) running under caps(fs: "ro"), with live telemetry at verin-lang.org/stats.
Where Verin Fits (and Where It Doesn't)
Think of Verin as a verifiable, durable, sandboxed layer that embeds cleanly into existing stacks via verin bindgen (TypeScript/Node, C, Python, Go, Rust):
- Strong fit: AI-agent tool sandboxes, long-running workflows (approvals, retries, sagas,
migrate from vN), Sans-I/O binary/text protocols (frame,grammar), safety-critical statecharts (invariant,eventually), and structured automation pipelines. - Not trying to replace: Web UI frameworks (React/SwiftUI), ML training ecosystems (PyTorch/NumPy), or OS kernels. Keep your existing stack and embed
.verinmodules where sandboxing, durability, or formal verification matter.
CLI Quickstart (Zero Runtime Dependencies, Node 22+)
# Install globally from npm (provides the `verin` CLI), or run via `npx verin-lang ...`
npm i -g verin-lang
# Scaffold a verified starter project (mcp-sandbox | durable-workflow | binary-protocol | scxml-statechart)
verin init scxml-statechart --dir ./my-statechart
# Run a zero-dep durable SQLite worker with Worker Studio UI (live SVG statechart, search/filter, time-travel scrubber, JSON audit export & upgrade diff API), HTTP API & SIGKILL recovery
verin worker ./my-workflow/workflow.verin --db ./verin.db --port 8090 --verify
verin spawn workflow --db ./verin.db --id deploy-1
verin send deploy-1 approve:alice --db ./verin.db --key k1
verin ps --db ./verin.db
verin replay deploy-1 --db ./verin.db
# Step-by-step statechart execution tracer with var-diff timeline, live bitset flag decoding & automatic timer advancement
verin trace examples/15-scxml-release-orchestrator.verin --events build_ok,test_ok,sign_ok,notify_ok --strict
# Live watch mode for verify (with --explain), test, and check
verin verify workflow.verin --watch
# Benchmark Safe WASM vs Fast i64 WASM vs Full-LTO LLVM Native with bit-for-bit parity check
verin bench corpus/ports/rs-percent-encode.verin --view encode --args '["hello world / foo?a=1&b=2"]'
# Semantic diff across workflow versions (capabilities, states, transitions, invariants)
verin diff v1.verin v2.verin
# Check runtime, WASM/LLVM toolchains, and formally verify workspace .verin files
verin doctor --verify
# Run a capability-sandboxed one-liner or Unix stdin pipe (like jq, inside WASM)
verin -e 'use fs; return fs.glob("src/**/*.ts") | map(fs.read(.)) | sort(-.lines) | take(5) | select("path", "lines")' --caps fs:ro
cat logs.ndjson | verin -e 'rows = data.ndjson(stdin); { errors: rows | count(.level == "ERROR"), avg_ms: rows | avg(.ms), top: rows | sort(-.ms) | first }'
# Print the <1,000-token AI Agent Primer
verin skill
# Start the Verin MCP Code-Mode Sandbox (Streamable HTTP with built-in DDoS/amplification guard, or stdio; includes verin_run, verin_verify, verin_trace, verin_diff, verin_check, verin_skill)
verin mcp --http --port 3100 --root . --caps fs:ro,pty --fuel 100000 --rate-limit 60 --burst 20 --max-concurrent 16
verin mcp --stdio --root . --caps fs:ro,pty
Agent Plugins (Pi, Claude Code & Grok Build)
- Pi (
pi.dev, native in-process WASM, zero MCP):pi install npm:verin-lang(v0.5.1+). Registers in-processverin_run,verin_verify,verin_trace,verin_diff, a lazyverinskill,/verin-doctor, and/verin-sandbox(orpi --no-builtin-tools) to switch Pi into strict Verin Code-Mode. - Claude Code (
.claude-plugin/marketplace.json):/plugin install verin --marketplace visionik/verin(or/plugin marketplace add visionik/verinthen/plugin install verin@verin). Bundles read-onlyverin mcp,verin lspdiagnostics, the lazyverinskill (~43 tokens always-on), and an automatic post-editverin checkhook for.verinfiles. - xAI Grok Build:
grok plugin marketplace add visionik/verin && grok plugin install verin@verin --trust.
You can also gate Pull Requests with the reusable GitHub Action at .github/actions/verin-verify/action.yml, which runs verin check, verin verify, verin test, and posts Mermaid statechart summaries directly to $GITHUB_STEP_SUMMARY.
Or clone the repository to run the full 268-test verification suite (including 22 W3C SCXML IRP conformance suites, 1,000-transition Appendix D differential fuzzing, ASAN + UBSAN + LeakSanitizer zero-leak checks across runtime/POSIX/crypto, and a 2,048-input parser fuzzer) and 226-library corpus:
git clone https://github.com/visionik/verin
cd verin
# Run the full 268-test suite (Safe WASM, Fast i64 WASM, LLVM Native, SCXML IRP, ASAN/UBSAN/LSan, differential & parser fuzzers, bindgen, MCP, verify, plugins, LSP, website)
npm test
# Exhaustive BFS model checking (with plain-English counterexample trace) & Lean 4 / TLA+ / Z3 export
node src/cli.ts verify examples/11-verified-deploy.verin --explain
node src/cli.ts export examples/11-verified-deploy.verin --format lean
# Compile to .wasm, LLVM IR (.ll), standalone native executable, or shared library (.so)
node src/cli.ts compile ports/gobreaker.verin --mode fast -o /tmp/gobreaker.wasm
node src/cli.ts compile corpus/ports/p-limit.verin --target native --mode fast -o /tmp/p-limit
node src/cli.ts compile ports/cookie.verin --target native --mode fast -o /tmp/libcookie.so
# Generate typed bindings (TypeScript, Python ctypes, Go cgo, Rust FFI, Node)
node src/cli.ts bindgen examples/11-verified-deploy.verin --name VerifiedDeploy --inline -o /tmp/deploy.ts
node src/cli.ts bindgen ports/cookie.verin --target native --lang python --lib /tmp/libcookie.so -o /tmp/cookie.py
# Format, check, test inline blocks, generate Markdown + Mermaid docs, or run LSP
node src/cli.ts fmt examples/lib/http.verin --check
node src/cli.ts test examples/09-documented-workflow.verin --doc
node src/cli.ts doc examples/09-documented-workflow.verin
node src/cli.ts lsp
# Serve a Verin HTTP/2 + HTTP/1.1 WASM server locally
node src/cli.ts serve website/server.verin --root website/dist --port 8080 --verify
MCP Client Config (Claude Code / Cursor / Codex / Antigravity)
{
"mcpServers": {
"verin": {
"command": "npx",
"args": ["-y", "verin-lang", "mcp", "--stdio", "--root", ".", "--caps", "fs:ro,pty"]
}
}
}
Exposes verin_run (sandboxed .verin -> .wasm execution under strict capabilities & fuel limits), verin_verify (BFS model checking + Lean 4/TLA+/Z3 export), verin_check, and verin_skill.
(Clang/LLVM is optional and only required for --target native builds. Everything else runs on Node 22+ with zero npm runtime packages.)
Documentation & Key Files
- Introduction & Quickstart: plain-English tour with Mermaid diagrams and compiled examples.
- FAQ: honest answers for engineers & technical leaders (OOP / Alan Kay, LLM cold-start, apples-to-apples corpus scope, crash-before-checkpoint idempotency, code upgrades with
migrate from vN, formal verification boundaries). - AI Agent Primer (
SKILL.md): compact<1,500-token spec designed for LLM context windows. - Language Specification · Stdlib & Interop · Protocols & Codecs · Security Model · Architecture · Platform & Flows · v0.5 High-Perf Primitives · v0.6 Targets & Inline WASM SIMD · Whitepaper
License
MIT (see package.json). Pre-1.0 (v0.6.0), actively developed.