# node-sqlite3: 1.9 out of 10

Do not start with it. 10th of 10 in [Database drivers](https://elestia.ai/opensource/db-drivers/index.md).

node-sqlite3 (npm "sqlite3") is the original async, callback-based SQLite binding for Node.js. Its owner archived the repository on 1 July 2026 and the README marks it deprecated and unmaintained. Do not start a new project with it. Use better-sqlite3 or Node's built-in node:sqlite instead.

**Best for:** Only existing codebases that already depend on it and need time to migrate to better-sqlite3 or node:sqlite.

## Scores

- **Overall: 1.9** (likely 1.0 to 2.9)
  - Claude Opus 5.5 (1.5): The project is archived and declared unmaintained, so it falls in the do-not-start band whatever its install count. better-sqlite3, which is maintained, faster and simpler, does the same job better, and Node's built-in node:sqlite is another option. Keep it only while migrating.
  - GPT-6.2 Sol (2.3): The asynchronous API still has value for existing integrations. For new Node.js projects, the archive, missing SQLite fixes, and reported binary failures make better-sqlite3 the stronger choice. The range is narrow because the archive and the peer's continued releases are directly documented.
- **Needed by many: 4.6** (likely 3.6 to 5.7)
  - Claude Opus 5.5 (5.0): Embedded SQLite is a common need for local apps, CLIs, tests, Electron apps and small servers, but it is smaller than the Postgres and MySQL audience. The package only targets Node.js, not Bun, Deno or edge runtimes.
  - GPT-6.2 Sol (4.2): SQLite was used by 42.1% of respondents who answered the database question in the 2026 Stack Overflow survey. This driver serves the narrower group that needs embedded SQLite in Node.js and wants a native, callback-based API. The survey measures SQLite use across languages, so that group's size is uncertain.
- **Helps a lot: 4.9** (likely 3.8 to 6.0)
  - Claude Opus 5.5 (4.0): It still works and offers async queries, prepared statements and row iteration. But better-sqlite3 does the same job faster with a simpler API, and node:sqlite is now built into Node. It has no transaction helpers or modern promise API, and users often hit native install failures.
  - GPT-6.2 Sol (5.8): Version 6.0.1 covers everyday SQLite work with prepared statements, bound parameters, and bundled types. The callback API has easy-to-miss rules, such as requiring a regular function to read the last insert ID through `this`. OpenWA rolled back after the Linux prebuilds failed in its production image. An independent benchmark found slower inserts and lookups than better-sqlite3 on 5.1.7, so the size of the gap on 6.0.1 is uncertain.
- **Holds up over time: 0.7** (likely 0.1 to 1.7)
  - Claude Opus 5.5 (0.5): The owner archived the repository on 1 July 2026, and the README is titled DEPRECATED and says it is unmaintained. It is read-only, so no issue, PR or release can follow. Downstream projects such as Sequelize are already looking for replacements.
  - GPT-6.2 Sol (0.8): Ghost archived the repository on July 1, 2026, after the last npm release in March. The archive makes routine fixes and runtime compatibility updates unlikely. TypeORM 1.0 moved to better-sqlite3, which was still shipping updates in November.
- **Used widely: 5.0** (likely 4.0 to 6.3)
  - Claude Opus 5.5 (4.0): Downloads are still about 11.9M per 4 weeks, and about 146k repositories depend on it. These are mostly legacy installs and transitive pulls from ORMs. Its year-over-year ratio of about 1.7 is far below the median of 4.1, so it is losing ground fast. better-sqlite3 grew about 6x over the same period.
  - GPT-6.2 Sol (6.0): Ecosyste.ms found 146,342 dependent repositories and 6,166 npm packages, a much larger repository footprint than better-sqlite3 in this snapshot. Downloads rose from 7.1 million to 11.9 million over comparable four-week periods. That 1.68× ratio trails the 4.1× catalog median and better-sqlite3's 6.07×, pointing to lost ground. CI and installs through other tools contribute an uncertain share of the total.
- **Vouched for: 3.7** (likely 2.6 to 5.0)
  - Claude Opus 5.5 (2.5): It once had Mapbox and then Ghost behind it, and ORMs integrated it. Those endorsements are now historical, since its own maintainer has abandoned it. No current independent source recommends it over better-sqlite3, and it had no Hacker News or Bluesky attention in the period.
  - GPT-6.2 Sol (4.8): Sequelize 6 uses sqlite3 as its SQLite connector, and Knex documents it as a supported driver. TypeORM dropped it in 1.0, and OpenWA's production rollback weakens confidence in the latest release. Evidence of successful production use on 6.0.1 is limited.
- **Safe: 3.3** (likely 2.2 to 4.7)
  - Claude Opus 5.5 (3.0): Its two past high-severity advisories (2022 and 2023) were fixed, and none arrived in the last 24 months. But it is a native addon with install scripts that bundles SQLite C code. No future SQLite or binding vulnerability will be patched, and there is no Scorecard data. The BSD-3-Clause licence is permissive.
  - GPT-6.2 Sol (3.5): Both known binding advisories had fixes by the time GitHub published them, and the BSD-3-Clause license is permissive. The archived 6.0.1 release still bundles withdrawn SQLite 3.52.0 and lacks later upstream security fixes. Its four direct dependencies include a native binary downloader, and the release docs describe manual npm publishing. The range reflects differences in how apps handle untrusted database files or SQL, along with the missing OpenSSF Scorecard and unverified publisher access.

## Good

- Its fully async callback API keeps queries off the main thread and supports row-by-row iteration with each().
- The final 6.0.1 release bundles a recent SQLite (3.52.0) and ships prebuilt binaries for Node 20.17 and later.
- It has a very large installed base: about 146k dependent repositories and many old tutorials and ORM integrations.
- It uses the permissive BSD-3-Clause licence.

## Bad

- The repository was archived in July 2026 and is marked unmaintained, so no more fixes or releases will come.
- Its callback API is clunkier and slower than better-sqlite3's synchronous API for most workloads.
- Native builds through node-gyp have a long history of install failures, and npm warns about stale transitive dependencies.
- Future Node.js versions or SQLite CVEs will go unaddressed.

## The numbers

- Downloads, 4 weeks: 12M
- In a year: +68%
- GitHub stars: 6.4k
- Commits, 12 months: 21
- Last npm release: Mar 2026
- Advisories, 24 months: 0
- Licence: BSD-3-Clause
- GitHub: https://github.com/TryGhost/node-sqlite3
- npm: https://www.npmjs.com/package/sqlite3

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.
