# Database drivers

Connect to a database and send it queries, without an ORM. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [node-postgres](https://elestia.ai/opensource/db-drivers/pg/index.md) | 8.7 | 6.1 | 8.3 | 8.1 | 8.5 | 8.3 | 7.6 | Any Node.js team that talks to PostgreSQL and wants the most widely supported driver that works with any ORM or query builder. |
| 2 | [MongoDB driver](https://elestia.ai/opensource/db-drivers/mongodb/index.md) | 8.2 | 4.8 | 8.3 | 8.5 | 7.4 | 7.4 | 7.6 | Teams on MongoDB or Atlas that want direct access to every query, aggregation and encryption feature, without Mongoose. |
| 3 | [better-sqlite3](https://elestia.ai/opensource/db-drivers/better-sqlite3/index.md) | 8.1 | 4.7 | 8.5 | 7.4 | 6.5 | 7.5 | 8.1 | Node.js apps, Electron apps, CLIs and test suites that want a fast, embedded SQLite database with a simple synchronous API. |
| 4 | [MySQL2](https://elestia.ai/opensource/db-drivers/mysql2/index.md) | 8.0 | 5.2 | 8.0 | 8.1 | 7.5 | 7.7 | 6.6 | Node.js teams on MySQL, MariaDB or Aurora MySQL that want a mature driver, either used directly or under Drizzle, Kysely, Knex, TypeORM or Sequelize. |
| 5 | [PGlite](https://elestia.ai/opensource/db-drivers/pglite/index.md) | 7.6 | 4.7 | 7.7 | 7.8 | 6.7 | 7.7 | 8.0 | Teams on Postgres who want a real Postgres database, with no Docker or server, for tests, local development, browser apps or agent sandboxes. |
| 6 | [Postgres.js](https://elestia.ai/opensource/db-drivers/postgres-js/index.md) | 7.5 | 6.2 | 8.2 | 6.6 | 5.7 | 6.9 | 6.9 | TypeScript teams on PostgreSQL who want a fast, modern, dependency-free client with safe tagged-template queries, including on Bun, Deno and Workers. |
| 7 | [DuckDB Node Neo](https://elestia.ai/opensource/db-drivers/duckdb/index.md) | 7.4 | 3.6 | 7.5 | 7.7 | 5.2 | 6.4 | 6.5 | Node.js and TypeScript projects that need embedded, in-process analytics over Parquet, CSV, JSON or local tables with DuckDB. |
| 8 | [Neon serverless driver](https://elestia.ai/opensource/db-drivers/neon-serverless/index.md) | 7.1 | 3.9 | 7.3 | 6.5 | 5.2 | 6.6 | 8.1 | Teams on Neon Postgres that run queries from edge or serverless functions without TCP or Hyperdrive. |
| 9 | [libSQL client](https://elestia.ai/opensource/db-drivers/libsql/index.md) | 5.9 | 4.2 | 6.4 | 4.9 | 4.6 | 6.0 | 7.3 | Projects that run on Turso Cloud or a libSQL server, or that need one SQLite API across Node, edge and serverless runtimes. |
| 10 | [node-sqlite3](https://elestia.ai/opensource/db-drivers/sqlite3/index.md) | 1.9 | 4.6 | 4.9 | 0.7 | 5.0 | 3.7 | 3.3 | Only existing codebases that already depend on it and need time to migrate to better-sqlite3 or node:sqlite. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| node-postgres | 390M | ×8.3 | 13k | 114 | Sept 2026 | 0 |
| MongoDB driver | 86M | ×2.7 | 10k | 204 | Nov 2026 | 0 |
| better-sqlite3 | 66M | ×6.1 | 7.6k | 78 | Nov 2026 | 0 |
| MySQL2 | 96M | ×6.3 | 4.4k | 536 | Oct 2026 | 2 |
| PGlite | 162M | ×26 | 16k | 173 | Nov 2026 | 0 |
| Postgres.js | 151M | ×29 | 8.8k | 95 | Nov 2026 | 0 |
| DuckDB Node Neo | 14M | ×34 | 200 | 285 | Nov 2026 | 2 |
| Neon serverless driver | 30M | ×9.6 | 556 | 11 | Nov 2026 | 0 |
| libSQL client | 23M | ×14 | 578 | 34 | Sept 2026 | 0 |
| node-sqlite3 | 12M | +68% | 6.4k | 21 | Mar 2026 | 0 |

All categories: https://elestia.ai/opensource/index.md
