Skip to main content

Crate nostr_bbs_search_worker

Crate nostr_bbs_search_worker 

Source
Expand description

nostr-bbs Search Worker (Rust)

Cloudflare Workers-based vector search with:

  • In-memory cosine k-NN over 384-dim embeddings
  • RVF binary format persistence to R2
  • id↔label mapping in KV
  • NIP-98 authenticated ingest
  • Hash-based fallback embedding generation

§Architecture

  • lib.rs – HTTP router, CORS, entry point
  • store.rs – In-memory vector store, RVF serialization
  • embed.rs – Hash-based embedding generator
  • auth.rs – NIP-98 admin verification