better-sqlite3
npmv12.11.1The fastest and simplest library for SQLite in Node.js.
Overview
better-sqlite3 is an npm package that the fastest and simplest library for SQLite in Node.js. It is extremely widely used, with about 7.7M downloads per week and 1 known dependents in the graph. The latest version is 12.11.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need the fastest and simplest library for SQLite in Node.js and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (7.7M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of better-sqlite3.
Dependencies
Runtime (2)
Dev (8)
Used by
Popular packages that depend on better-sqlite3.
Drizzle ORM package for SQL databases
Type safe SQL query builder
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.
Fastest SQLite for React Native (with node.js support)
Alternatives to better-sqlite3
Asynchronous, non-blocking SQLite3 bindings
Drizzle ORM package for SQL databases
A batteries-included SQL query & schema builder for PostgresSQL, MySQL, CockroachDB, MSSQL and SQLite3
Fastest full featured PostgreSQL client for Node.js
Type safe SQL query builder
libSQL driver for TypeScript and JavaScript
libSQL driver for TypeScript and JavaScript
Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.
SQLite Wasm conveniently wrapped as an ES Module.
Fastest SQLite for React Native (with node.js support)
libSQL Wasm packaged as an ES module.
libSQL driver for TypeScript and JavaScript
Frequently installed together
TypeScript definitions for better-sqlite3
React is a JavaScript library for building user interfaces.
PostgreSQL client - pure javascript & libpq with the same API
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
TypeScript definitions for node
TypeScript definitions for pg
A framework for building native apps using React
Asynchronous, non-blocking SQLite3 bindings
PGlite is a WASM Postgres build packaged into a TypeScript client library that enables you to run Postgres in the browser, Node.js and Bun, with no need to install any other dependencies. It is only 3.7mb gzipped.
The semantic version parser used by npm.
TypeScript definitions for react
Prettier is an opinionated code formatter
Version history
| Version | Published | License |
|---|---|---|
| 12.11.1latest | 1 month ago | MIT |
| 12.10.1 | 1 month ago | MIT |
| 12.10.0 | 2 months ago | MIT |
| 12.9.0 | 3 months ago | MIT |
| 12.8.0 | 4 months ago | MIT |
| 12.6.2 | 6 months ago | MIT |
| 12.6.0 | 6 months ago | MIT |
| 12.5.0 | 7 months ago | MIT |
| 12.4.6 | 7 months ago | MIT |
| 12.4.5 | 8 months ago | MIT |
| 12.4.1 | 9 months ago | MIT |
| 12.3.0 | 10 months ago | MIT |
| 12.2.0 | 1 year ago | MIT |
| 12.1.1 | 1 year ago | MIT |
| 12.1.0 | 1 year ago | MIT |
| 12.0.0 | 1 year ago | MIT |
| 11.10.0 | 1 year ago | MIT |
| 11.9.1 | 1 year ago | MIT |
| 11.9.0 | 1 year ago | MIT |
| 11.8.1 | 1 year ago | MIT |
Maintainers
Frequently asked questions
How do I install better-sqlite3?
Run `npm install better-sqlite3` to add better-sqlite3 to your npm project.
What license is better-sqlite3 released under?
better-sqlite3 is distributed under the MIT license.
How popular is better-sqlite3?
better-sqlite3 has approximately 7,688,828 downloads per week and 1 known dependent packages.