layerscope

Browser-only · no uploads · no backend

See inside your
Docker image.

Drop a docker save tarball and get per-layer file diffs, wasted-space analysis, an efficiency score and the largest files — computed locally, in seconds, on your machine. Your image never leaves the browser.

$ docker save -o my-image.tar my-image:latest

Drop your image tarball here

the output of docker save image:tag -o image.tar

Nothing to test with? bundled layerscope/sample:latest (92 KiB) — a real docker save archive with an add → modify → delete history
  • 01Legacy + OCImanifest.json and index.json layouts, gzip layers via DecompressionStream
  • 02Memory-safeReads the archive in slices; memory scales with the largest layer (tested up to 150 MiB per layer)
  • 03dive-compatiblesame size, waste and efficiency definitions — cross-checked in CI
01

Parse the tar

Headers are read sequentially with File.slice. Legacy (manifest.json) and OCI (index.json + blobs/) layouts are both recognized; gzip layers stream through DecompressionStream.

02

Diff each layer

Every layer is compared against the squashed filesystem below it: files added, modified or deleted — including .wh. whiteout files and .wh..wh..opq opaque markers.

03

Score it

Files overwritten or removed in later layers still occupy space in earlier ones. layerscope computes wasted bytes and an efficiency score with dive's formula, plus the 20 largest files.