Show HN: Kage – Shadow any website to a single binary for offline viewing
1–10 of 152 posts
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#2It strips out all the JavaScript too, but also packs everything into a single HTML file that is easy to transfer. Binary assets (like web fonts and images) are packed as base64 strings.
They also offer a CLI powered by Puppeteer. [1]
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#3I find SingleFile [0] to be a much more robust version of this. It strips out all the JavaScript too, but also packs everything into a single HTML file that is easy to transfer. Binary assets (like web fonts and images) are packed as base64 strings. They also offer a CLI powered by Puppeteer. [1] [0]: https://github.com/gildas-lormeau/singlefile [1]: https://github.com/gildas-lormeau/single-file-cli
What I'm implementing here is mirroring a whole website, with all its subpages, so you can browse it all offline. For example, all essays from paulgraham.com.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#4I find SingleFile [0] to be a much more robust version of this. It strips out all the JavaScript too, but also packs everything into a single HTML file that is easy to transfer. Binary assets (like web fonts and images) are packed as base64 strings. They also offer a CLI powered by Puppeteer. [1] [0]: https://github.com/gildas-lormeau/singlefile [1]: https://github.com/gildas-lormeau/single-file-cli
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#5Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#6Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#7Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#8This seems like it has potential to create a lot of load on a site- are there settings to set how fast it clones or avoid images/videos? Is there a way to only get a subset of a website?
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#9So this is like using wget --mirror except that it works on pages that require javascript, right?
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#10Cool!
It would be especially cool to have a version that didn't require the separate serving process - even though it's nifty you can package up a whole site as a single binary.
Maybe a single HTML entrypoint shim with a bit of javascript that could index into an archive (potentially embedded) of the site's content?