Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

better-sqlite3

Fastest and simplest SQLite library for Node.js with synchronous API.

Databases, ORMs and clientsNPM

GitHubWebsite

1. License

License from npm.

github.com/WiseLibs/better-sqlite3

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What better-sqlite3 does

Fastest and simplest SQLite library for Node.js with synchronous API.

better-sqlite3 popularity

72 / 100
Gid Score, #294 overall
17.4M
downloads a week, npm
7,558
GitHub stars
151
agent projects use it
better-sqlite3: downloads per weeknpm, better-sqlite3 17,420,715
better-sqlite3: GitHub starsWiseLibs/better-sqlite3 7,558

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How better-sqlite3 is used

  • better-sqlite3 is a dependency in 151 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.1% of the 4,867 JavaScript/TypeScript ones), #6 of 120 in databases, orms and clients.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 470; those are left out of every share on this page.
  • The most used alternative in our scan is pg (298 projects).
  • Projects that use it most often also use Vitest (55.6%), tsx (45.7%), TypeScript (82.8%).

By coding agent

91 projects, 2.8%
72 projects, 2.4%
55 projects, 2.3%
16 projects, 3.4%
15 projects, 3.2%
14 projects, 4.2%
14 projects, 4.1%
11 projects, 3.9%

Often used with

In 55.6% of its projects
In 45.7% of its projects
In 82.8% of its projects
In 56.3% of its projects
In 25.2% of its projects
In 24.5% of its projects
In 57.0% of its projects

More about better-sqlite3

Funding
  • GitHub Sponsors: https://github.com/JoshuaWise
  • Patreon: https://patreon.com/joshuawise
  • Own page: https://www.paypal.me/joshuathomaswise
  • 9 GitHub sponsors

See all

More in Databases, ORMs and clients

Alternatives

better-sqlite3 This page

MITGid 7217.4M/wk

pg

PostgreSQL client for Node.js with pure JavaScript and libpq API compatibility.

MITGid 81106M/wk

Drizzle ORM

TypeScript ORM for SQL databases with type safety and zero-runtime overhead.

Apache-2.0Gid 8649.6M/wk

Prisma

Modern ORM with intuitive schema, migrations, and type-safe database queries.

Apache-2.0Gid 6426M/wk

mysql2

Fast MySQL driver with native protocol implementation, prepared statements and SSL.

MITGid 6625.6M/wk

sqlite3

Asynchronous, non-blocking SQLite3 database bindings for Node.js.

BSD-3-ClauseGid 582.9M/wk

Compare better-sqlite3 with another tool

Get started

Install it.

npm install better-sqlite3

No step-by-step start for better-sqlite3 yet: we have not written its hand-checked card.