Skip to content

khatru

a framework for making Nostr relays

write your custom relay with code over configuration

A glimpse of khatru's power

It allows you to create a fully-functional relay in 7 lines of code:

go
func main() {
	relay := khatru.NewRelay()
	db := boltdb.BoltBackend{Path: "/tmp/khatru-bolt-tmp"}
	db.Init()
	relay.UseEventStore(db, 400)
	http.ListenAndServe(":3334", relay)
}

After that you can customize it in infinite ways. See the links above.

~