Databases and storage · Library

better-sqlite3

The most popular way to use SQLite from Node.js, with a simple synchronous API that is also very fast.

Talking to a database · Open source · updated

How it works

better-sqlite3 binds the SQLite C library into Node. Queries run synchronously, which sounds wrong for Node but suits SQLite, because each call finishes in microseconds and there is no network to wait on. It supports transactions, prepared statements and loading extensions such as sqlite-vec.

As a native module it has to match the Node version and platform it runs on, and it cannot run on edge runtimes. Newer Node versions also include a built-in node:sqlite module.

better-sqlite3 pricing

Open source

Free (MIT).

Approximate, checked September 2026.What the other tools cost

More in Databases and storage

Talking to a database

All 25 Databases and storage terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.