QuietRelay
Test what your Nostr relay lets through, locally
Created on 23rd September 2026
•
QuietRelay
Test what your Nostr relay lets through, locally
The problem QuietRelay solves
A correctly signed Nostr event can still expose a location, fall outside a relay's contract, or try to delete someone else's note. Relay operators usually find out after changing a live service.
QuietRelay is a local workbench for testing those decisions first:
- Inspect a genuinely signed note whose tags expose a location, a relationship and a relay hint, and see it held under a Quiet policy but admitted under Open, without rewriting any evidence.
- Compare the same signed traffic across three policy presets in one diff.
- Sign your own experiment with disposable public fixture identities, change it after signing, and watch the real BIP-340 integrity check fail.
- Run a real EVENT/REQ/CLOSE exchange against a loopback WebSocket relay; every OK reply is compared with the sandbox's prediction.
- See author-scoped NIP-09 withdrawal, a rejected foreign deletion and live-only ephemeral delivery.
- Export evidence and verify it from the command line; editing a claimed result makes verification fail.
No wallet, no keys you care about, no upstream relay, no inference API. MIT licensed.
Demo (3:33):
Source: https://github.com/ToukoUrsin/quiet-relay
Built solo by Touko Ursin with substantial AI coding assistance (disclosed to and confirmed with the organizers); the demo narration is an ElevenLabs stock synthetic voice.
Challenges I ran into
Keeping the sandbox honest. The browser workbench and the loopback relay share one reducer, so a wire test alone could hide bugs. Core correctness is checked separately against the 19 official BIP-340 vectors, independent SHA-256 serialization and nostr-tools interoperability.
Deletion semantics. NIP-09 withdrawal is local and author-scoped: a foreign deletion must be rejected, and removal leaves a tombstone. We had to be explicit that this is not global erasure.
Evidence that can't be faked by recomputing a hash. A file digest alone is easy to recompute, so verification reruns the policy reducer and fails if any claimed decision was edited.
Real-browser QA caught two bugs: the policy diff headers were in a different order from the data (so a held note looked admitted under Open), and evidence import was hidden on phones. Both are fixed; 21 tests pass and the recorded demo shows the fixed build.
Tracks Applied (1)
Freedom Stack
Bitshala
Technologies used
