wiselibs/better-sqlite3

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Added to GitGenius on September 8th, 2026
Created on September 7th, 2016
Open Issues & Pull Requests: 70 (+0)
GitHub issues: Enabled
Number of forks: 477
Total Stargazers: 7,477 (+0)
Total Subscribers: 53 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 5.4 hours
Mean response time: 15.7 days
90th percentile: 18.7 days
Tracked items: 225

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 92% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 7% of issues opened in the past year have been closed. Three people close 71% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 25
New in 7 days: 0
Closed in 7 days: 2
Avg open age: 1,394 days
Stale 30+ days: 20
Stale 90+ days: 16

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 1
Events in 7 days: 2

Top labels

  • enhancement (25)
  • help wanted (22)
  • installation (16)
  • question (9)
  • wontfix (8)
  • discussion (6)
  • bug (4)
  • duplicate (3)

Detailed Description

better-sqlite3 is a SQLite database library for Node.js that prioritizes performance and simplicity through synchronous operations.

The library addresses the inefficiency of asynchronous SQLite drivers by using a synchronous API, which the documentation argues actually provides better concurrency than asynchronous alternatives while avoiding mutex thrashing and resource waste. It wraps SQLite3 with a focus on ease of use, offering full transaction support, user-defined functions and aggregates, virtual table support, 64-bit integer handling, and worker thread support for large or slow queries. The synchronous design means developers can write straightforward code without callback chains or promise management.

Developers should choose this library if they need reliable, fast SQLite access in Node.js applications and are comfortable with synchronous database calls. It suits projects ranging from small utilities to larger applications where SQLite is the appropriate database choice. The README explicitly compares it to node-sqlite3 and the sqlite package, noting substantial performance advantages across read, write, and iteration operations, along with simpler memory management and a more developer-friendly API.

The project maintains active continuous integration with automated build testing. The maintainer has explicitly requested community support through sponsorship and donation mechanisms, indicating sustained commitment to the project's long-term maintenance and reliability.