cd /news/ai-tools/show-hn-i-built-sana-a-vector-db-on-… · home topics ai-tools article
[ARTICLE · art-35654] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Show HN: I "built" Sana, a vector DB on object storage

A developer released Sana, an open-source vector database built on object storage that supports vectors, full-text search, and attribute filters. The project, inspired by turbopuffer, uses object stores like S3 as the durable home for documents and includes features like WAL-based durability, LSM indexes, and IVF with RaBitQ quantization. Sana is intended for learning rather than production use.

read1 min views1 publishedJun 21, 2026
Show HN: I "built" Sana, a vector DB on object storage
Image: source

An object-storage-native search database: vectors, full-text, and attribute filters over documents whose only durable home is an object store — a local directory or S3. A turbopuffer-inspired open-source clone, built in staged, documented commits.

AI disclaimer:this is an AI-assisted project (built with Claude and Codex). It exists to learn from, not to run your production on.

What works:

  • Durable writes — WAL with a CAS-advanced commit cursor in object storage; strongly consistent reads through the unindexed overlay; idempotency keys, conditional writes, patch/delete-by-filter, write backpressure.
  • Indexes — LSM document SSTs, delta-tiered attribute postings, BM25 full-text with rank-safe block MAXSCORE, IVF vectors with faithful RaBitQ quantization (SIMD kernels) and SPFresh-style local split/merge maintenance.
  • One binary — a CLI, API-only serving, looped indexing/maintenance roles, all-in-one dev serving, operator GC dry-runs, and a Prometheus /metrics

endpoint. - Backends — local filesystem for dev; S3-compatible stores with server-enforced conditional writes (verified against MinIO).

  • Operations — namespace branch, cross-store copy, deterministic export, leased replica pinning, cache warming, ANN recall endpoint.
cargo run --release -- demo ./data        # tiny end-to-end demo
cargo run --release -- serve ./data       # HTTP service on 127.0.0.1:8080
cargo run --release --example usage       # library API tour
cargo run --release --example latency     # benchmark harness

User guide · Architecture · Build log & decisions · Contributing · Benchmarks

MIT — see LICENSE.

── more in #ai-tools 4 stories · sorted by recency
── more on @sana 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-i-built-sana…] indexed:0 read:1min 2026-06-21 ·