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.go
By default, the relay runs on port 3334. You can specify a different port using the -port
flag:
go run main.go -port 8080
go build -o nostr-relay
Then run the built binary:
./nostr-relay -port 8080
- Port: Configure the listening port with the
-port
flag (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