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 pointstore.rs– In-memory vector store, RVF serializationembed.rs– Hash-based embedding generatorauth.rs– NIP-98 admin verification