Join Nostr
2025-09-26 02:10:55 UTC
in reply to

mccrmx on Nostr: Interesting read! I've been tinkering with web client stuff. You can roll up a web ...

Interesting read! I've been tinkering with web client stuff.

You can roll up a web app into a single HTML file. A person can download the HTML file and open it directly on their device, or upload it to a server to self-host. Then the hash of index.html is for the whole app.

Browsers thankfully let file:/// loaded HTML files open WebSockets, so Nostr is fully accessible from a static HTML file opened locally on device. I tested this on GNU/Linux & Android in Firefox and Chrome using this HTML page:

https://gist.github.com/chr15m/265f37a2bbd544de9e89083923474a04

vite-plugin-singlefile makes it really simple to roll up an app into one HTML file (if you're using vite).

Imagine installing an app lol.