Join the discussion

Write your take first — we'll ask for email only when you're ready to publish.

  • Hacker News
  • This 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?
  • For those with an eReader, one thing that works really well is using pandoc to download and convert a webpage to EPUB that you can then load to your reader.

      pandoc --from html --to epub --output /PATH/TO/FILE.epub https://example.com
  • I've been using httrack (https://www.httrack.com) to download wikis to read on flights, which isn't perfect but better than I'd found previously. I'll try this out, I'd be delighted to have good results. Thanks for the post.
  • > No tracking, no network calls, no surprises.

    Won't comment on a project (though idea seems interesting) but this in README is a tell for me ;)

    by xlii
  • I 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

  • > kage serve $HOME/data/kage/paulgraham.com

    If the result is static why does it need a server? Isn't it possible to make it so that it can simply be opened by the browser? Like:

    $ firefox $HOME/data/kage/paulgraham.com

    Then the result would be useable on machines without kage nstalled.

  • One 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 javascript that could index into an archive (potentially embedded) of the site's content?

  • 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/demo.gif
    
    Looks like it's an opinionated wrapper around https://github.com/charmbracelet/vhs

Explore Birbla archives