Registry / database / sqlite-vss-linux-x64

sqlite-vss-linux-x64

JSON →
library0.1.2jsnpmunverified

Platform-specific package for sqlite-vss that bundles a pre-compiled SQLite vector similarity search extension (.so) for Linux x64. Version 0.1.2. This package is automatically downloaded when sqlite-vss is installed on a Linux x64 host. It provides fast vector search directly in SQLite using the same interface as the main sqlite-vss package, but with native binaries. No active development since 2023; last release was 0.1.2. Key differentiator: enables vector operations like cosine similarity without external services.

npm install sqlite-vss-linux-x64
INSTALL
IMPORT
SIG · SQLITE-VSS-LINUX-X
S
sqlite-vss-linux-x64
databasejavascriptv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

loadExtension
import Database from 'better-sqlite3'; const db = new Database(':memory:'); db.loadExtension('path/to/vss0.so');
const Database = require('sqlite3').Database; const db = new Database(':memory:'); db.loadExtension('path/to/vss0.so');
Use better-sqlite3 for synchronous API; node-sqlite3 is callback-based.
sqlite3
const sqlite3 = require('sqlite3'); const db = new sqlite3.Database(':memory:').loadExtension('path/to/vss0.so', (err) => { ... });
import { Database } from 'sqlite3';
node-sqlite3 uses CommonJS; ESM import may not work directly.
getVectorTable
db.exec(`CREATE VIRTUAL TABLE vss_docs USING vss0(doc_embedding(384))`); const rows = db.prepare('SELECT * FROM vss_docs WHERE vss_search(doc_embedding, ?)').all(queryEmbedding);
db.exec(`CREATE VIRTUAL TABLE vss_docs USING vss0(doc_embedding)`);
The dimension must be specified in parentheses after the column name.

Creates an in-memory SQLite database, loads the vss0 extension, creates a virtual table for vector search, inserts a vector, and queries for nearest neighbors.

import Database from 'better-sqlite3'; import { join } from 'path'; const db = new Database(':memory:'); const extPath = join(__dirname, 'node_modules/sqlite-vss-linux-x64/lib/vss0.so'); db.loadExtension(extPath); db.exec(`CREATE VIRTUAL TABLE vss_items USING vss0(item_embedding(512));`); const insert = db.prepare('INSERT INTO vss_items(rowid, item_embedding) VALUES (?, ?)'); const embedding = new Float32Array(512); // populate with data insert.run(1, Buffer.from(embedding.buffer)); const query = db.prepare(`SELECT rowid, distance FROM vss_items WHERE vss_search(item_embedding, ?) ORDER BY distance LIMIT 3`); const results = query.all(Buffer.from(queryEmbedding.buffer)); console.log(results);
Debug
Known issues
breakingPlatform-specific package requires exact architecture match. Will error if loaded on non-Linux x64.
fix
Install sqlite-vss instead which handles platform detection automatically.
affects: >=0.0.0
gotchaVectors must be provided as Buffer of Float32Array for proper binary format.
fix
Use Buffer.from(new Float32Array([...values]).buffer).
affects: >=0.0.0
gotchaVirtual table creation requires dimension in parentheses after column name.
fix
Specify dimension: column_name(dimension).
affects: >=0.0.0
deprecatedPackage has not been updated since 2023; no active maintenance.
fix
Consider alternative vector search libraries like pgvector if needing active development.
affects: >=0.0.0
Errors
Common errors & fixes
Error: The specified module could not be found. \\?\C:\...\vss0.so
Attempting to load Linux .so on Windows.
fix
Install the correct platform package (e.g., sqlite-vss-win32-x64-msvc) or use sqlite-vss for automatic platform detection.
Error: dlopen(.../vss0.so): cannot open shared object file: No such file or directory
Pre-compiled extension not found or path incorrect.
fix
Verify the path points to node_modules/sqlite-vss-linux-x64/lib/vss0.so.
Error: malformed database schema (vss0) - no such module: vss0
Extension not loaded before virtual table creation.
fix
Call db.loadExtension(extPath) before any VIRTUAL TABLE statements.
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
better-sqlite3optionalRequired at runtime to load the extension; alternative to node-sqlite3
node-sqlite3optionalAlternative runtime for loading the extension
sqlite-vssrequiredParent package that resolves to this platform-specific package
Agent activity
14 hits · last 30 days
node
10
Meta
2
OpenAI (training)
1
Resources
sqlite-vss-linux-x64 — npm install sqlite-vss-linux-x64 · libregistry