a·peci · currently Our brains on ChatGPT

🐰 bunsquash: An Image Compressor Over a Lunch Break

Anthropic shipped three things this week: Claude Opus 4.8, Claude Code with dynamic workflows, and Bun with native image processing.

Over lunch I gave myself a challenge: build a working image compressor in under 15 minutes, the whole app under 100 lines. Drop a photo, pick a format, set the quality, download the smaller file.

The clock meant no setup time. A project like this usually pulls in sharp, and I have lost hours to sharp failing to install across the machines I work on. Bun’s new image API lives in the runtime, so I skipped the install and node_modules stayed empty.

With that out of the way, I handed the typing to Opus 4.8 and Claude Code. I ate my sandwich while they wrote most of it, a thin interface around Bun’s built-in compression.

It worked. Just under 15 minutes, exactly 100 lines, and most of those lines draw the UI.

The bunsquash interface: a before/after slider over a mountain lake photo, compressing a 441.2 KB image to 39.8 KB webp at quality 12, a 91% reduction

If development continues like this, I will soon be able to replace all my day-to-day tools with single-file solutions.

Code is here if you want a look: github.com/oceanByte/bunsquash.