After several weeks of persistent effort, I'm excited to share Nostr Web Services (NWS).

NWS makes your web service reachable without having a publicly accessible IP address or DNS. All you need is an npub and a set of Nostr relays. A wide range of existing services could be run on NWS without requiring any significant changes. NWS achieves this by establishing a TCP connection between client and server which can be used by these applications.

Please keep in mind, that the software is in a very early state and not even released yet.

https://github.com/asmogo/nws

Reply to this note

Please Login to reply.

Discussion

RUN

NWS

👀

nostr:note1eu0pyklezwkysyeelnhmfvgnuj7emgwvr3cl9sax4npc6kus77cqzsn396

How different is this then ENS?

ENS is overlays DNS, this overlays TCP/IP like Tor. Fairly useless without a browser

errrrr....

nostr:note1vdjx7x9cdmmynnfjj36evnvacc8xjz0yll6pke3x8k7k9y6v3xmsf9c5wa

SSH is on top TCP/IP

Was referring to > Fairly useless without a browser

I'm pretty sure this design also enables use with browsers when combined with DNS and traffic is allowed to exit into the open internet.

Good luck getting regular niggas to use ssh or socks 😂 I've already tried that.

Good things get wrapped into invisible UX and adopted without notice. "good luck getting regular people to use SSL certificates!"

That's what browsers do. Nostr autists aren't solving any problem unless they write a better browser (than firefox)

This is a very powerful, useful and interesting new development. There's no reason to piss on it because it didn't also rebuild the entire world.

Everything doesn't have to be relevant for every normal person on earth in order to be useful and exciting for some (at first).

It doesn't matter if I piss on it or not. It doesn't matter if it's exciting to autists. It needs to be useful for a good chunk of people or it's another joke fad.

We disagree.

New things need to be useful to 1 person first. Then 3, then 20, etc.

How do you think we got anything?

All software I use was useful to millions of people from the beginning. Browser, media player, terminal emulator. Remember the app economy that didn't happen? Now you know it's cause the modern userbase chose 10 apps and nothing custom. Regardless, what problem does Nostr solve? Talking about bitcoin was never a problem

You tell me what problem Nostr solves, you're spending your scarce time and energy on it. Why?

"until," not "unless"

Semantics 😀

Why do we need this?

So when domains go down or are taken down, access to the services don't go with them

Same reason you need Nostr when "twitter already exists"

But what advantages does this have over Tor or I2p hidden services?

Cats should be skinned many ways.

Different approaches are better or worse for different contexts. Also, surprising net-new discoveries are made beyond the frontier when you re-solve a problem with a new stack. Sometimes some property of the stack, in connection with the "already solved problem", reveals novel new territory. (Look at "the microblog UX" getting "re-solved" by Nostr)

Cats should probably not be skinned

I’m sceptical but experimentation is good

Ok so it’s more like tor/i2p

Exactly like those. Autists love to copy each other.

Thx

No Shitcoin?

Well yeah that’s a difference

nostr:note1eu0pyklezwkysyeelnhmfvgnuj7emgwvr3cl9sax4npc6kus77cqzsn396

When someone tells you that Nostr is just a Twitter alternative, tell them that our developers are literally rebuilding the Internet.

nostr:nevent1qqsv78sjt0u38tzgzvulema5kyf7f0va58xpcu0jcwn2esudtwg00vqpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsygxhqr7pp4zha6hy7qhtqnt3tgz5sdlx3ghz6qgfwyuzchsszmwfncpsgqqqqqqshazqcn

Wow!!!

Would it be possible (eventually) to use this to keep nutsack.me nuts on Citrine?

Waiting for the release !

Is there a "why not Tor"?

tor is slow, doesnt scale and its not flexible. A native nostr discoverablity layer (and anonimity layer) could be used in many ways.

One of them is a better tor with lightning/ecash micropayment to actually scale the service

Tor is slow because it works and people use it. Bouncing requests through one or two nodes won't provide reliable anonymity, and using relays as TCP/IP will be unbearably slow if more than two people actually use it.

tor is slow because therse no anti-spam (actually they added a sort of proof of work client side, but it is not so effective), theres no incentive to run nodes that are the facto moslty feds and volountary. If you add micropayments as spam filter and as economic incentive for people to run relays, you can have a tor network that scales.

Also its trivial to implement in a way that provide reliable anonimity, it just need to reimplement onion routing, all problems in theory are solved.

Tor doesn't work in a browser without additional software. This will.

Furthermore, you can't trust Tor servers and a huge part of them are run by governments.

The difference here is that we can choose the relay servers and avoid the ones we don't exactly trust.

nostr isn't protected against that either

Tor does work in the browser if you're prepared to run a proxy. That is additional software.

Correct, I wrote "without additional software". A proxy is additional software.

NWS main components

Entry node: It forwards tcp packets to the exit node using a SOCKS proxy and creates encrypted events for the public key of the exit node.

Exit node: It is a TCP reverse proxy that listens for incoming Nostr subscriptions and forwards the payload to the designated backend service.

nostr:note1jaclnk5n5xf4fvnzuectlqtf57t30xkmv7kn8gx8rzya3nftr95q8qrhju

This Will guy gets it. I should see what else he's doing

Probably the best nostr dev, rn

Sorry, I have terrible humor

thanks for sharing, sounds very interesting, i'll try to use it locally as described in the repo and report any feedback!

#golang

Amazing 👀

I already do the same thing, connect to any service I want, using keys, without nostr:

https://github.com/bitfinexcom/hypertele

this sounds really cool, well done.

Got this running and tested, so far so good. Nice work! Will keep tinkering with it.

That was fast, nice

ok this shit is cool af.

nostr:note1eu0pyklezwkysyeelnhmfvgnuj7emgwvr3cl9sax4npc6kus77cqzsn396

This is awesome

This sounds incredibly exciting.

My first thought: What if someone tries to DDoS attack a web service?

Wouldn't that then in turn also DDoS many Nostr relays?

how are relays protected from ddos attacks 🤔

By having all TCP packets proxied by the entry node, the number of incoming IP addresses for the relay operator is significantly reduced.

This simplifies IP blacklisting in case of an attack, as NWS funnels all client requests through the entry nodes. Consequently, the distribution of requests is determined by the total number of entry nodes.

If your goal is to DDoS Nostr relays, it's likely more effective to flood them with normal events.

try

stared it on gh!

I highly appreciate that 🤜 💥 🤛

🎉🎉 great job!!

I'm confused... How does this expand NOSTR's capabilities?

How can we help?

Any contribution is welcome! Whether you want to be a contributor, an exit or entry node runner, or just help spread the word.

I'm currently working on adding an HTTPS reverse proxy with auto-generated self-signed certificates. This will allow exit node runners to accept encrypted HTTPS connections from public entry nodes without enabling TLS in their backend services at all.

https://github.com/asmogo/nws/pull/21

Seems like you're expending quite the effort to reinvent the wheel, no? Exit/Entry nodes? Why wouldn't you just use a more simple system already in place established by P2P tech?

Maybe all your questions should be followed by a zap #V4V

Are you interested in investing in bitcoin mining? Here is the opportunity to start earning large in crypto mining using my platform and strategy. Just a Dm away from your financial freedom

Wow big shout out to my crypto expert, I invested $1,000 and got back $10,000 just within 6 hours of investing, y’all dm him now and get paid today 🥳🥳@jiimmysongnostr:npub1npz7fwhgaw3whad765y90a2gxkeham3jcsnz6n2hszhk9m73vwlq9r6arl