A PostgreSQL-compatible database where AI assistants edit your schema directly. When you're ready, export to PostgreSQL—with a clean schema, not 100 migrations.
Built for Claude Code, Cursor, Copilot, and the AI-assisted development workflow.
Works with ActiveRecord in Ruby on Rails
AI makes iteration faster. Traditional databases turn every iteration into permanent baggage.
AI helps you iterate 10x faster—which means 10x more migrations.
Your exploration becomes 100+ ALTER TABLEs everyone replays forever.
Claude Code could fix your schema in seconds.
If it didn't have to generate migration SQL and coordinate versions.
Can't just cat a record or grep for a value.
Need special tools to see your own data.
Different SQL dialect than PostgreSQL.
When you graduate, you rewrite queries.
AI edits your schema directly. No migrations accumulate. Graduate to PostgreSQL with a clean slate.
Schema is JSON. Edit it directly. No migration files needed.
Claude Code, Cursor, Copilot edit your schema JSON. No migration SQL to generate.
Wire protocol works with any pg driver. Same queries.
cat, grep, git diff your data instantly.
10-100µs local reads. Faster than network databases.
Export final schema to PostgreSQL. No migration history. No ALTER TABLE archaeology.
PostgreSQL wire protocol + SQL parser + JSON file storage
Your App (any PostgreSQL driver)
↓ PostgreSQL wire protocol
smarterbase
↓ JSON files on disk
PostgreSQL wire protocol. Any pg driver works.
SQL parsing. No query planner needed.
JSONL files + indexes. Atomic writes.
One file per table. One JSON object per line. Claude Code sees your entire data model in one command.
cat data/_schema/users.json data/users.jsonl# Schema cat data/_schema/users.json { "name":"users", "columns":[ {"name":"id","primary_key":true}, {"name":"name","type":"text"}, {"name":"email","type":"text"} ] } # Data (JSONL - one row per line) cat data/users.jsonl {"id":"u1","name":"Alice","email":"alice@example.com"} {"id":"u2","name":"Bob","email":"bob@example.com"} # Claude Code sees your whole data model—and edits it directly
Single-table CRUD covers 90% of prototype needs
Use SmarterBase while you're figuring things out. Graduate to PostgreSQL when you're ready—with a clean slate.
You don't know your schema yet. That's fine.
Schema stabilizes. You're building features.
Ready for production. Clean handoff.
Graduate when you need: Transactions · JOINs · Aggregations · Replication · >1M rows/table
Free to use. BSL 1.1 license (converts to MIT after 4 years).
PostgreSQL-compatible file store
Get started in minutes
Complete user guide with examples and quick start.
Architecture, implementation details, and design decisions.
Why PostgreSQL wire protocol over filesystem storage.
Development setup and contribution workflow.