Replying to Avatar Derek Ross

did you know that you can run your very own nostr relay on your current computer? windows, mac, and linux can all run this simple relay software from your system tray.

find the correct relay software for your system here:

https://github.com/CodyTseng/nostr-relay-tray/releases/tag/v1.6.0

after installing, add the relay ws://localhost:4869 to your relay configuration inside your favorite nostr client.

continue creating notes and sending zaps as normal. you'll now have a local backup of all of your content. that's it!

Apologies if this is a dim question but what are the data implications of this option IE my computer relies on phone data to be online. Does this relay only run when I am using Nostr, or is it going to be consuming while I'm online, but not using Nostr? Cheers

Reply to this note

Please Login to reply.

Discussion

if you're using an Android phone, in your scenario then i'd say to try the Citrine relay as it runs on your phone. but in either case, these do not broadcast any data to the outside world and only use local data on your device, so there is not an issue about consuming data.

https://github.com/greenart7c3/Citrine

Up all night learning node.js or more accurately, hamming my way through the basics so I can see whats going on with the nostr relay running on my phone. Thanks for that initial nudge. Or rather thanks to you I haven't had much sleep haha.

Anyway, perhaps can you point me in the right direction or to a smarter cookie than me, to get me over the line?

Terminal says I'm set up, I think that's what the following means?

... yo$ npm run start > nostr-server@1.0.0 start /Users/yo/nostr-server > node . WebSocket server is running on ws://localhost:4869

Client connected

Connected to the server

Received: Hello Waster

Message from server: Echo: Hello Waster

But the Kiwi browser on the phone times out. The Firefox for Mac browser says Upgrade Required. Safari not playing either. I turned the relay on and off in case that is part of the process.

What are the URL options? Is it ws://localhost:4869 in the address bar, or am I missing something obvious?

I don't have WiFi, but the phone's connected by Bluetooth to the computer and that has an IP address showing in preferences. And they must be paired judging by Terminal message.

Someone online said it was the browsers not recognising websockets. But Kiwi is Chrome based, no?

AI hasn't helped, #asknostr is my last hope :)

#chickens are fed, I'm off to bed now. Cheers