Autonomous AI agents are porting every service Supabase has written into one Rust binary that sits next to PostgreSQL. The goal: any supabase-js app runs on it without changing a line of code. An external judge compares every response with the real Supabase stack.
AI agents are porting every Supabase service into one Rust binary next to PostgreSQL, judged response by response against the real stack.
One binary. The same API. A precise, verifiable target.One binary. The same API.
Self-hosting Supabase today means running about a dozen containers written in six languages. Megabase aims for one Rust binary next to standard PostgreSQL, serving /rest/v1, /auth/v1, /storage/v1, /realtime/v1 and /functions/v1 exactly as Supabase does.
Supabase self-hosted
~12 containers
Haskell, Go, Elixir, TypeScript, Rust and Lua.
Megabase target
1 binary
Rust only, next to the PostgreSQL you already run. Memory target: under 256 MB.
Your app
0 code changes (goal)
Point supabase-js at Megabase. Same endpoints, bodies, status codes and errors.
Measure what agents can build
Not a toy or a demo: a large, multi-language, production-grade system with a precise target.
A target with no guessing
Supabase is open source, documented and runnable locally. Correct means identical to the real thing.
A useful result
One binary, a fraction of the memory, and the same API for everyone who self-hosts.
02 · HOW IT WORKS
Agents write the code. An external judge grades it.Agents write. An external judge grades.
Supabase repos are frozen at fixed versions in vendor/. They are the specification.
02 SPEC
One unit at a time
A builder agent writes the spec for one route, operator or flow, citing upstream files.
03 PORT
Implement in Rust
axum on tokio. Anything unfinished returns a loud 501, never a plausible guess.
04 JUDGE
Diff against real Supabase
Same request to both stacks. Status, headers and bodies must match.
05 KEEP OR REVERT
No regressions
A commit stays only if conformance does not drop. A reviewer agent checks for test gaming.
01 Read pinned upstream source
02 Spec one unit
03 Port it to Rust
04 Diff against real Supabase
05 Keep or revert, never regress
03 · LIVE STATUS
Each cell is one unit. Grey until the judge says green.
1,036 units (routes, query operators, auth flows, message types, storage endpoints, Studio pages) were extracted from the pinned upstream source. 218 pass the judge.
Each percentage is the conformance required on that level’s own scope before the next level may start, and earlier levels must hold their score. Thresholds come from PROGRESS.md. Level 5 has no gate yet: it is deferred until a feasibility study.