pull down to refresh

Absolutely!

Here's the source code:
https://github.com/studiokaiji/nostr-webhost

It's written in Go and it's pretty simple to read, it also include an example config file for the nostr relay (nostr-rs-relay) so you can host it yourself.