supabase-community/database-build
supabase-community/database-build has 2,950 GitHub stars and 272 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-05 07:23 UTC. Last push 2026-06-03.
In-browser Postgres sandbox with AI assistance (formerly postgres.new)
Measured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originaldatabase.build (formerly postgres.new)
In-browser Postgres sandbox with AI assistance.
With database.build, you can instantly spin up an unlimited number of Postgres databases that run directly in your browser (and soon, deploy them to S3).
Each database is paired with a large language model (LLM) which opens the door to some interesting use cases:
- Drag-and-drop CSV import (generate table on the fly)
- Generate and export reports
- Generate charts
- Build database diagrams
How it works
All queries in database.build run directly in your browser. There’s no remote Postgres container or WebSocket proxy.
How is this possible? PGlite, a WASM version of Postgres that can run directly in your browser. Every database that you create spins up a new instance of PGlite that exposes a fully-functional Postgres database. Data is stored in IndexedDB so that changes persist after refresh.
Monorepo
This is a monorepo split into the following projects:
- Web: The primary web app built with Next.js
- Browser proxy: Proxies Postgres TCP connections back to the browser using pg-gateway and Web Sockets
- Deploy worker: Deploys in-browser databases to database platforms (currently Supabase is supported)
Setup
From the monorepo root:
Install dependencies
npm iStart local Supabase stack:
npx supabase startStore local Supabase URL/anon key in
./apps/web/.env.local:npx supabase status -o env \ --override-name api.url=NEXT_PUBLIC_SUPABASE_URL \ --override-name auth.anon_key=NEXT_PUBLIC_SUPABASE_ANON_KEY | grep NEXT_PUBLIC >> ./apps/web/.env.localCreate an OpenAI API key and save to
./apps/web/.env.local:echo 'OPENAI_API_KEY="<openai-api-key>"' >> ./apps/web/.env.localStore local KV (Redis) vars. Use these exact values:
echo 'KV_REST_API_URL="http://localhost:8080"' >> ./apps/web/.env.local echo 'KV_REST_API_TOKEN="local_token"' >> ./apps/web/.env.localStart local Redis containers (used for rate limiting). Serves an API on port 8080:
docker compose -f ./apps/web/docker-compose.yml up -dFill in the remaining variables for each app as seen in:
./apps/web/.env.example./apps/browser-proxy/.env.example./apps/deploy-worker/.env.example
Development
From the monorepo root:
npm run dev
Important: This command uses turbo under the hood which understands the relationship between dependencies in the monorepo and automatically builds them accordingly (ie. ./packages/*). If you by-pass turbo, you will have to manually build each ./packages/* before each ./app/* can use them.
Why rename postgres.new?
This project is not an official Postgres project and we don’t want to mislead anyone! We’re renaming to database.build because, well, that’s what this does. This will still be 100% Postgres-focused, just with a different URL.
Video
License
Apache 2.0
Explore related projects
affaan-m/ECC
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
297,816 starsNousResearch/hermes-agent
The agent that grows with you
260,849 starsmultica-ai/andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
229,850 starsfirecrawl/firecrawl
Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
198,759 stars