EdgeReco on GitHub
EdgeReco is an open-source, browser-first product recommendation engine. Its source lives on GitHub at gainratio/edge-reco. Everything below is public, and every repository is maintained by hseshadr.
The EdgeReco stack
- gainratio/edge-reco — Product search and recommendations that run on the shopper's device: 1,000,000 products across 64 sharded 2-bit IVF-TurboQuant SQLite bundles (79.0 MB signed bundle across 3,331 chunks, 96 KiB centroid router, 42.9 KB two-chunk live delta updates) in the live storefront, scored by Assay (97.4% P@10, 94.0% R/max, 0.64 F1@24, 0.97 nDCG@10). MiniLM semantic search, rank fusion and session-aware reranking all run in the tab with zero backend calls after sync.
- gainratio/edge-proc — Ship a search index to a device as signed, content-addressed bundles: fail-closed Ed25519 verification, FastCDC chunking plus prebuilt zstd --patch-from binary delta patches so the next release downloads only changed bytes, then FAISS + BM25 rank fusion locally. Python. 784 tests, 98% coverage. EdgeReco is built on it.
- gainratio/edgeproc-core — Decides which partition a vector belongs in when a vector index is split across tenants, users, or time windows: three routing strategies plus result merge-back, one runtime dependency (pydantic), no index of its own. 243 tests, 98% coverage. On PyPI as edgeproc-core.
Other repositories by the same maintainer
- gainratio/aml-filter — Screen a name against 31,566 sanctioned entities — OFAC SDN, EU, UN and UK OFSI — entirely inside your browser tab. Signed watchlist bundles with fail-closed Ed25519 verification, explainable fuzzy matching, and customer records that never leave SQLite-WASM on your own disk. 1,215 tests. Live at aml-filter.com.
- gainratio/privacy-core — Redact PII in the browser before a prompt ever leaves the machine, then rehydrate the reply locally: 11 entity types, Luhn/SSN/IBAN checksum validation, and a type-checked Egress Guard on the send path. TypeScript. 173 tests, 100% coverage.
- gainratio/assay — Sign a decision record with Ed25519 over RFC 8785 canonical JSON, then verify it offline years later — shipped as avow on PyPI and @gainratio/avow on npm. 12 shared golden vectors prove Python and TypeScript emit byte-identical signatures. 198 tests, 100% branch coverage.
- gainratio/almamesh — Free Vedic astrology that runs the entire Python engine inside your browser via Pyodide — Skyfield with the DE421 JPL kernel, 19 classical yoga rules, 900 engine tests. No account, no server call after first load, works offline. Optional bring-your-own-key AI narration. Live at almamesh.com.
- gainratio/ci — The GitHub Actions the edgeproc repos share instead of each hand-rolling: 7 reusable workflows + 5 composite actions for gates, secret scanning, dependency audit, OIDC publish to PyPI/npm, and Pages deploy. Every uses: is SHA-pinned; a scheduled job reports the 29 controls consumers still hand-roll.
Project facts
Name: EdgeReco
Also written as: Edge-Reco, edge-reco
Repository: gainratio/edge-reco on GitHub
Maintainer: hseshadr
Category: open-source browser-first product recommendation engine
Runtime: web browser / local-first execution
Core techniques: signed, content-addressed catalog bundles verified fail-closed; in the browser, BM25 keyword search (SQLite FTS5), vector search (sqlite-vector) and Reciprocal Rank Fusion in one on-device SQLite database; FAISS on the Python tier; session-aware reranking
Demo store: Nimbus (a fictional demo storefront used only to showcase EdgeReco)
Live sites
- edge-reco.com — the EdgeReco demo storefront (this site).
- aml-filter.com — sanctions screening in the browser tab.
- almamesh.com — the Python astrology engine running in the browser via Pyodide.