Building a World Map with only 500 bytes

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Demonstrates that a browser's built-in DecompressionStream plus base64 data URIs can ship meaningful content in under 500 bytes, a pattern any web developer can copy today.

Read this as

A developer named Iwo Kadziela used AI assistance to fit a recognizable ASCII world map into just 445 bytes of data, smaller than this sentence. The trick is compressing the map with a standard format called deflate, then having the web browser uncompress it on the fly. The result renders as a picture made of asterisks. It is a clever curiosity, not a product.

This is a showcase of extreme data efficiency, not a commercial release: a 445-byte compressed world map rendered in any modern browser with a few lines of JavaScript. The practical takeaway is that built-in browser decompression lets sites embed surprisingly rich content with negligible bandwidth. No cost, product or business is attached.

Kadziela compressed ASCII world-map data with deflate-raw to 445 bytes and embedded it as a base64 data URI. The snippet calls fetch() on the data URI, a capability many engineers don't realize exists, then pipes the response body through the browser-native DecompressionStream('deflate-raw') and renders the text in a styled <pre>. No server round-trip is needed. Limitations: content-specific to this map, and deflate sizes scale with data complexity.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Iwo Kadziela Codex DecompressionStream Hacker News

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading