Ask, then keep asking
The model sees your live schema, keys and relationships. Earlier turns go along with each question, so “now split that by region” just works.
Questions for PostgreSQL · Private preview
Ask a question the way you would ask a colleague. Plainbase writes the SQL against your PostgreSQL schema, runs it read-only, and hands back the rows, a chart and the query itself, so you can check the answer.
How it works
Enter host, port, database and a user, test the connection, then save it. Passwords are encrypted at rest with AES-256-GCM.
In English. Your schema goes to the model as context, so the SQL it drafts uses your real tables and columns.
Read the rows, the chart and the SQL. Ask a follow-up, export the result, or pin it to a dashboard.
Features
Plainbase is for founders, marketers and operators who know what they want to ask but not how to write the query. Treat each answer as a draft to check, not a verdict.
The model sees your live schema, keys and relationships. Earlier turns go along with each question, so “now split that by region” just works.
Every answer comes with the query that produced it, how long it took and a short explanation, so you can check the logic and learn from it.
Generated SQL passes a guard that rejects writes, stacked statements and locking clauses, then runs in a READ ONLY transaction with a 30-second timeout.
Bar, line, area, pie, scatter or table, suggested by the model with a fallback heuristic. Export rows as CSV and any chart as PNG.
Browse tables, columns, keys and approximate row counts. Generate plain-English table descriptions and a list of questions worth asking.
Pin answers to dashboards, reorder and refresh them, and share a read-only link. Every question, with its SQL, row count and timing, is kept in a searchable history.
Before real data
The guard is a careful pattern scanner, not a full SQL parser. Connect with a PostgreSQL role that can only read the schemas you want to ask about.
Anyone with a dashboard’s share link can view it and rerun its pinned queries against live data, without signing in. There is no per-viewer scope or rate limit yet. Make it private again to revoke the link.
The connection form’s TLS option encrypts traffic but skips certificate verification. Connection errors can show raw driver messages.
Your schema and questions are sent to the AI provider you configure. Generated SQL can be wrong; accuracy has not been measured.
Get Plainbase
There is no hosted sign-up yet, and the source is shared by invitation. If you have access, run your own instance with its own PostgreSQL store and AI provider key.
git clone git@github.com:aylith-labs/plainbase.git
cd plainbase/app && npm install
# Database URL, AI provider key, and two secrets:
# openssl rand -base64 32 -> AUTH_SECRET
# openssl rand -hex 32 -> ENCRYPTION_KEY
cp .env.example .env.local
npm run db:push # create Plainbase's own tables
npm run dev # http://localhost:5570
Needs repository access. Commands run in your own terminal.
The app is Next.js 16 with React 19. Register an account on first run.
Separate from the databases you query. It stores accounts, saved connections, history and dashboards.
OpenAI by default; Anthropic, Google and OpenRouter work through one setting. Your provider account and costs apply.