just vibe coded a bash script for that using "nak" in the backend:

https://github.com/girino/nostr_relay_traverser

(it starts with one relay and gets all events of kind 3 and 10002 from it, then gets the new relays from this list and repeats for up to "THRESHOLD " levels.

Reply to this note

Please Login to reply.

Discussion

That's amazing. Does it also use nip 66? Would you add that if not?

I currently does not (i was not aware of nip 66). I'll try to vibe code something that uses nip 66 exclusivelly.

added https://github.com/girino/nostr_relay_traverser/blob/main/nip66crawler.sh

this one uses exclusively nip66 (also vibe coded)