Blog

Notes from the toolbox.

Practical guides for the problems our tools solve, plus what we learn building 56 of them without a single server.

Featured · Web

Copy as cURL, then what? 9 things that break when curl becomes code

Turning a copied curl command into fetch, Python or Go looks mechanical. It isn't: redirects, timeouts, repeated parameters, browser-only headers and shell quoting all change meaning on the way.

· 9 min read

More posts

14 posts shown

Images

Blur placeholders, measured: Base64 vs ThumbHash vs BlurHash

Byte counts and colour error for 4px PNG, WebP and JPEG, ThumbHash, BlurHash and CSS on 12 photos, plus the 456-byte profile Chrome adds to canvas WebP.

· 12 min read
Images

AVIF vs WebP vs JPEG: which is actually smallest? We encoded 34 images

At equal perceived quality AVIF was smallest on 30 of 34 images, but only 8–17% smaller than JPEG on photos. Our data, its losses, and how to ship it.

· 9 min read
Engineering

Why our code editor dropped keystrokes (a React startTransition bug)

Fast typing in our CodeMirror editor lost and reordered letters. The cause: an echo check plus React's startTransition. A repro, the fix and the test.

· 9 min read
JWT

How to decode a JWT safely (without pasting it into a random website)

A JWT is just Base64URL-encoded JSON. Here's how to read one in your browser or terminal, what each claim means, and the mistakes that turn a harmless debug session into a leaked credential.

· 7 min read
JSON

Why your JSON won't parse: 8 errors and how to fix each one

Trailing commas, single quotes, comments, NaN and more. What each JSON.parse error message actually means, why it happens, and the quickest fix.

· 8 min read
Images

How lossy PNG compression works (and why 256 colours can look lossless)

PNG is lossless, yet tools shrink it 60–70% with no visible change. Palettes, dithering, banding and honest metrics, from our own quantizer.

· 9 min read
Engineering

Formatting a 50 MB JSON file without freezing the browser

JSON.parse handles 50 MB in about a quarter of a second. The freezes come from everything around it. How our formatter avoids them, with measurements.

· 10 min read
Databases

UUID v4, UUID v7 or ULID? Picking an ID for your database

What is inside each ID, why random keys make B-tree inserts slower (we measured 30x the page writes), v7's same-millisecond caveat, and what to store.

· 10 min read
Time

Unix timestamps and time zones: the bugs that keep biting

Seconds vs milliseconds, date-only strings parsed as UTC, DST hours that don't exist, and 2038. Every example run, with the fix for each.

· 8 min read
SEO

Hreflang mistakes that make Google ignore your translations

Missing return links, en-UK, canonicals that point home, redirecting alternates: the hreflang errors that break a cluster, and how to fix each.

· 8 min read
Encoding

Base64 is not encryption: what it's actually for

Base64 makes bytes safe for text-only channels. It hides nothing. How the encoding works, what it costs, and the bugs it causes when misused.

· 9 min read
Web

encodeURI vs encodeURIComponent: URL encoding bugs and how to avoid them

What each JavaScript encoder escapes, why + and %20 differ, how double encoding happens, and how to build URLs that don't break on real input.

· 7 min read
Cron

Cron syntax explained, with 20 copy-paste schedules

How the five cron fields work, the special characters that trip people up, and 20 ready-made schedules, from every 5 minutes to the last day of the month.

· 9 min read
EngineeringPlanned

How we run 56 developer tools with zero servers

Coming soon.

Planned · 10 min read
Get new posts
About two a month. Subscribe by RSS, no account or email needed.
RSS feed