Supabase,rewritten in Rust.By agents. In public.

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.

Independent experiment. Not affiliated with or endorsed by Supabase, Inc.

SUPABASE COVERAGE → 34.9% TOTAL COMMITS ↗ 340 TOTAL PRS ↗ 321

01 · WHAT AND WHY

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.

How it works →
  1. 01 READ

    Pinned upstream source

    Supabase repos are frozen at fixed versions in vendor/. They are the specification.

  2. 02 SPEC

    One unit at a time

    A builder agent writes the spec for one route, operator or flow, citing upstream files.

  3. 03 PORT

    Implement in Rust

    axum on tokio. Anything unfinished returns a loud 501, never a plausible guess.

  4. 04 JUDGE

    Diff against real Supabase

    Same request to both stacks. Status, headers and bodies must match.

  5. 05 KEEP OR REVERT

    No regressions

    A commit stays only if conformance does not drop. A reviewer agent checks for test gaming.

  1. 01 Read pinned upstream source
  2. 02 Spec one unit
  3. 03 Port it to Rust
  4. 04 Diff against real Supabase
  5. 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.

Full status →
SUPABASE COMPONENTS: 218 / 1,036 UNITS PASS not started implemented tested conformant (matches real Supabase)
Component map: 218 of 1,036 units. One whole square per unit, grouped by component and feature group.REST 93/93aggregatesorderingrpclogicembeddi…AUTH 86/159endpointsverifyoauthtokenuserssowell knownREALTIME 1/19server eve…http apiSTORAGE 35/154s3vectorcdnrenderhea…FUNCTIONS 1/276noderuntimeenvevent …invokeosPOOLER 0/16pool modesMETA 2/69policiesschemascolumn pr…tab…STUDIO 0/250api platformlogssettingsapi aiapi v1storagefunctionsadvisorsintegrat…sqlreal…
Component map: 218 of 1,036 units. One whole square per unit, grouped by component and feature group.REST 93/93logicembedd…AUTH 86/159tokensc…ssowell knownREALTIME 1/19STORAGE 35/154objectbucketh…FUNCTIONS 1/276noderuntimeaiworkersenveven…invo…osPOOLER 0/16META 2/69STUDIO 0/250api platformdatabaseendpointslogsobservabil…api v1storageadvi…integ…re…
1,036 units extracted from pinned upstream source · 218 conformant Generated at build from coverage/summary.json · commit ↗

04 · ROADMAP

03 · ROADMAP

Five public levels.
Each one gated by the judge.

Full roadmap →
LEVEL 1 · NEXT≥ 95%

REST API + email/password auth

Goal: most apps run.

71.0% · in progress

LEVEL 2≥ 90%

OAuth, magic links, Storage

Files and social login.

38.7% · in progress

LEVEL 3≥ 85%

Realtime

Database changes, broadcast, presence.

5.3% · in progress

LEVEL 4≥ 80%

Functions, pooler, Meta + the Studio test

Official Studio can’t tell the difference.

0.5% · in progress

LEVEL 5stretch

Studio, served from the binary

Deferred pending a feasibility study.

deferred

L1 REST + Auth≥ 95%
L2 OAuth, Storage≥ 90%
L3 Realtime≥ 85%
L4 Studio test≥ 80%
L5 Studio in Rustdeferred

Full roadmap →

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.

05 · SCOPE

Every service Supabase wrote.
Ported to Rust.

All components →

REST APIL1

PostgREST · Haskell

/rest/v1 · 93/93

AuthL1–L2

GoTrue · Go

/auth/v1 · 86/159

StorageL2

Storage API · TypeScript

/storage/v1 · 35/154

RealtimeL3

Realtime · Elixir

/realtime/v1 · 1/19

Edge FunctionsL4

Edge Runtime · Rust + Deno

/functions/v1 · 1/276

PoolerL4

Supavisor · Elixir

postgres wire · 0/16

Postgres MetaL4

postgres-meta · TypeScript

/pg · 2/69

StudioL4–L5

Studio · TypeScript / Next.js

judge first · 0/250

Plus the API gateway that replaces Kong (Lua / Nginx). PostgreSQL and its extensions stay standard and out of scope.

06 · FAQ

Fair questions.

All questions →

Can I use it in production?

No. Today every endpoint returns 501 MEGABASE_NOT_IMPLEMENTED. Watch the levels: Level 1 is the first point where real apps should run.

Is this affiliated with Supabase?

No. It is an independent experiment. “Supabase” is used only to describe compatibility, and every upstream license is preserved.

Who decides what “correct” means?

The real Supabase stack, run side by side from pinned versions. Agents can’t change what the judge compares against.

Do humans write any code?

Humans wrote the manifesto, GOAL.md and the initial setup. Every later human action is logged publicly, and the count is part of the result.

Watch the map turn green.

Code, prompts and logs are public. Star the repo or follow the daily devlog.