SQLite Vector bindings for Bare that statically embed the sqlite-vector extension for vector encoding, nearest-neighbour search, and quantization-based ANN search. Version 0.1.1 is the current stable release, with no active release cadence. Key differentiators: tight integration with bare-sqlite, idempotent per-connection registration, and support for FLOAT32 vectors with L2 distance. No npm download statistics available; it is targeted at Bare runtime environments.
npm install bare-sqlite-vectorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows import, registration, table creation, vector initialization, and nearest-neighbour query using bare-sqlite-vector.
Call `register(db)` for every new database connection.
Ensure the database is open before calling register() and before any vector operations.
Use ESM `import { register }` or CommonJS `const vector = require('bare-sqlite-vector')` and call `vector.register(db)`.Use `const vector = require('bare-sqlite-vector')` then call `vector.register(db)`.Create a new DatabaseSync or reopen the database before calling register().
Ensure vectors match the dimension and type specified in vector_init (e.g., FLOAT32 dimension=4).