sqlite-vec is a SQLite extension for vector search, providing fast k-nearest neighbor (k-NN) queries directly within SQLite. The current stable version is 0.1.9. It is released as a series of platform-specific packages (Linux ARM64, Linux x86_64, macOS, Windows). Key differentiators: it is lightweight, has zero external dependencies, supports multiple distance metrics (cosine, Euclidean, dot product), and integrates seamlessly via a single SQL function call. This package is for Linux ARM64 systems only; other platforms require a separate distribution.
npm install sqlite-vec-linux-arm64No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows loading the extension and performing a vector search query.
Use init.path exported by the package, not a hardcoded path.
Upgrade to 0.1.0+ and use init.path.
Use sqlite-vec-linux-x64 for x86_64 systems.
Install better-sqlite3 as a peer dependency.
npm install sqlite-vec-linux-arm64 --save
const init = require('sqlite-vec-linux-arm64'); db.loadExtension(init.path);Use better-sqlite3 or another compatible binding.
No dependency data recorded yet.