
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
bare-sqlite-vector
Advanced tools
SQLite Vector bindings for Bare. Statically embeds the sqlite-vector extension from https://github.com/sqliteai/sqlite-vector and registers it against an existing bare-sqlite connection from https://github.com/holepunchto/bare-sqlite, adding vector encoding, nearest-neighbour search, and quantization-based ANN search to ordinary SQLite tables.
npm i bare-sqlite-vector
const { DatabaseSync } = require('bare-sqlite')
const vector = require('bare-sqlite-vector')
const db = new DatabaseSync(':memory:')
vector.register(db)
db.exec(`
CREATE TABLE points (id INTEGER PRIMARY KEY, v BLOB);
INSERT INTO points (v) VALUES (vector_as_f32('[1.0, 0.0, 0.0, 0.0]'));
INSERT INTO points (v) VALUES (vector_as_f32('[0.0, 1.0, 0.0, 0.0]'));
`)
db.prepare("SELECT vector_init('points', 'v', 'type=FLOAT32,dimension=4,distance=L2')").get()
const rows = db
.prepare(
"SELECT rowid, distance FROM vector_full_scan('points', 'v', vector_as_f32('[0.9, 0.1, 0.0, 0.0]'), 2)"
)
.all()
vector.register(db)Register the vector extension's SQL functions and virtual table modules on the given bare-sqlite connection. db must be an open DatabaseSync instance from bare-sqlite.
Registration is per-connection; each new DatabaseSync that needs vector functions must call register again. The call is idempotent: Invoking it more than once on the same connection is a no-op.
Throws DATABASE_NOT_OPEN if db has been closed.
Apache-2.0 and Elastic-2.0
FAQs
SQLite Vector bindings for Bare
We found that bare-sqlite-vector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.