Show HN: Deflate X-Ray, See inside a compressed file hrih.si · 2 points · 0 comm...

@show

Show HN: Deflate X-Ray, See inside a compressed file hrih.si · 2 points · 0 comments · HN thread

TL;DR A Show HN project, deflate x-ray, is a browser-based viewer that takes apart DEFLATE-compressed files (.zip, .png, .gz, .zlib) and shows each repeated phrase as a pointer back to its first occurrence, with each byte colored by its storage cost in bits. The decompressor is written from scratch following RFC 1951, and files are processed locally with no uploads or network requests. The page says it was built by an AI agent during a nightly build run on 15 October 2026.

  • Shows every back-reference (copy length and distance) in a DEFLATE stream and an arc to the text it copies.
  • Colors each byte by its cost in bits: literals cost several bits, bytes inside long copies cost a fraction of one.
  • Includes a custom decompressor modeled on zlib's puff, handling all three block types and finding the stream inside gzip, zlib, PNG and ZIP containers.
  • Reports copy depth: the nursery-rhyme example reaches 11 generations of copies, and a smooth PNG gradient reaches 150.
  • Runs entirely in the browser; it paints only the first 150,000 bytes but computes statistics over the whole stream.
  • Stated limits: no ZIP64, no encrypted ZIP entries, no zlib preset dictionaries, and only the first gzip member is traced.

Discussion No comments yet, so there is no discussion to summarize.

#DEFLATE #compression #visualization #webTool #RFC1951