SQLite compiled to WebAssembly with the sqlite-vec extension for vector similarity search. Version 0.1.11 bundles SQLite 3.51.0 and sqlite-vec v0.1.7-alpha.2 in a ~1.5MB WASM binary. Provides full SQLite API with vector operations (k-NN search, distance functions) directly in browsers and Node.js. Supports float, int8, and bit vector types via virtual tables. Includes OPFS for persistent storage in browsers and first-class TypeScript types. Fork of @sqlite.org/sqlite-wasm with all original features intact.
npm install sqlite-wasm-vecNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes SQLite with vector support, creates a virtual table, inserts a vector, and performs a k-NN similarity search.
Use ':memory:' for Node.js; for persistence, run in browser with OPFS enabled.
Use `embedding.buffer` when binding vector data to SQL statements.
Access the WASM resource internally; no public export provided.
Ensure you create virtual tables using `CREATE VIRTUAL TABLE ... USING vec0(...)` before calling vector operations.
Use `CREATE VIRTUAL TABLE ... USING vec0(...)` syntax.
Use `import sqlite3InitModule from 'sqlite-wasm-vec'` and then `const sqlite3 = await sqlite3InitModule()`.
Pass `embedding.buffer` instead of `embedding`.
No dependency data recorded yet.