</>PackageGraphPackageGraph

sqlite3

npmv6.0.1TypeScript

Asynchronous, non-blocking SQLite3 bindings

Adopt with care

sqlite3 is usable, with caveats. This package runs an install script on your machine.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 181 days ago.

  • BWeight: grade B, Good.

    Pulls in 9 transitive packages, about 5.7 MB installed (at least — some of the tree is still being crawled).

  • CSupply chain: grade C, Fair — worth a look.

    This package runs an install script on your machine.

  • ALicense: grade A, Excellent.

    BSD-3-Clause — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding sqlite3 to a project.

4
Direct dependencies

Runtime packages this one declares itself.

9
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

5.7 MB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

BlueOak-1.0.0ISCMIT

Every license you inherit by installing sqlite3, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node >=20.17.0
Module format
CommonJS only
TypeScript
Types included
Install scripts
Runs on install

Installing this package executes a script defined by its publisher. That is normal for native modules, but it is also how supply-chain attacks run — review it before installing in CI or on a machine with credentials.

Quick start

A usage example from the sqlite3 README.

const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database(':memory:');

db.serialize(() => {
    db.run("CREATE TABLE lorem (info TEXT)");

    const stmt = db.prepare("INSERT INTO lorem VALUES (?)");
    for (let i = 0; i < 10; i++) {
        stmt.run("Ipsum " + i);
    }
    stmt.finalize();

    db.each("SELECT rowid AS id, info FROM lorem", (err, row) => {
        console.log(row.id + ": " + row.info);
Example truncated — see the full README.

sqlite3 vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
sqlite3this page03BSD-3-Clause6 months ago
better-sqlite305MIT1 day ago
drizzle-orm19M0Apache-2.01 day ago
knex01MIT1 day ago
kysely15.6M1MIT1 day ago
@libsql/client2M1MIT1 day ago

Dependencies

Declared by sqlite3 v6.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (4)

bindings ^1.5.0node-addon-api ^8.0.0prebuild-install ^7.1.3tar ^7.5.10

Peer (1)

node-gyp 12.x

Dev (3)

eslint 8.56.0mocha 10.2.0prebuild 13.0.1

Used by

Popular packages that depend on sqlite3.

Relationship graph

Dependencies (left) and dependents (right) of sqlite3.

tardrizzle-ormbetter-sqlite3knexsqlite3
sqlite3 dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 8 days apart.

Recent versions of sqlite3
VersionPublishedSizeLicense
6.0.1latest6 months ago3.2 MBBSD-3-Clause
5.1.72 years ago3.2 MBBSD-3-Clause
5.1.7-rc.02 years ago3.2 MBBSD-3-Clause
5.1.63 years ago3.1 MBBSD-3-Clause
5.1.53 years ago3.1 MBBSD-3-Clause
5.1.43 years ago3.1 MBBSD-3-Clause
5.1.33 years ago3.1 MBBSD-3-Clause
5.1.23 years ago3.1 MBBSD-3-Clause
5.1.14 years ago3.1 MBBSD-3-Clause
5.1.04 years ago3.1 MBBSD-3-Clause
5.0.114 years ago3.1 MBBSD-3-Clause
5.0.104 years ago3.1 MBBSD-3-Clause
5.0.94 years ago3.1 MBBSD-3-Clause
5.0.84 years ago3.0 MBBSD-3-Clause
5.0.74 years ago3.0 MBBSD-3-Clause

Overview

sqlite3 is an npm package that asynchronous, non-blocking SQLite3 bindings. It has 3 known dependents in the graph. The latest version is 6.0.1, released under the BSD-3-Clause license.

Who should use it

Teams working in the npm ecosystem who need asynchronous, non-blocking SQLite3 bindings and value a focused solution.

When not to use it

Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (BSD-3-Clause).

Cons

  • No significant drawbacks detected from available metadata.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use sqlite3?

sqlite3 is usable, with caveats. This package runs an install script on your machine.

How do I install sqlite3?

Run `npm install sqlite3` to add sqlite3 to your npm project.

How many dependencies does sqlite3 have?

sqlite3 declares 9 direct dependencies and pulls in 9 packages in total once its runtime tree is resolved totalling about 5.7 MB on disk.

What license is sqlite3 released under?

sqlite3 is distributed under the BSD-3-Clause license. Its dependency tree also includes: BlueOak-1.0.0, ISC, MIT.

How popular is sqlite3?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on sqlite3.

Is sqlite3 still maintained?

The most recent release of sqlite3 (v6.0.1) was published 6 months ago.

Does sqlite3 run install scripts?

Yes. sqlite3 defines a lifecycle script that executes when the package is installed. Review it before installing in CI or on a machine holding credentials.