Vox
A programming language designed so you describe your data once and get a matching database, server, and client.

Current status
Open-source Rust compiler and language documentation live at voxlang.org.
Overview
Programming language and full-stack toolchain where defining your data model once automatically generates the database schema, backend API routes, and typed frontend client.
Why it was built
Modern web apps force teams to write the same data structure four times—in database migrations, backend models, API validators, and frontend types—creating bugs every time a field changes.
Why it helps
Lets humans and AI coding assistants build complete, type-checked web applications in a single `.vox` file with APIs that stay in sync and strict compile-time error handling.
What you can do
- Declare-once data models that generate database tables, server endpoints, and TypeScript clients
- Fast Rust-built compiler, type checker (`vox check`), and sandboxed script runner (`vox run`)
- Built-in editor autocomplete (LSP) and AI assistant integration out of the box
- Public open-source language specification and interactive documentation at voxlang.org
AI-Native Rust Programming Language, P0–P5 Type System & Socrates Gate
Compiles single-file .vox specifications (table, query, mutation, component, routes, @mcp.tool) into full-stack Axum + React + TanStack Start + Turso applications with built-in epistemic confidence gating.
Declare-Once Full-Stack Rust, TypeScript & Turso SQL Codegen
Lowers declarative table, query, mutation, workflow, component, and routes constructs through a unified HIR pipeline into type-safe Rust Axum handlers, SQLite/Turso DDL schemas, and typed React clients.
Structural UI Invariants & Zero Syntax Ambiguity
Makes invalid states unrepresentable at compile time (contrast-checked color types, overflow-checked geometry, local layer kinds instead of arbitrary z-index integers) with one canonical syntax shape per concept.
Five-Signal Epistemic Gate & Native QLoRA Memory
Fuses evidence quality, citation coverage, logprobs, semantic entropy, and self-consistency into answer/hedge/clarify/abstain decisions while Mens trains local Candle QLoRA adapters on verified golden .vox programs.
Zero-Trust Secret Vault, MCP Tool Mesh & Ludus Quests
Exposes compiler diagnostics and AST symbol search over MCP, classifies tool side-effects (read_only, local_mutation, external_side_effect), guards secrets via Clavis, and gamifies engineering milestones via Ludus.
Inspect golden `.vox` programs and their generated Rust Axum + Turso + React output
table Post {
title: str
}
query list_posts() to int {
return len(db.Post.all())
}
mutation publish_post(title: str) to Result[str] {
db.Post.insert({ title: title })?
return Ok("published")
}
component BlogHome() {
state n: int = 0
view: column() {
text() { "blog" }
link(href="/console") { "Open studio" }
}
}
routes {
"/" to BlogHome
}-- 1. Turso / SQLite DDL (vox-db)
CREATE TABLE IF NOT EXISTS post (id INTEGER PRIMARY KEY, title TEXT NOT NULL);
// 2. Rust Axum Router & Handler (vox-compiler -> HirModule)
app.route("/api/query/list_posts", get(handle_list_posts))
.route("/api/mutation/publish_post", post(handle_publish_post));
// 3. Typed React + TanStack Client RPC
export async function publishPost(title: string): Promise<Result<string>>Single-file .vox declaration vs. 4-layer full-stack boilerplate
Traditional stacks duplicate the same Post schema across SQL migrations, ORM models, Express/Axum route validators, and untyped frontend fetch() calls.
// 1. migrations/001.sql + 2. schema.ts + 3. routes.ts + 4. api.ts
CREATE TABLE posts (id INT PRIMARY KEY, title TEXT NOT NULL);
app.post("/api/posts", async (req, res) => {
const body = req.body as any; // untyped drift risk
await db.insert(posts).values({ title: body.title });
});Declaring table, query, mutation, component, and routes once in .vox deterministically generates the Turso SQL migration, Rust Axum handler, and typed client RPC.
table Post { title: str }
query list_posts() to int { return len(db.Post.all()) }
mutation publish_post(title: str) to Result[str] {
db.Post.insert({ title: title })?
return Ok("published")
}
routes { "/" to BlogHome }0.7545 → 0.961 (+0.2065 · Sharpness +55.7% · PSNR 45.03 dB)Negation parity & evidence verifiedInteractive walkthrough
Step through how Vox works without creating an account or installing local dependencies.
Entry & problem context
Maturity: Live in productionModern web apps force teams to write the same data structure four times—in database migrations, backend models, API validators, and frontend types—creating bugs every time a field changes.
Programming language and full-stack toolchain where defining your data model once automatically generates the database schema, backend API routes, and typed frontend client.
Shared platform architecture sandbox
Test the live cross-language single source of truth shared across TypeScript, Python, and Rust.
Evidence grounding & negation parity check
RejectedPolarityFlip (grounded: false, overlap: 1)clarify (confidence: 0.425)Dual-gate write receipt verifier (DAWRI) & FTT math healer
trueNo profile changes were committed in this turn.142, σ 133.5515, gist positive_ev_with_downsideRemote or hybrid? · Target salary floor? · Company stage? (lockout: false)Semiotic Brand Identity & Federated SoC Governance
Peircean Brand Mark, Multi-Size Squint Test & 3-Tier SoC Boundary
ast_wave_nexuspublic_oss (max tier: oss_public)100.0% (non-redundant >15%) · Retired symbol trap: Clear (0 retired symbols)Engineering Velocity & Open-Source Hygiene
Synced from @brbrainerd and @vox-foundation via the GitHub GraphQL API (GET /api/github/stats).
Single-file full-stack programming language and Rust compiler that generates database schemas, server routes, and typed clients from one declaration.
Interactive political economy simulator with ECS civic rights, institutional modeling, policy levers, and multi-regime scenarios.
Interactive 3D macaque brain atlas and stereo surgical view planner rendered in browser WebGL.
Single-binary Rust and React kiosk shell for Raspberry Pi digital photo frames with remote mobile upload.