A simple Nostr relay implementation in Go.
- Nostr protocol relay implementation
- Event storage using LMDB
- Support for ephemeral events and gift wraps
- Configurable port via command-line flag
go run main.goBy default, the relay runs on port 3334. You can specify a different port using the -port flag:
go run main.go -port 8080go build -o nostr-relayThen run the built binary:
./nostr-relay -port 8080- Port: Configure the listening port with the
-portflag (default: 3334) - Database: Events are stored in the
./db/directory (created automatically)
github.com/fiatjaf/eventstore/lmdb- LMDB event storagegithub.com/gzuuus/onRelay/atomic- Atomic circular buffer for ephemeral eventsgithub.com/nbd-wtf/go-nostr- Nostr protocol implementationgithub.com/pippellia-btc/rely- Nostr relay framework