Open Sourceendgame.io
Home

Blowfish

Blowfish is a self-hosted search engine that stores everything in your own S3-compatible bucket. It speaks the turbopuffer API, so you can switch from turbopuffer by changing the base URL and API key, not your code.

  • Rust
  • MIT license
  • v0.1.114
  • updated today
git clone https://github.com/Endgame-Labs/blowfish
cd blowfish
docker compose up --build --wait blowfish
  • ~2× fasterCache-cold search across 10M vectors in S3 takes 454 ms (626 ms on a freshly started server), beating turbopuffer’s published 874 ms for 768-dimension vectors on its own infrastructure.README, Benchmarks
  • 100M rowsSearched on a single machine directly from S3 in 1.1–1.3 seconds cold—a scale turbopuffer hasn’t published benchmarks for.README, Benchmarks
  • 0.953 recall@10Top-10 nearest-neighbor accuracy on 10M Wikipedia vectors, outperforming turbopuffer (0.943) and Amazon S3 Vectors (0.894) on the same dataset.README, Benchmarks

Fast when RAM is tight

RAM-heavy engines slow down on smaller machines once memory fills up and every hop hits disk. Blowfish fetches only what a query needs, holding its throughput under tight memory limits.

It runs 2.5× to 8.5× faster than Qdrant at 2 and 4 GiB, while Qdrant takes the lead from 8 GiB up.

At 2 GiB, Blowfish handles 710 queries a second. Qdrant reads from disk on each hop and gets 83 and 96.

  • Blowfish710 q/s
  • Qdrant, vectors on disk83 q/s
  • Qdrant, graph on disk too96 q/s

Higher is better. Throughput (q/s) across 16 clients on 2.68M BEIR NQ passages in a capped Linux VM (Apple M4), with RAM and page cache limited. Blowfish v0.1.15 at 48 probes; Qdrant 1.20.0 at ef=64. Method and reproduction

One bucket, any number of servers

Stateful search clusters get hard to keep in sync. Blowfish treats object storage as the source of truth: incoming writes go to a WAL, index files stay immutable, and a manifest tracks state.

Writes are acknowledged once durably logged to the bucket, while a background indexer builds vector and keyword indexes. Because servers only cache data locally, scaling read capacity is just adding read-only nodes against the same bucket.

Clients using the official turbopuffer SDKs in Python, TypeScript, Go, Java, Ruby, or Rust connect to any number of stateless Blowfish servers, which share one S3 bucket holding the log, index, and manifest.

Same SDK, different base URL

Switching search engines usually means rewriting application code to match a new API. Because Blowfish implements the turbopuffer API, you can swap it in using the same official SDKs with no client rewrites. Point TURBOPUFFER_BASE_URL at your Blowfish server, supply an API key, and unset TURBOPUFFER_REGION (otherwise the SDK throws an error instead of sending requests). The snippet below upserts two rows, then combines keyword and vector search via reciprocal rank fusion (RRF).

Blowfish is an independent open source project and is not affiliated with or endorsed by turbopuffer. Use it for local development, testing, and CI without a turbopuffer account or network access, for self-hosting modest workloads, or for keeping index data in your own cloud or on-prem bucket. For large-scale production workloads, we recommend turbopuffer itself.

hybrid.py
from turbopuffer import Turbopuffer
# Ensure TURBOPUFFER_REGION is unset in the environment.
client = Turbopuffer(
base_url="http://127.0.0.1:8000",
api_key="local-development",
)
ns = client.namespace("articles")
ns.write(
distance_metric="cosine_distance",
schema={"text": {"type": "string", "full_text_search": True}},
upsert_rows=[
{"id": 1, "vector": [0.9, 0.1], "text": "The Danube flows through Central and Southeastern Europe."},
{"id": 2, "vector": [0.1, 0.9], "text": "Object storage keeps immutable index segments durable."},
],
)
hybrid = ns.multi_query(
queries=[
{"rank_by": ("text", "BM25", "danube europe"), "top_k": 10, "include_attributes": ["text"]},
{"rank_by": ("vector", "ANN", [0.9, 0.1]), "top_k": 10, "include_attributes": ["text"]},
],
rerank_by=["RRF"],
limit=5,
)

Factoid’s index, in your bucket

With a hosted search service, your Factoid index sits in storage you don’t run. Point base_url in settings.py at Blowfish instead. Factoid’s search accepts any turbopuffer-compatible endpoint, so your index stays in your own bucket.

settings.py
# settings.py in a Factoid project
from factoid import Settings
from factoid.search import Turbopuffer
class Project(Settings):
search = Turbopuffer(
base_url="http://127.0.0.1:8000", # your Blowfish server
retrieve="hybrid-rrf",
)

© 2026 Endgame. All rights reserved.