# WiseLibs/better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.

Repository: https://github.com/WiseLibs/better-sqlite3
Canonical: https://ross.abutalabs.com/products/better-sqlite3
Language: JavaScript
License: MIT
License Family: permissive
Topics: sql, sqlite, sqlite3, database
Last push: 2026-08-10T03:10:10+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 96, longevity 100
- inputs: {"age_days": 3647, "days_push": 23, "days_rel": 28, "gap_med": 6.5, "n_releases_24m": 41}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7455, forks 474 (observed 2026-08-28T04:09:59.959034+00:00)

## What it is
A fast, synchronous SQLite3 driver library for Node.js with full transaction support and a simple API. It outperforms async alternatives like node-sqlite3 and supports user-defined functions, aggregates, virtual tables, and extensions.

## Use cases
- use sqlite in a node.js app
- fast local database for node
- run sql queries synchronously in javascript
- embed a database in an electron app
- replace node-sqlite3 for better performance
- store structured data locally without a server

## When to choose
- you need the fastest sqlite access in Node.js
- you prefer a simple synchronous API over async callbacks
- you need transactions, user-defined functions, or extensions
- you want an embedded, zero-configuration database

## When to avoid
- you need a client-server database like PostgreSQL or MySQL
- you need concurrent multi-process write access to the same database
- your project is not on Node.js

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, backend, developer-tools
- platform: cross-platform
- tags: sqlite, sql, synchronous-api, embedded-database, transactions, nodejs

## Member repositories
- WiseLibs/better-sqlite3 (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:59.959034+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:37:39.838317+00:00, confidence not recorded.
  - readme: https://github.com/WiseLibs/better-sqlite3 (fetched 2026-08-28T04:09:59.959034+00:00, sha e7ba73a61547)
  - registry_npm: https://registry.npmjs.org/better-sqlite3 (fetched 2026-08-29T08:33:15.496751+00:00, sha 5eb198c278a4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
