[1] https://github.com/gildas-lormeau/single-file-cli?tab=readme...
1,462 karma · joined May 2, 2011
[1] https://github.com/gildas-lormeau/single-file-cli?tab=readme...
[1] https://github.com/gildas-lormeau/single-file-cli/releases
[1] https://vertis.io/2024/01/26/how-singlefile-transformed-my-o...
The JS is not essential, there's nothing to stop you treating the file as a ZIP file and unzipping it beforehand to view it.
What about self-extracting ZIP files like this page? https://gildas-lormeau.github.io/ (note that it includes the CSP to make it safe)
[1] https://gildas-lormeau.github.io/singlefile-updates/version-....
[1] https://github.com/gildas-lormeau/SingleFile
[2] https://github.com/gildas-lormeau/SingleFile/blob/master/faq...
I agree it would be "great" a complete website in the ZIP. I think this is technically possible, someone just have to code it.
[1] https://developer.mozilla.org/en-US/docs/Web/API/Compression...
[1] https://caniuse.com/?search=CompressionStream
[2] https://gildas-lormeau.github.io/zip.js/api/interfaces/Confi...
Here's an example of protected page saved with SingleFileZ: https://gildas-lormeau.github.io/private/ (password: thisisapage)
Edit: you could maybe add a <meta> tag to define a CSP in but I guess they will remove it [1].