← all repositories
asg017/sqlite-vec

Vector search that fits in a SQLite file

Because your embeddings shouldn't need a separate database.

sqlite-vec
Not currently ranked — collecting fresh signals.
star history

What it does

sqlite-vec is a C extension that adds vector search to SQLite through a vec0 virtual table. You store float, int8, or binary vectors alongside your regular data and run k-nearest-neighbor queries with ordinary SQL—no external vector database required.

The interesting bit

The author calls it “extremely small, ‘fast enough’"—a refreshing admission in a field obsessed with benchmark warfare. Pure C, zero dependencies, and it compiles to WASM for browser use. The same .db file that holds your users and orders now holds your embeddings too.

Key highlights

  • Supports float, int8, and binary vector types
  • Bindings for Python, Node.js, Ruby, Go, Rust, Datasette, rqlite, and sqlite-utils
  • Metadata and auxiliary columns keep vector + relational data in one table
  • Backed by Mozilla Builders; also sponsored by Fly.io, Turso, SQLite Cloud, and Shinkai

Caveats

  • Pre-v1, so breaking changes are expected
  • The README doesn’t quantify “fast enough”—no throughput or latency numbers given

Verdict

Worth a look if you’re building local-first or edge AI apps and resent maintaining a second database just for embeddings. Skip it if you need proven scale guarantees or are allergic to pre-1.0 software.

Frequently asked

What is asg017/sqlite-vec?
Because your embeddings shouldn't need a separate database.
Is sqlite-vec open source?
Yes — asg017/sqlite-vec is open source, released under the Apache-2.0 license.
What language is sqlite-vec written in?
asg017/sqlite-vec is primarily written in C.
How popular is sqlite-vec?
asg017/sqlite-vec has 7.8k stars on GitHub.
Where can I find sqlite-vec?
asg017/sqlite-vec is on GitHub at https://github.com/asg017/sqlite-vec.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.