# tamnd/kage

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/tamnd-kage).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

3,529 stars · 136 forks · Go · MIT

## Links

- GitHub: https://github.com/tamnd/kage
- Homepage: https://kage.tamnd.com
- awesome-repositories: https://awesome-repositories.com/repository/tamnd-kage.md

## Description

Kage is a command-line tool, written in Go, that saves a complete offline copy of a website. It loads each page in a real headless Chrome browser, captures the final rendered document, and strips scripts and inline event handlers, so JavaScript-driven pages become plain markup, styles, and media. Stylesheets, images, fonts, and media are downloaded and rewritten to local paths, and the result can be browsed later without the original server or an internet connection.

A saved mirror can be packaged for handing to someone else. It can be packed into a single deterministic ZIM archive that standard offline readers open on desktop and mobile, or into a self-contained viewer executable that carries the archive appended to its own bytes and serves it with nothing installed. The viewer can also be wrapped as a double-click desktop app for macOS, Linux, or Windows, using the site's favicon as its icon. Opening a site in a native window instead of a browser requires the optional webview build. Repacking reuses unchanged compressed clusters, so small edits only recompress what changed.

Crawling is breadth-first and polite. It honors robots.txt, seeds from the sitemap, and fetches each page once. Scope can be limited by depth, page count, path prefix, subdomains, and excluded paths, with controls for concurrency, lazy-load scrolling, and crawl delay. Progress is saved on interrupt so a run can resume, or an existing mirror can be re-rendered in place. Page rendering and asset downloading run in parallel worker pools. URLs map to predictable local paths with query strings folded into short hashes, and pages with identical rendered content are stored as hard links to one copy.

Other features include a built-in local server for previewing a clone, a mobile-readability tweak for old table-based pages, and Parquet export and import of archives for analysis in data tools. Releases are produced from a version tag as cross-platform archives, Linux deb, rpm, and apk packages, and a multi-architecture container image that bundles a browser.

## Tags

### Content Management & Publishing

