I'm in love, I didn't know I wanted this, and now here it is. With an explanation from the author that touched on things I was feeling but couldn't quite but into words. To ice the cake, saved the file to disk and ran it with WiFi off, just to see. Sure enough, it's all in there, self-contained with no fetched dependencies.One caveat being that in the file:// protocol URL params don't work e.g. ?app=c53f8e9f-4b7a-4315-bb8a-f6557f6be30b
This is fixed by running a local webserver, which isn't a huge deal. I'd be happy to learn of an easier way.
Thanks for sharing this.
recursive|1 year ago
Query string parameters totally work from file://
I built an online sandbox that lets you create them. To prove it, you can navigate here [1], then click the "Download self-contained .html" item on the hamburger menu.
[1] https://mutraction.dev/link/z8z
replete|1 year ago
I made a really simple offline HTML app for generating EFF dice passphrases: https://github.com/replete/effindice
Only thing missing really is a CLI interface. I wonder if there's a way to make HTML files executable on the command line, pass through arguments as qs params.
The amount of times I make a little nodeJS app to do something with a set of files, the webserver bit seems so overkill sometimes..
meiraleal|1 year ago
unfortunately it is not maintained anymore so I posted it here with the hope of finding some similar project from the community :) Or use it as a motivation to release a similar project
chr15m|1 year ago