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

TL;DR

Kage is a new tool that clones websites into offline, script-free copies by rendering pages in headless Chrome, then stripping scripts and assets. It can package sites into a single file or binary, enabling long-term offline access.

Kage is a new tool that clones websites into offline, script-free copies by rendering pages in headless Chrome, stripping out JavaScript, and packaging all assets into a single file or executable. It aims to solve the problem of website data becoming inaccessible over time due to dynamic content and server dependencies.

Kage clones a website by launching a real browser session in headless mode, allowing the page to fully load and execute its scripts before capturing the final DOM. It then removes all JavaScript and network calls, saving a static, fully rendered version of the site with local CSS, images, and fonts. The resulting files are suitable for offline browsing and can be served locally or packed into a single archive or self-contained executable.

The tool supports various commands: ‘clone’ to create a mirror of a site, ‘serve’ to host the clone locally, and ‘pack’ to bundle the site into a ZIM archive or binary. It requires Chrome or Chromium to operate but offers a containerized version that bundles Chromium, simplifying setup. Kage respects robots.txt and can limit the crawl scope, making it suitable for large or partial site cloning.

Developed by Tam Nguyen, Kage is designed to preserve website content in a durable, accessible format, especially useful for archival, offline reading, or environments with unreliable internet. The project is open source, with documentation available at kage.tamnd.com, and is actively maintained with recent updates and community interest.

Why Kage’s Offline Cloning Matters

Kage addresses the challenge of preserving website content in a stable, accessible format, independent of live servers or dynamic scripts. Its ability to generate self-contained, script-free copies ensures long-term access, which is vital for digital archiving, educational use in offline environments, and personal data preservation. By packaging sites into single files or executables, Kage simplifies sharing and storage, reducing reliance on complex directory structures and server dependencies.

This development is particularly relevant as many websites increasingly rely on client-side JavaScript, which can break or become inaccessible over time. Kage’s approach ensures that the content remains viewable even if the original site is taken down or changes significantly. It also enhances privacy and security by removing tracking scripts and network calls from the cloned content.

Pro Tools Perpetual License NEW 1-year software download with updates + support for a year

Pro Tools Perpetual License NEW 1-year software download with updates + support for a year

Full version, permanent License of Avid Pro Tools. Includes 1-Year of software updates and upgrades.

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Background and Development of Kage

Traditional methods of saving web pages, such as browser ‘Save As’ or offline browsers, often capture incomplete or dynamic content that may not function correctly offline. Recent years have seen increased interest in digital preservation tools that can reliably archive websites for future access.

Kage builds on existing concepts of static site generation and offline content formats like ZIM, but distinguishes itself by rendering pages in a real browser session to ensure full content load and then stripping scripts for security and stability. Its development was motivated by the need for a simple, reliable way to preserve websites that depend heavily on client-side scripting, addressing limitations of previous archiving tools.

The project was announced on Hacker News, gaining attention for its practical approach and open-source availability, with ongoing updates enhancing its capabilities.

“Kage drives a real browser, so it needs Chrome or Chromium on the host, but it captures the fully rendered page and strips out all scripts, leaving a static, reliable version.”

— Tam Nguyen, creator of Kage

Amazon

website archiving tool

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Unanswered Questions About Kage’s Capabilities

While Kage’s core functionality is demonstrated, it is not yet clear how it performs with very large or complex sites, or how well it preserves interactive elements that depend on scripts. Its compatibility with different browsers or future updates to Chromium is also uncertain. Additionally, the extent of its ability to handle dynamic content or sites with anti-scraping measures remains to be tested.

Amazon

single file website clone

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Future Developments and Community Adoption

Further testing and community feedback will clarify Kage’s robustness across diverse websites. Developers may contribute to its feature set, such as better handling of complex interactions or improved packaging options. The project could see integration into digital archiving workflows or offline reading tools, and future releases might include enhanced automation or support for additional formats. Monitoring its adoption and real-world use cases will be key to understanding its impact.

Amazon

offline browsing executable

As an affiliate, we earn on qualifying purchases.

As an affiliate, we earn on qualifying purchases.

Key Questions

Can Kage clone interactive or dynamic websites?

Kage renders pages in a real browser before stripping scripts, so static content is preserved. However, fully interactive or highly dynamic sites that depend on JavaScript for core functionality may not work offline without additional modifications.

Does Kage remove all tracking and analytics scripts?

Yes, Kage strips all JavaScript, including tracking and analytics, resulting in a clean, privacy-preserving offline copy of the site.

What formats can Kage package the site into?

Kage can produce a ZIM archive, a self-contained executable, or a directory of static files suitable for local hosting.

Is Kage suitable for large-scale web archiving projects?

While capable, performance and handling of very large sites are still being evaluated. Its effectiveness depends on the site’s complexity and size.

What are the system requirements for running Kage?

Kage requires Chrome or Chromium on the host system, or uses a container image that bundles Chromium, simplifying setup.

Source: Hacker News


You May Also Like

The Core Ultra 7 270K was too good, so Intel scrapped the flagship Core Ultra 9 290K Plus — benchmarks of the 290K prototype find slim 2% faster performance in gaming and applications

Intel has scrapped the flagship Core Ultra 9 290K Plus, citing disappointing performance in leaked benchmarks, favoring the more balanced Core Ultra 7 270K Plus.

The Smart TV Settings That Improve Picture Immediately

Meta description: “Maximize your smart TV picture instantly with simple adjustments—discover the key settings that can transform your viewing experience today.

CERT is releasing six CVEs for serious security vulnerabilities in dnsmasq

CERT has released six CVEs for serious vulnerabilities in dnsmasq, affecting most recent versions. Patches are underway, details available online.

How to Set Up Guest Wi‑Fi the Right Way

Guidelines for setting up a secure, reliable guest Wi-Fi network can help protect your main connection—learn how to do it the right way.