- [Website Offline Mirroring](https://awesome-repositories.com/f/content-management-publishing/website-offline-mirroring.md) — Saves a complete offline copy of a website by rendering pages in headless Chrome, stripping scripts, and rewriting assets to local paths. ([source](https://github.com/tamnd/kage#readme))
- [ZIM Archive Creation](https://awesome-repositories.com/f/content-management-publishing/zim-archive-creation.md) — Writes a mirrored site into a single deterministic, compressed ZIM file that opens in standard offline readers on desktop and mobile.
- [ZIM Archive Packers](https://awesome-repositories.com/f/content-management-publishing/zim-archive-packers.md) — Writes the whole mirror into one compact, deterministic ZIM file that opens in offline readers on desktop and mobile. ([source](https://github.com/tamnd/kage/tree/main/pack))
- [ZIM Archive Packing](https://awesome-repositories.com/f/content-management-publishing/zim-archive-packing.md) — Packs a whole site mirror into one compressed, deterministic ZIM file that standard readers open on desktop and mobile. ([source](https://github.com/tamnd/kage/blob/main/README.md))
- [Static Site Archivers](https://awesome-repositories.com/f/content-management-publishing/static-site-archivers.md) — Bundles a cloned site folder into one deterministic ZIM archive or a self-contained executable that serves the site offline. ([source](https://github.com/tamnd/kage/blob/main/CHANGELOG.md))

### Data & Databases

- [Breadth-First Site Crawlers](https://awesome-repositories.com/f/data-databases/url-crawl-queues/recursive-crawl-discoverers/breadth-first-site-crawlers.md) — Crawls sites breadth-first from a shared queue, visiting each URL once with depth limits, robots.txt handling, and real-browser rendering.
- [Resumable Crawl State](https://awesome-repositories.com/f/data-databases/multi-page-crawling/resumable-crawl-state.md) — Saves crawl progress on interrupt and fetches each page once, so reruns resume, re-render in place, or wipe the host and restart clean. ([source](https://github.com/tamnd/kage/blob/main/README.md))

### Development Tools & Productivity

- [Script Stripping](https://awesome-repositories.com/f/development-tools-productivity/in-page-script-execution/script-stripping.md) — Removes scripts and inline event handlers from rendered pages so saved copies are plain markup, styles, and media.
- [Crawl Scope Management](https://awesome-repositories.com/f/development-tools-productivity/search-paging-limits/crawl-depth-limiters/crawl-scope-management.md) — Restricts a crawl by page count, link depth, path prefix, subdomains, and exclusions, with concurrency, scrolling, and delay options. ([source](https://github.com/tamnd/kage#readme))
- [Appended-Archive Executables](https://awesome-repositories.com/f/development-tools-productivity/self-contained-executables/appended-archive-executables.md) — Appends a site archive to an executable that serves the site offline when run, with no installed tools and cross-OS targets. ([source](https://github.com/tamnd/kage/blob/main/README.md))
- [Appended-Archive Executables](https://awesome-repositories.com/f/development-tools-productivity/appended-archive-executables.md) — Appends the mirror archive to a base executable so recipients browse the site offline, targeting other operating systems. ([source](https://github.com/tamnd/kage#readme))
- [Desktop App Wrappers](https://awesome-repositories.com/f/development-tools-productivity/desktop-app-wrappers.md) — Wraps the offline viewer as a double-click desktop app for macOS, Linux, or Windows, using the site's favicon as the icon and hiding the terminal. ([source](https://github.com/tamnd/kage#readme))

### Networking & Communication

- [Crawl Politeness Controllers](https://awesome-repositories.com/f/networking-communication/crawl-politeness-controllers.md) — Crawls breadth-first while honoring robots.txt and sitemaps, fetching each page once and saving progress on interrupt to resume later. ([source](https://github.com/tamnd/kage#readme))

### Web Development

- [Headless Browsers](https://awesome-repositories.com/f/web-development/headless-browsers.md) — Loads each page in a real headless Chrome browser and captures the final rendered document so script-built content is preserved.
- [Rendered Page Snapshotters](https://awesome-repositories.com/f/web-development/static-site-generators/rendered-page-snapshotters.md) — Turns JavaScript-driven pages into plain static markup, styles, and media by capturing the rendered document and stripping scripts and inline event handlers.
- [Self-Contained Site Viewers](https://awesome-repositories.com/f/web-development/offline-website-availability/self-contained-site-viewers.md) — Builds a single executable or double-click desktop app that carries the archived site appended to its own bytes and serves it offline with nothing installed.
- [Parallel Page Rendering](https://awesome-repositories.com/f/web-development/parallel-page-rendering.md) — Runs page-render workers, asset-download workers, and a pool of headless browser pages concurrently to clone large sites faster. ([source](https://github.com/tamnd/kage/blob/main/CHANGELOG.md))
- [URL-to-Path Mappers](https://awesome-repositories.com/f/web-development/url-generators/url-path-formatters/file-path-to-url-converters/url-to-path-mappers.md) — Converts each page URL into a predictable local file path, with query strings folded into short hashes to avoid overwrites. ([source](https://github.com/tamnd/kage/blob/main/CHANGELOG.md))

### DevOps & Infrastructure

- [Crawl Boundary Controls](https://awesome-repositories.com/f/devops-infrastructure/dependency-management/environment-scoping-controls/crawl-boundary-controls.md) — Restricts which pages are fetched using depth, page count, path prefix, subdomain, exclusion, robots.txt, delay, and worker controls. ([source](https://github.com/tamnd/kage/blob/main/README.md))
- [Static Site Packaging](https://awesome-repositories.com/f/devops-infrastructure/desktop-packaging/static-site-packaging.md) — Packages a cloned static site into a standalone application that can be launched and browsed locally without a network. ([source](https://github.com/tamnd/kage/tree/main/pack))
- [Native Desktop App Packaging](https://awesome-repositories.com/f/devops-infrastructure/native-desktop-app-packaging.md) — Wraps the offline viewer as a double-click desktop app for macOS, Linux, or Windows, using the site's favicon as the icon. ([source](https://github.com/tamnd/kage/blob/main/README.md))
- [Desktop Application Packaging](https://awesome-repositories.com/f/devops-infrastructure/platform-as-a-service/desktop-application-packaging.md) — Wraps the offline viewer into a double-click desktop app for macOS, Linux, or Windows, using the site's favicon as its icon. ([source](https://github.com/tamnd/kage/blob/main/CHANGELOG.md))
- [Portable Application Distribution](https://awesome-repositories.com/f/devops-infrastructure/portable-application-distribution.md) — Packages a saved website into a single file, ZIM archive, or double-click desktop app that opens with nothing else installed.

### Software Engineering & Architecture

- [Crawl State Recovery](https://awesome-repositories.com/f/software-engineering-architecture/crawl-state-recovery.md) — Saves crawl progress to disk on interrupt and reloads it next run so an unfinished crawl continues where it stopped.
