node-sqlite3
Do not start with it. 10th of 10 database drivers.
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
Overall1.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 1.5, likely 0.5 to 2.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.
- github.com/TryGhost/node-sqlite3: Deprecated and archived
- peers better-sqlite3: Maintained peer: 78 commits last year, release on 2026-11-14
- github.com/sequelize/sequelize/issues/18111: Ecosystem is moving away from it
GPT-6.2 Sol: 2.3, likely 1.5 to 3.2
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.
- github.com/TryGhost/node-sqlite3: Documents the asynchronous API and confirmed end of maintenance.
- github.com/TryGhost/node-sqlite3/pull/1858: The proposed replacement for withdrawn SQLite 3.52.0 remains unmerged.
- github.com/rmyndharis/OpenWA/issues/848: Documents a production rollback due to native binaries.
- github.com/WiseLibs/better-sqlite3/releases: The actively maintained peer updated to SQLite 3.54.1.
Needed by many4.6
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 6.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.
- peers: SQLite drivers form one segment of a category led by Postgres and MySQL drivers
- Native Node addon: Runs on Node.js only, through N-API bindings
GPT-6.2 Sol: 4.2, likely 3.1 to 5.3
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.
- survey.stackoverflow.co/2026/technology/data: 42.1% of database-question respondents used SQLite.
- github.com/TryGhost/node-sqlite3: Native asynchronous SQLite binding for Node.js.
Helps a lot4.9
How well does it do the job for those who need it?
Claude Opus 5.5: 4.0, likely 3.0 to 5.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.
- npm-compare.com/better-sqlite3,sqlite3: Describes sqlite3's API as more complex and slower for simple work; its one edge is streaming and async control
- github.com/TryGhost/node-sqlite3/issues/1805: Users report stale-dependency warnings on install
- npm hasTypes: Ships its own type definitions
GPT-6.2 Sol: 5.8, likely 4.6 to 7.0
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.
- github.com/TryGhost/node-sqlite3/wiki/API: Documents prepared statements and callback behavior.
- github.com/TryGhost/node-sqlite3/blob/v6.0.1/package.json: Version 6.0.1 ships TypeScript declarations.
- github.com/rmyndharis/OpenWA/issues/848: Reported a production rollback after Linux binary incompatibility.
- github.com/marcus-pousette/sqlite3-bench: Older sqlite3 release trailed better-sqlite3 on inserts and point lookups.
Holds up over time0.7
Will it still be a good choice in two years?
Claude Opus 5.5: 0.5, likely 0.0 to 1.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.
- github archived: archived: true
- github.com/TryGhost/node-sqlite3: Archived Jul 1, 2026; README says deprecated and unmaintained
- github.com/sequelize/sequelize/issues/18111: Sequelize users flag the deprecation and discuss @vscode/sqlite3 and better-sqlite3
GPT-6.2 Sol: 0.8, likely 0.2 to 1.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.
- github.com/TryGhost/node-sqlite3: Read-only archive and explicit end of maintenance.
- npm latestPublishedAt: Version 6.0.1 was published March 12, 2026.
- typeorm.io/docs/releases/1.0/release-notes: TypeORM 1.0 dropped sqlite3 support.
- github.com/WiseLibs/better-sqlite3/releases: The closest peer released updates in November.
Used widely5.0
How many use it, and is that growing?
Claude Opus 5.5: 4.0, likely 3.0 to 5.5
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.
- npm downloadsLast4Weeks: 11.9M now vs 7.07M a year ago, a ratio of about 1.68
- medianDownloadsRatio: Median is 4.1, so it is losing share
- dependents: 146k repos and 6k packages: a large legacy base
- peers better-sqlite3: 66M downloads, up from 10.9M
GPT-6.2 Sol: 6.0, likely 4.9 to 7.1
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.
- dependents: 146,342 tracked repositories and 6,166 packages.
- npm downloadsLast4Weeks: 11.9 million downloads.
- npm downloadsSame4WeeksYearAgo: 7.1 million downloads.
- medianDownloadsRatio: Catalog median was 4.1×.
- peers better-sqlite3: 12,510 tracked repositories and 6.07× download growth.
- github.com/sequelize/sequelize/blob/main/packages/sqlite3/package.json: Sequelize's v7 SQLite adapter installs sqlite3 as a dependency.
Vouched for3.7
Who stands behind it being good?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
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.
- github.com/TryGhost/node-sqlite3: Created by Mapbox, later maintained by Ghost, now archived
- bluesky posts / hackerNews stories: 0 and 0
- npm-compare.com/better-sqlite3,sqlite3: Third-party comparison favours better-sqlite3 for most projects
GPT-6.2 Sol: 4.8, likely 3.6 to 6.0
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.
- sequelize.org/docs/v6/other-topics/dialect-specific-things: Sequelize 6 uses sqlite3 for its SQLite dialect.
- knexjs.org/guide: Knex documents sqlite3 as a supported driver.
- typeorm.io/docs/releases/1.0/release-notes: TypeORM switched to better-sqlite3.
- github.com/rmyndharis/OpenWA/issues/848: A downstream project reported rolling back 6.0.1.
Safe3.3
How safe is it to depend on?
Claude Opus 5.5: 3.0, likely 2.0 to 4.5
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.
- advisories: 2 high-severity advisories, both from 2022-2023, none in the last 24 months
- scorecard: null: no Scorecard data
- github archived: No one can ship future security fixes
- npm dependencies: 4 direct dependencies, plus a native build toolchain
GPT-6.2 Sol: 3.5, likely 2.3 to 4.8
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.
- github.com/advisories/GHSA-9qrh-qjmc-5w2p: The advisory lists 5.0.3 as the patched version.
- github.com/TryGhost/node-sqlite3/releases/tag/v5.0.3: The fix shipped before the public advisory.
- github.com/advisories/GHSA-jqv5-7xpx-qj74: The advisory lists 5.1.5 as the patched version.
- github.com/TryGhost/node-sqlite3/releases/tag/v5.1.5: The binding fix shipped on the public advisory date.
- github.com/TryGhost/node-sqlite3/blob/v6.0.1/deps/common-sqlite.gypi: The release pins SQLite to 3.52.0.
- sqlite.org/changes.html: SQLite withdrew version 3.52.0.
- sqlite.org/cves.html: Lists later engine security fixes and their exposure conditions.
- github.com/TryGhost/node-sqlite3/blob/v6.0.1/package.json: Permissive license, four direct dependencies, and an install script for the native binary.
- github.com/TryGhost/node-sqlite3/wiki/Release-process: Documents CI-built binaries and a manual npm publish step.
- scorecard: No OpenSSF Scorecard result in the snapshot.
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
- npm downloads, 4 weeks
- 12M +68% in a year
- GitHub stars
- 6.4k
- Commits, 12 months
- 21
- npm version
- 6.0.1 Mar 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 2 ever
- OpenSSF Scorecard
- None
- Licence
- BSD-3-Clause
Read on 21 November 2026 from GitHub (TryGhost/node-sqlite3), npm (sqlite3), OSV and the OpenSSF Scorecard.
Database drivers
- 8.7node-postgres
- 8.2MongoDB driver
- 8.1better-sqlite3
- 8.0MySQL2
- 7.6PGlite
- 7.5Postgres.js
- 7.4DuckDB Node Neo
- 7.1Neon serverless driver
- 5.9libSQL client
- 1.9node-sqlite3