Notes from the toolbox.
Practical guides for the problems our tools solve, plus what we learn building 56 of them without a single server.
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 readMore posts
14 posts shown
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 readAVIF 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 readWhy 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 readHow 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 readWhy 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 readHow 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 readFormatting 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 readUUID 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 readUnix 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 readHreflang 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 readBase64 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 readencodeURI 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 readCron 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 readHow we run 56 developer tools with zero servers
Coming soon.
Planned · 10 min read