Hacker News new | ask | show | jobs
by tmpz22 1935 days ago
You could distribute it as a single index.html file, with unobfuscated/unminimized vanilla javascript. The user could then execute it offline no problem.
2 comments

For fun, you could even use redbean ( https://justine.lol/redbean/index.html ), which has been discussed on here recently. That would give you a tiny executable running a webserver that serves your webapp locally. Probably not much advantage compared to a plain html file, though. Might be smaller overall, since everything would be compressed.
I'm also very impressed by redbean. However, I couldn't get it to work, just like many of the other HNers on that thread.
Right. Worked for me when i tried it with two different web payloads. But i didn't do more than a bit of playing around.
That’s an interesting idea - you could even imagine an “Electron without the networking” so you wouldn’t have to take the whole computer offline.