0 sats \ 11 replies \ @Zepasta 7 Oct 2023 \ on: Hostr - Decentralized web hosting solution on Nostr. nostr
Can some1 ELI5 ?
I've used nostrsites.com to host websites before. I posted HTML as a note and pasted the note ID into nostrsites.
Nostrsites displayed the note as a webaite.
reply
Hostr handle it a bit differently, it let you have more than one file (one file = one event/note) and have custom format for HTML, CSS and JS.
Nostrsite has a cool CDN option, but I still prefer Hostr since it let me build complete web apps as I'd do in production.
reply
deleted by author
reply
From what I've seen you can use only html, you can probably put css and js in it but it's not the best way to make a website or web app.
It from the source code of nostrsite It also seem to manipulate the html to inject code from CDN, and they are behind a pro plan, not a bad thing per se, but you're limited with what you're allowed to use.
What is bad though is that it uses kind: 1 for the code. It'll spam the feed on normal clients with HTML note on the relay.
reply
With a terminal client you can take a folder of a static website or app (made only with HTML, CSS and JavaScript) and store those files as notes on some relays, the webserver then fetch those notes and show them as files the browser show as a website using said nostr relays as storage.
You can also host a webserver yourself using the source code.
reply
Can you show me an example of a website hosted hosted using Nostr
reply
Of course, the site itself is an example:
https://hostr.cc/
There's also some other on nostr if you search for "hostr.cc", here's a couple of them:
reply
Wait, are you using javascript too?
reply
I didn't make those but yes, HTML, CSS and JavaScript.
reply
How fast are the hosting? I always considered Nostr kinda slow, specially certain relays.
reply
From what I saw it relies only on its own relay for fetching content, but I'm not sure.
reply