zanith
Zanith · v0.2.0Open source · MIT

Your schema is the runtime.

A SQL data engine that doesn't generate code. The schema parses once at startup into a runtime graph; queries compile to parameterized SQL on the way to the wire. Open source, MIT-licensed — the engine, the migrations, the Studio, all of it.

MIT · open sourceno build stepno generated files765 / 765 tests
zanith studio — fyvault_prod
contractsSQL · 1
titlestatus
Crestline MSA renewalactive
Fyvault DPA — EU regionactive
Northwind pilot termsdraft
Atlas SOW #2active
Helios NDA (mutual)draft
9 models · runtime graph · no codegen765/765 ✓

zanith studio · the engine's instrument panel · drawn in code, no images

PostgreSQL 14–17Prismadrop-inSQLiteTypeScript 5Node 18+MySQL — v0.4
02 — The pipelinelive · no codegen

Schema in. SQL out. Nothing generated in between.

zanith engine · schematic
schema in · 3 modelssql out · parameterized
step 01
Parser
.zanithAST

22.9ms

step 02
Graph
ASTnodes

0.73ms

step 03
Compiler
graphSQL

2.4µs

step 04
Adapter
SQLpg

<5µs

wire · pg2.4µs
SELECT id, email, role FROM users WHERE email ILIKE $1;
no build step·schema = runtime

parse once at boot · compile per query · parameterized to the wire

03 — The swapprisma → zanith · one file

Your Prisma code runs on Zanith. db.ts changes. Nothing else does.

src/lib/db.tsbeforeafter · zanith
1
import { PrismaClient } from '@prisma/client';
2
import { PrismaPg } from '@prisma/adapter-pg';
3
 
4
const prisma = new PrismaClient({
5
  adapter: new PrismaPg({ connectionString }),
6
});
7
 
8
export { prisma }; // 1,400 call sites import this
1,400 call sites · untouched$extends chains · intactrollback · revert one filethe one-file swap, documented
04 — The gate

Destructive migrations refused.
Every drop recoverable.

Six risk levels, a hard gate, and artifacts that restore byte-identically — proven by the suite, not promised.

zanith migrate — fyvault_prod
05 — The engine, in tilesevery figure sourced · grep the repo

test suite · re-running

compat/prisma-selectors29
proof/06-flagship-claims16
engine/include-trees31
migrations/recovery24
compat/doctor3
adapter/pg18
0/765fully green · real postgres

1,000-model compile

0 ms

risk scoring

86 · DESTRUCTIVE

dropColumn legacy

REFUSED

0 · safe

data intact

atomic updates

stock: { increment: 1 }

41SET stock = stock + 1

filters · faithful

contains: 'ada'

LIKE '%ada%'

the whole engine

0 KB

esm · zero runtime deps · no client to generate

recovery · byte-identical

a91c·legacy

drop
artifact
restore