Postgres compiled to WASM, running inside your browser
It turns your browser into a private, AI-assisted Postgres sandbox where every query runs locally via WASM.

What it does
database.build is a web-based sandbox that spins up real Postgres instances using PGlite, a WASM build of Postgres. Each database runs directly in your browser and persists its data in IndexedDB, so refreshing the tab won’t wipe your schema or rows. An integrated LLM helps generate tables from CSV drops, write reports, create charts, and draft database diagrams.
The interesting bit
The entire query lifecycle happens client-side; there is no remote Postgres container or WebSocket proxy handling the SQL. If you want to move from prototype to production, a deploy worker can push the in-browser database to Supabase.
Key highlights
- Uses
PGliteto run a real Postgres engine inside the browser via WebAssembly. - Data persists across sessions using the browser’s
IndexedDB. - LLM integration for drag-and-drop CSV import, report generation, charting, and diagramming.
- Includes a browser proxy app that tunnels Postgres TCP connections over WebSockets via
pg-gateway. - Monorepo structure with a Next.js frontend and a deploy worker targeting Supabase.
Caveats
- S3 deployment is listed as coming “soon,” so that feature is not yet available.
- The project depends on a local Supabase stack, Redis, and an OpenAI key for development, giving it a heavy local footprint.
Verdict
Worth a look if you want a private playground for prototyping Postgres schemas or exploring data with AI assistance without installing a local server. Skip it if you need a production database or a trivial self-hosting setup.
Frequently asked
- What is supabase-community/database-build?
- It turns your browser into a private, AI-assisted Postgres sandbox where every query runs locally via WASM.
- Is database-build open source?
- Yes — supabase-community/database-build is open source, released under the Apache-2.0 license.
- What language is database-build written in?
- supabase-community/database-build is primarily written in TypeScript.
- How popular is database-build?
- supabase-community/database-build has 3k stars on GitHub.
- Where can I find database-build?
- supabase-community/database-build is on GitHub at https://github.com/supabase-community/database-build.