Repository navigation
Two bugs found by testing the README's own claims against live sites, then fixed and re-measured. Both changed what the tool actually produces; neither is cosmetic.
--inline now actually embeds a site's images
Freezing an image-heavy site produced a "self-contained" file with every image broken. stripe.com: 52 of 52 images dead offline, 24.979% pixel mismatch against the live page.
Three separate causes, all in the inline path:
- HTML entity escaping — the dominant one. URLs read out of HTML arrive escaped, so a CDN query string reached
fetch()as?w=1392&fm=webp. The origin sees a parameter namedamp;fmand answers 400. This also affected the pre-existing<img src>andurl()paths, so it was silently costing assets on any site with query-string CDN URLs — not just the new cases. srcset/<picture><source>were never scanned at all. Rather than inlining every candidate width (which multiplies the file), the in-page pass pins each<img>to thecurrentSrcthe browser already chose for the capture viewport and drops the srcset — and only once a concrete source exists, so a never-loaded lazy image keeps its srcset instead of being left with no source.<source src>,poster, and unresolvedsrcsethad no scan or rewrite.grab()also sends a browser UA + referer: github's CDN refuses an unidentified fetch, which had been silently breaking 17 of its 24 images.
| before | after | |
|---|---|---|
| stripe.com assets inlined | 36/85 | 85/85 |
| stripe.com broken images | 52 | 0 |
| stripe.com pixel mismatch | 24.979% | 0.019% |
| github.com broken images | 17/24 | 0 |
No regression: ui.shadcn.com and vercel.com still freeze to a byte-identical MD5 against the live screenshot.
github.com remains at 20.6% for an unrelated and documented reason: a 1000×950 WebGL canvas (lp-IntroVisuals-canvas) plus a video sit exactly in the differing band, and a freeze strips scripts by design. Behavior of that kind lives in the Archive, not the Freeze.
--responsive now produces a page that fits a phone
The flag looked like it worked — 712 of 1054 nodes got mobile overrides and 476 max-sm: classes were emitted — but the built page overflowed a 390px viewport by exactly as much as without it (+1050px). Two pins were never released:
- Width. capture's mobile diff deliberately omits width on the stated assumption that "width is left fluid (everything narrows to fit)", while the exporter emits an unconditional
w-[<desktop>px]two lines above where it adds themax-sm:variants. Nothing ever overrode it: 717 fixed widths vs 0max-sm:w-*. The exporter now releases it at the breakpoint when the capture actually carries a mobile pass. - Position.
top/right/bottom/leftwere not in the mobile-diff property list either, so absolutely-positioned elements kept desktop offsets — one span sat atleft:861pxinside a 390px viewport.
linear.app @ 390px: 1440px content (+1050px overflow) → 390px, fits
Desktop is untouched (max-sm: only applies below 640px): 1440px still renders at 1440px with identical text. A capture without --responsive emits zero max-sm classes, so the default path is unchanged.
Known scope: 768/1024px still show the desktop layout. The capture takes one mobile pass at 390×844, so sm is the only breakpoint with measured data — which is what the README documents. Tablet breakpoints would need an additional capture pass; that's a feature, not part of this fix.
Verified
The full review gate (stability · optimality · integrity · completeness · atomicity) passes: 26/26 tools parse, three self-tests green, --help works everywhere, catalog intact, no unbounded fetches.