Every side project wants a Postgres database. Managed providers are lovely until you have a dozen small apps, each wanting its own branch of someone else’s free tier. So I built the part of Neon I actually use: click a button, get an isolated database and a connection that works from Vercel.
pgStore started life as basin, a small control plane on a VPS. It has since been rebuilt in Go and moved onto a mini PC behind a Cloudflare Tunnel, and it grew up along the way: branches, a SQL editor, a table browser, vector search, accounts for friends and scoped access for AI agents. It runs at pgstore.vantible.com.
The screenshots use synthetic projects and traffic. The hostname is real, nothing else is.
how it fits together
- One cluster, hard walls. A project is a login role plus the
databases it owns.
CONNECTis revoked from everyone else and the role carries aCONNECTION LIMIT, so projects can’t see or crowd each other. - No open database port. Postgres and PgBouncer only listen on
localhost. Apps reach them over a WebSocket on the same hostname as the
dashboard, using Neon’s serverless driver. pgStore forwards each session
to a fixed loopback PgBouncer, which checks the project’s own SCRAM
credentials.
psqlworks too, bridged throughwebsocat. - Branches are copies. A branch is
CREATE DATABASE … TEMPLATEof its parent: schema, data, extensions and vector settings. Copying needs the parent idle for a moment, so its clients are briefly disconnected. - Least privilege for the control plane. The service connects as a
role with
CREATEDBandCREATEROLE, not as a superuser, and opens a project’s data through that project’s own login.
the console
The console was redesigned in December along the lines of Linear, PlanetScale and Stripe: neutral surfaces, one berry accent kept for actions and the main chart line, stat strips instead of floating cards, and a database picker in the header that every page follows.
Branching is a button. Each branch is a full copy of its parent, under the same role and password, so a preview deployment or a risky migration gets its own database in seconds and can be reset from its parent.
Project settings are rows you can scan: the description and connection
limit, password rotation and pg_dump backups, and a danger zone. The
password is shown once at creation; pgStore keeps only the SCRAM
verifier, so a lost password means a rotation, never a lookup.
Everything is a keystroke away in the command palette.
On a phone, navigation is a floating tab bar with its own search button, and every dialog becomes a drawer you can swipe away.
for agents and friends
Agent access hands an MCP client a named token for one project, valid for 1 to 90 days. A read grant can list databases and tables, read rows and search vectors; a write grant can also run SQL and create databases, including test clones. Only a hash of the token is stored, and revoking it stops the next request.
Vectors use pgvector. Pick the embedding model your app uses when you
create a database and pgStore sets up an embeddings table with the right
dimensions and an HNSW index for the model’s metric, then lets you search
by example from the console.
Accounts let me give a friend their own corner. Admins manage their own projects, a super admin sees everything, and sign-ins are rate limited with bcrypt-hashed passwords.
under the hood
The service is a single Go binary: pgx and sqlx for Postgres, Huma for
the API and its OpenAPI document, Goose for catalog migrations, sqlc for
the metrics sampler that reads pg_stat_database once a minute, and the
official Go MCP SDK. The console is Vite, React and TanStack Router,
Query and Table on shadcn/ui, with a client generated from the OpenAPI
spec.
Releases are versioned folders on the box with a symlink pointing at the
live one, so shipping is a copy and a switch, and rolling back is one
ln. I wrote up the Postgres and PgBouncer decisions underneath, and the
one Postgres 16 permission change that bit me, in
a blog post.
log
- 2026-12-02 · phones: floating tab bar, a search button, and drawers (vaul) for More and every dialog.
- 2026-12-02 · console redesign: neutral surfaces, stat strips, a connect sheet, Stripe-style settings.
- 2026-11-28 · WebSocket gateway behind a Cloudflare Tunnel, on a mini PC; Postgres no longer exposed.
- 2026-11-28 · rebuilt in Go and renamed pgStore: accounts, agent access over MCP, vector search.
- 2026-11-27 · branches, SQL editor, table browser and monitoring (as basin).
- 2026-10-10 · black and silver redesign (as basin): project pages, connection rings, live charts, command palette.
- 2026-07-04 · provisioning playbook tested end to end on a throwaway VM.
- 2026-07-03 · push-to-deploy over a forced-command SSH key; one-click backups.
- 2026-07-03 · first version as basin: create, rotate and delete, behind TLS PgBouncer.