SQLite vector similarity search extension via npm for Node.js. Current version 0.1.2, release cadence infrequent. Provides vector search capabilities (e.g., cosine similarity, inner product) as a loadable SQLite extension. Key differentiator: pre-compiled binaries for MacOS and Linux x64, integrates with better-sqlite3 and node-sqlite3. Includes TypeScript types.
npm install sqlite-vssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to load the extension, create a virtual table with vector index, insert vectors, and perform a similarity search.
Check release notes for alternative API.
Always install without --no-optional flag.
Convert Float32Array to Buffer via Buffer.from(array.buffer).
Check process.platform and process.arch before installing.
Ensure SQLite library supports loadable extensions (enable with SQLITE_ENABLE_LOAD_EXTENSION).
For node-sqlite3, use sqlite_vss.getLoadablePath() and pass to db.loadExtension().
Ensure you are on a supported platform and did not use --no-optional. Verify with `node -e 'console.log(process.platform, process.arch)'`.
Run `npm install sqlite-vss` in your project directory.
Use db.loadExtension() for node-sqlite3, or sqlite_vss.load(db) for better-sqlite3.
Ensure the Buffer length equals dimension * 4 bytes (Float32).