Skip to content

gourcetools/nostr-bestrelays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‘ nostr-bestrelays


nostrbestrelays1nostrbestrelays2

βš™οΈ Short explaination of how the script is working:

First he get a list of online relays from https://api.nostr.watch/v1/online
then he ping relays with a timeout of 0.250 seconds,
then he takes all the output and save the 10 with slowest ping as relays-list.txt
done.

Requirements:

  • wget ping sed cat awk cut head aka: nothing much :)

βœ”οΈ How to use nostr-bestrelays?

curl -L https://raw.githubusercontent.com/gourcetools/nostr-bestrelays/master/nostr-bestrelays.sh | bash
or
git clone https://github.com/gourcetools/nostr-bestrelays
cd ./nostr-bestrelays
maybe sudo chmod a+rwx ./nostr-bestrelays.sh
./nostr-bestrelays.sh


wait...
You should have 10 fast relays in nostr-bestrelays/relays-list.txt


================================= πŸ™‹β€β™‚οΈ Need help?

About

πŸ“ Ping and find best relays for you πŸ“‘

Topics

Resources

License

Stars

Watchers

Forks

Languages