Gwtar: a static efficient single-file HTML format
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Gwtar gives web archivists a way to ship single self-contained HTML files that lazy-load large assets, though it fails when opened locally in a browser.
Gwern Branwen and Said Achmiz created 'gwtar', a single HTML file that bundles a whole website plus its media. The file hides a tar archive after a marker, and JavaScript fetches only the pieces a viewer needs. The catch: browser security rules mean it cannot be opened directly from your own computer, you must extract it first with a shell command.
A new single-file HTML archive format from Gwern Branwen and Said Achmiz lets archived web pages embed large media while loading efficiently. Its weakness matters for anyone considering it: opening the file locally shows an error, requiring a perl one-liner and tar to extract content. It suits archive.org-style server hosting, not offline distribution.
Gwtar appends an uncompressed tar archive after an HTML comment marker ('<!-- GWTAR END') and calls window.stop() early to cancel browser fetching of the full payload. Asset URLs are rewritten to https://localhost/ so they fail; a PerformanceObserver with entryTypes ['resource'] captures failed loads, serving blobs from memory or via HTTP range requests into the tar. Requires JavaScript and serving over HTTP, local file:// access is blocked, and noscript users see warnings.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.