Live data from Hacker News

Show HN: Kage – Shadow any website to a single binary for offline viewing

github.com

121–130 of 152 posts

Re: Show HN: Kage – Shadow any website to a single binary for offline viewing

#121
post #81

Earlier quoted context omitted.

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.

Docker is designed to be undetectable by default, the best way I have found is to set env IN_DOCKER=True manually in your Dockerfile + check that there is no $DISPLAY configured + that you're on linux. Usually if all/most of those are true you can safely add --no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage etc. all the docker-specific flags. Thats what we do in https://github.com/ArchiveBox/ArchiveBox/bl…

Cool approach.

But, a compromise still lands on host's kernel, Docker doesn't provide kernel isolation (well it does on a macOS because it runs in Docker machine but thats a side effect).

I wonder if a better solution would be to play with seccomp or Linux capabilities so that Chrome is sandboxed even in Docker. Not sure how this would work tbh.

Answering here to get ideas, I saw your fix on Git and request for feedback (will try to review and give it some thought once I find some time)

Re: Show HN: Kage – Shadow any website to a single binary for offline viewing

#122
I've been using "Print to PDF" as my principle bookmarks management tool, since 1998, and I have over 90,000+ such PDF's sitting on my system, easily re-read and discovered.

So I don't quite get whats the point of kage? What does it do that print-to-PDF won't already do? The resulting .pdf's contain all the content, and also include the original URL and creation date, etc. How is kage an improvement?

Re: Show HN: Kage – Shadow any website to a single binary for offline viewing

#123
post #113
post #14

Earlier quoted context omitted.

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.

I'd like to request something between what GP suggested and what your program is doing currently - basically I still want a single binary, but instead of embedding a full browser in it, I would like the binary to be just a self-extracting archive that calls the user's default browser, maybe in a new window/frame. Basically I'm looking for something like the old-school .chm files on Windows, where you could pack a bun…

I instantly searched for chm on the comments and yours was the only one :o

Re: Show HN: Kage – Shadow any website to a single binary for offline viewing

#125
post #113

Earlier quoted context omitted.

I'd like to request something between what GP suggested and what your program is doing currently - basically I still want a single binary, but instead of embedding a full browser in it, I would like the binary to be just a self-extracting archive that calls the user's default browser, maybe in a new window/frame. Basically I'm looking for something like the old-school .chm files on Windows, where you could pack a bun…

I instantly searched for chm on the comments and yours was the only one :o

You are not alone

For the younger generation https://en.wikipedia.org/wiki/Microsoft_Compiled_HTML_Help

Re: Show HN: Kage – Shadow any website to a single binary for offline viewing

#126

I've accumulated a bunch of old website archives over the years. The funny thing is the ugly HTML dumps have been more useful than the "perfect" archive. It's one of the reasons I've become a bigger fan of RSS over time. A feed from 10-ish years ago is often more usable today than a carefully preserved (application) website.

Maybe it is just me, but by far most of the time, when I want to archive something from the internet, it is information and information is best served in an absolutely minimal text format like html or md.

Re: Show HN: Kage – Shadow any website to a single binary for offline viewing

#129
post #38

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…

[flagged]
Post reply on HN