Serverless Postgres
with the Fastest ORM
BataDB combines a Neon-compatible storage engine with Turbine — a TypeScript ORM that resolves nested queries in a single SQL statement.
Why BataDB
A vertically integrated Postgres platform — storage engine + ORM designed to work together.
Scale-to-Zero Compute
Compute suspends automatically after inactivity. Sub-second cold starts. You pay only when queries are running.
Database Branching
Fork any database in milliseconds with copy-on-write. Create dev branches from prod, test against real data, merge or discard.
Turbine ORM
Nested queries resolve in a single SQL statement using json_agg. 2.4x faster than Prisma on L3 nested queries. Full TypeScript types.
One Query vs Three
Prisma sends separate queries for each relation level. Turbine resolves the entire tree in a single SQL statement.
Everything You Need
A complete platform for building, debugging, and scaling Postgres applications.
DB Studio
Browse and edit your tables directly in the browser. Filter, sort, and export data without writing SQL.
CLI
Manage projects, branches, and deployments from your terminal with the bata CLI. Script everything.
TypeScript Types
Auto-generated types from your database schema. Full IntelliSense for every table, column, and relation.
Connection Pooling
Built-in PgBouncer with transaction-mode pooling. Ready for serverless functions out of the box.
Query Insights
Built on pg_stat_statements. Per-query latency, QPS, rows scanned, and slow query detection.
Pipeline Batching
Send multiple queries in a single round-trip using the extended query protocol. Reduce network overhead.
Up and Running in 60 Seconds
Install the ORM, point it at your database, and start querying with full type safety.
npm install @batadata/turbine
npx turbine generate --url $DATABASE_URL
const user = await db.users.findUnique({
where: { id: 1 },
with: { posts: true }
})Simple, Transparent Pricing
Start free. Scale as you grow. No surprises.
Free
For hobby projects and experimentation
Pro
For production applications
Team
For teams building at scale