Humanized database exploration for file-backed workspaces and Neon clusters. Blend AI-assisted schema editing with visual, tabular, and SQL-first views without leaving the browser.
- Gemini-powered assistant that plans and executes DDL, DML, DQL, and DCL against a file-based datastore
- Visual database canvas with draggable tables and relation highlights
- Dedicated tables view with column metadata and sample row explorer
- SQL preview generated from the live schema snapshot
- Floating, draggable navbar that preserves the active connection string
- Neon API integration via serverless routes for describe and table data fetching
- Bun 1.1 or newer (preferred runtime)
- Node.js 18+ if you plan to run with
npm/pnpm - A Neon connection string with read access (e.g.
postgresql://user:pass@host/db)
# install dependencies
bun install
# run the dev server
bun dev
# optional: lint and type-check
bun run lint
bunx tsc --noEmitOpen http://localhost:3000 to use the interface. From the landing page, click Connect with Neon URL, paste your connection string, and you will be redirected to the database workspace with your schema snapshot.
- Connection strings are passed around the app via the
connectionsearch param (base64 encoded). The navbar keeps this param on internal navigation so the same database context persists. - Server-side routes live in
app/api/neon/**. Thedescriberoute ingests schema metadata; thetable-dataroute returns sample rows. Review these handlers before deploying to production. - The AI workspace requires a Gemini API key. Create a
.env.localfile and setGEMINI_API_KEY=your_key_herebefore running the dev server. The key is read only on the server. - The file-backed datastore persists to
data/database.json. The file is created automatically the first time you interact with the assistant.
bun run build
bun run startThe build uses Next.js 16 with Turbopack. Ensure any client components that call useSearchParams or other browser-only hooks remain wrapped in a <Suspense> boundary (see components/layout-shell.tsx).
app/database/– routed layouts for Visual, Tables, and SQL viewscomponents/database-diagram/**– canvas rendering primitivesapp/api/neon/– serverless routes that proxy Neon APIscomponents/site-navbar.tsx– floating navigation shared across pages
The project works well on Vercel or any platform that supports Next.js App Router with Node runtime. Remember to configure your Neon connection string as an environment variable or use secure connection sharing before deploying.
Need help? File an issue or ping the maintainer with details about your Neon setup and reproduction steps.