Replying to Avatar calle

Huge milestone: First demo of Nostr Web Services (NWS) bringing TCP to Nostr. With NWS, you can host any existing web application on Nostr without having to use DNS or even announce your public IP to the world, simply by sharing your service's npub (or nprofile).

Try it out the demo yourself. Here is a Cashu test mint running with NWS. Let's use curl to retrieve the mint's information. The request travels from your computer to the public NWS entry relay, then through nostr to the service's NWS exit relay. At the other end is a Cashu mint with HTTPS encryption.

```

curl -s -x socks5h://relay.8333.space:8882 https://nprofile1qqs8a8nk09fhrxylcd42haz8ev4cprhnk5egntvs0whafvaaxpk8plgpzemhxue69uhhyetvv9ujuwpnxvejuumsv93k2g6k9kr/v1/info --insecure | jq

```

I can't stress this enough: THE MINT RUNS BEHIND HTTPS!

The NWS entry relay can't read your traffic. It's encrypted. We can host public entry relays that can be used by anyone.

This means we can plug the entire internet to it 🌐.

Let's plug it into Cashu for now. Nutshell wallet supports socks5 proxies (that's how it uses Tor). By setting the public entry relay as the proxy, the wallet can now connect to a mint's npub/nprofile and communicate with it via NWS.

This is going to be so freaking cool. And it's going to be a lot more useful than just for Cashu. There are still bugs and issues that need to be ironed out but the code is coming out soon. Watch this space.

Can you give a rundown of how this actually works? I am struggling with so many parts…

What does “bringing TCP” have to do with http hosting? They are two totally different layers.

How is data actually hosted? *is it hosted*? Or just relayed from an actual http host? Is this what you mean by TCP? That the relay will relay socket data? That’s… questionable… could lead to all sorts of misuse?

Thoroughly confused.

Reply to this note

Please Login to reply.

Discussion

It's tcp. Http just runs on top of that.

It's a web service like any other web service. Except it's only reachable via nostr.

So.. we can build websites that cannot be taken down now, if I'm understanding correctly? When thepiratebay on nostr? 😀

Nice haha, so it's basically like TOR, just using NOSTR.

hope this helps

nostr:note1uk728fkpgt8qqe2a9gylc9af5e4kjkyr05f3c04zpv8jgzwu9s6qpks74v

Very helpful. Gracias!

Ah… and also you can have a single npub “address” resolve any of N servers, as well?

If so, that’s huge! Root btc nodes need to be on this pronto in addition to dns.