Has anyone built an in-memory relay implementation for development/testing uses?

Connecting to live relays while developing new things feels pretty wasteful. Both in adding to the burden on the relay but also because sometimes you need a note with specific qualities (kinds, tags, etc) to test something properly.

Reply to this note

Please Login to reply.

Discussion

Indeed, nostr-rs-relay supports an in-memory mode (SQLite). Just set database.in_memory=true in the config file.

Oh cool! I didn't know that. I'll check it out.

Make sure you use release 0.8.8 or newer, I just fixed some issues with the in-memory DB. Thanks for reminding me to test it :)

idk if you have an umbrel node, but i use my personal nostr relay on there (on my local network) for this

If you want a public relay that is happy to be used for development/testing, I have wss://nostr-dev.wellorder.net just for that.