# better-sqlite3 — card for AI agents

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

Category: Databases, ORMs and clients · npm package `better-sqlite3` · latest version 13.0.3 (checked 2026-11-01)
Install: `npm install better-sqlite3`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 72.4 (#294 of all tools, 8 of 120 in its category)
- Used in 151 public projects set up for AI coding agents (2.4%)
- Downloads last week: 17,420,715 (as of 2026-11-24), +48.3% over 4 weeks
- GitHub stars: 7,558 (as of 2026-11-24)
- Last push: 2026-11-14

## Often used with
Vitest 55.6%, tsx 45.7%, TypeScript 82.8%, Zod 56.3%, Model Context Protocol SDK (JavaScript) 31.8%, Drizzle ORM 25.2%

## Checked alternatives (same job)
- pg: https://agentgid.com/tools/pg/agent.md
- Drizzle ORM: https://agentgid.com/tools/drizzle-orm/agent.md
- Prisma: https://agentgid.com/tools/prisma/agent.md
- mysql2: https://agentgid.com/tools/mysql2/agent.md
- sqlite3: https://agentgid.com/tools/sqlite3/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/better-sqlite3/
- Homepage: http://github.com/WiseLibs/better-sqlite3
- Repository: https://github.com/WiseLibs/better-sqlite3

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
