I was intrigued to see how the demo GIF in the README was generated: https://github.com/tamnd/kage/blob/01e75b87ecc893bbba7943c63... Turns out it's using another project by the same author: https://github.com/tamnd/ascii-gif The script used for the demo is at https://github.com/tamnd/kage/blob/01e75b87ecc893bbba7943c63... and has a comment showing how to run it: ascii-gif render docs/demo/kage.tape -o docs/static/dem…
You can also do an animated svg which is way smaller than a gif because it's just text keyframes ( https://github.com/vytskalt/pseudoc/blob/main/assets/factori... )
Show HN: Kage – Shadow any website to a single binary for offline viewing
91–100 of 152 posts
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#92Earlier quoted context omitted.
--no-sandbox is needed in docker, maybe they assume it will mostly run in docker?
Exactly. For downloading, Kage requires Chrome or Chromium. Running it inside Docker makes setup easier and keeps cleanup simple: https://github.com/tamnd/kage/blob/main/Dockerfile Btw, let me think the way to only enable this when running inside Docker.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#93I 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
It seems this repo only saves one web page? 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.
I highly recommend reading the singlefile source or https://archiveweb.page/ to see how they handle closed shadow DOMs, cross-origin iframes, websockets, media urls, deduping large assets, etc.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#94for an entire website though of many pages I can see this can be useful.
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#95Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#96One use I'd have for this is company wikis that you want to give folks easy offline access to (maybe the wiki has documentation that's useful at sites that don't have cellular coverage). Cool! 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 javas…
So something like SingleFileZ https://github.com/gildas-lormeau/SingleFileZ or Gwtar https://gwern.net/gwtar ?
Re: Show HN: Kage – Shadow any website to a single binary for offline viewing
#97One use I'd have for this is company wikis that you want to give folks easy offline access to (maybe the wiki has documentation that's useful at sites that don't have cellular coverage). Cool! 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 javas…
Submitting this to Hacker News is the right place! Thanks for your idea. I will consider implementing that :) Also, in my mind, I already have a script/program to convert HTML to Markdown, so it could actually store everything on disk as a folder of Markdown files, and then commit them to a Git repo.