DB0

JSON →
library 0.3.4 ·javascript
verified Jun 5, 2026

DB0 is a lightweight SQL connector for Node.js and edge environments, currently at version 0.3.4 (early development). It provides a unified query API over multiple SQL databases (SQLite, PostgreSQL via PGlite, MySQL, and LibSQL) and integrates with ORMs like Drizzle ORM. Unlike full ORMs or heavy query builders, DB0 focuses on a minimal API surface for direct SQL execution, making it suitable for serverless, edge, and framework-agnostic applications. The library is developed by unjs and supports both CommonJS and ESM but defaults to ESM. Key differentiators: zero dependencies, TypeScript-first, and connector-based architecture that allows swapping backends without changing application code.