Who it's for
Runtime access to customer databases, cross-driver tools, and AI hosts that need a catalog and a bounded read — not an ORM.
docs/product.mdDB SDK is an open-source TypeScript library for runtime, query-only access to databases through providers and drivers. It is aimed at applications that cannot hard-code one schema and one database.
Who it is for
- Product builders who need to say “connect Postgres or Firestore” without forking connect / introspect / query for each driver.
- AI application authors who already have a model and need a catalog plus a read-only execution path. The model key stays in the app.
- Customers of those products, who need an auditable story: this library is designed to read, not write.
What it is not
- An ORM or query builder for your application database
- An AI framework, agent runtime, or prompt library
- A universal query language
- A GraphQL layer, migration tool, or sync engine
- A hosted connection proxy or credential vault
What exists today
Documentation of the product, security model, and intended architecture. Public types and a thin connect handle live in packages/core. Driver and hosted provider packages are not published yet.
Keep going
Guide
Core idea
Connect, describe, and read a database whose schema you don't control at compile time — without turning every driver into SQL.
Guide
Architecture
One core, drivers for database types, hosted providers that reuse a driver. Shared lifecycle, native queries, one catalog shape.
Guide
Security model
Treat generated queries as untrusted. SDK checks are extra — the lock is a read-only database role.