node-sqlite3

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

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

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
56 /100 Fair
Development Activity 16
Maintenance 20
Community 88
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
69 /100 Good
Architecture 75
Code Quality 76
Innovation 55
Learning Curve 68

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
100%
Other

Activepieces

AI Assistants · Automation · Mcp

24,756

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
64
Dependency
Built with
TypeScript 100%
Updated 5 days ago
Python
85%
MIT

ai-toolkit

AI Design Tools · AI Development

12,143

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
79
Repo Health
66
Technical
72
Dependency
Built with
Python 85%
TypeScript 14%
Updated 6 days ago
TypeScript
49%
MPL 2.0

Artillery

Developer Tools · Devops

9,083

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
TypeScript 49%
JavaScript 48%
Updated 1 weeks ago
TypeScript
92%
GPL 3.0

Blinko

Knowledge Management · Note Taking

11,049

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
75
Repo Health
69
Technical
63
Dependency
Built with
TypeScript 92%
Updated 1 months ago
JavaScript
99%
Other

ChartBrew

Analytics · Databases

4,063

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
64
Dependency
Built with
JavaScript 99%
Updated 1 weeks ago
TypeScript
84%
Apache 2.0

Continue

AI Code Assistants · AI Development · Automation

36,049

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

View details
73
Repo Health
88
Technical
62
Dependency
Built with
TypeScript 84%
Updated 6 days ago
JavaScript
83%
Other

Countly

Analytics · Marketing

5,908

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
65
Dependency
Built with
JavaScript 83%
Updated 5 days ago
TypeScript
82%
MIT

evidence

Analytics · Data Engineering

6,962

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
90
Repo Health
79
Technical
64
Dependency
Built with
TypeScript 82%
Svelte 17%
Updated 1 weeks ago
TypeScript
62%
Other

Flowise

AI Development · Automation · Developer Tools

55,490

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

View details
82
Repo Health
77
Technical
63
Dependency
Built with
TypeScript 62%
JavaScript 27%
Updated 1 months 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