node-sqlite3

Asynchronous, non-blocking SQLite3 bindings for Node.js with prebuilt native binaries.

Library
npm
v6.0.1
6,417stars
BSD 3-Clause License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
66/100Good
Development Activity40
Maintenance36
Community88
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
69/100Good
Architecture75
Code Quality76
Innovation55
Learning Curve68

node-sqlite3 (published as the sqlite3 npm package) provides asynchronous, non-blocking bindings to SQLite3 for Node.js, implemented as a native C++ addon on top of node-addon-api. It exposes Database and Statement classes for running queries, prepared statements, and transactions without blocking the event loop, and ships prebuilt binaries via prebuild-install so most installs skip a local native compilation step.

Originally created by Mapbox and now maintained under Ghost’s TryGhost organization, it is one of the longest-standing Node.js SQLite drivers and is used as the underlying SQLite engine by numerous higher-level ORMs and query builders (including Ghost itself).

What You Get

  • Database and Statement classes for running queries, prepared statements, and parameterized SQL
  • Serialized and parallel execution modes for controlling concurrent query scheduling
  • Prebuilt native binaries via prebuild-install, falling back to node-gyp rebuild when no matching prebuild exists
  • TypeScript type definitions (lib/sqlite3.d.ts) bundled with the package
  • Verbose/tracing mode for debugging SQL execution during development

Common Use Cases

  • Embedding a lightweight, file-based SQL database directly inside a Node.js application or CLI tool
  • Serving as the underlying SQLite driver for a higher-level ORM or query builder
  • Local development and testing databases that don’t require a separate database server process
  • Small to medium production services (like Ghost) that use SQLite as their primary datastore

Under The Hood

Architecture The package is a native Node.js addon: src/node_sqlite3.cc defines the addon entry point, with database.cc/database.h and statement.cc/statement.h implementing the Database and Statement classes as thin async wrappers around the bundled SQLite3 C library (vendored under deps/). lib/sqlite3.js is the small JavaScript layer that loads the compiled binding (sqlite3-binding.js) and exposes the public API and TypeScript types.

Tech Stack A mix of C++ (native binding code, using node-addon-api), vendored C (the SQLite3 amalgamation under deps/), and a thin JavaScript wrapper layer; distributed via prebuild/prebuild-install so consumers get a matching prebuilt binary for their platform/Node ABI instead of compiling from source on install.

Code Quality The test/ directory (35 files) exercises the API extensively via Mocha, including a dedicated test/support/createdb.js fixture step before the suite runs, covering serialized/parallel execution modes, prepared statements, and error paths. As a mature, widely-depended-upon native binding, its C++ layer is battle-tested across a broad range of platforms and Node versions via the prebuild binary matrix.

API Design The API follows Node’s traditional callback-based database driver conventions (db.run(), db.get(), db.all(), db.each()), which keeps it compatible with a large ecosystem of ORMs and query builders built against the same interface shape, at the cost of feeling dated next to newer Promise-first SQLite bindings.

Used by 15 apps in this directory

TypeScript
99%
Other

Activepieces

Automation · AI Assistants

23,887

Open-source AI automation platform that converts 280+ workflow integrations into MCP servers for LLMs, with no-code builders and TypeScript extensibility.

View details
92
Repo Health
85
Technical
65
Dependency
Built with
TypeScript99%
Updated today
Python
86%
MIT

ai-toolkit

AI Development · AI Design Tools

11,757

An all-in-one open-source training suite for finetuning diffusion models—FLUX, SDXL, Wan video, and audio—on consumer GPU hardware via CLI or web UI.

View details
77
Repo Health
66
Technical
75
Dependency
Built with
Python86%
TypeScript13%
Updated 2 days ago
TypeScript
49%
MPL 2.0

Artillery

Devops · Developer Tools

9,054

Cloud-scale load testing and functional testing for APIs, WebSockets, gRPC, and headless browsers, distributed across AWS Lambda or Fargate with zero infrastructure to manage.

View details
89
Repo Health
73
Technical
68
Dependency
Built with
TypeScript49%
JavaScript48%
Updated 5 days ago
TypeScript
92%
GPL 3.0

Blinko

Knowledge Management · Note Taking

10,880

A self-hosted, AI-powered card note-taking tool that lets you capture fleeting thoughts instantly and retrieve them with natural language search.

View details
83
Repo Health
69
Technical
65
Dependency
Built with
TypeScript92%
Updated 2 weeks ago
JavaScript
99%
Other

ChartBrew

Analytics · Databases

4,041

Open-source reporting platform to build live dashboards from SQL, NoSQL, APIs, and SaaS tools with an AI assistant that creates charts from natural language.

View details
90
Repo Health
83
Technical
65
Dependency
Built with
JavaScript99%
Updated 6 days ago
TypeScript
84%
Apache 2.0

Continue

Developer Tools · AI Development · AI Code Assistants

35,532

Open-source coding agent for VS Code, JetBrains, and CLI with support for 30+ LLM providers.

View details
87
Repo Health
88
Technical
65
Dependency
Built with
TypeScript84%
Updated today
JavaScript
82%
Other

Countly

Analytics · Marketing

5,887

Privacy-first, self-hosted analytics and customer engagement platform with full data ownership, GDPR compliance, and AI-powered insights across mobile, web, desktop, and IoT.

View details
96
Repo Health
82
Technical
68
Dependency
Built with
JavaScript82%
Updated today
JavaScript
52%
MIT

evidence

Analytics · Data Engineering

6,861

Turn SQL queries and markdown files into polished, interactive data apps and business intelligence reports — no drag-and-drop, no GUI, just code.

View details
65
Repo Health
79
Technical
65
Dependency
Built with
JavaScript52%
Svelte40%
Updated today
TypeScript
62%
Other

Flowise

Developer Tools · Automation · No Code Platforms

55,379

Drag-and-drop visual builder for AI agents, RAG pipelines, and multi-agent systems—deploy anywhere in minutes.

View details
91
Repo Health
77
Technical
64
Dependency
Built with
TypeScript62%
JavaScript27%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search