Documentation
¶
Overview ¶
Minimal relay example.
A functional Nostr relay with in-memory storage, real-time event routing, and basic middleware. Events are stored in memory and routed between connected clients.
Note: InMemoryStorage has no size limit and is not persistent. For production use, see the kitchen-sink example which uses PebbleStorage.
Usage:
go run ./cmd/examples/minimal
Environment variables:
ADDR - listen address (default ":7447")
Click to show internal directories.
Click to hide internal directories.