

A small tool only I can open
I had more than 200 cover drafts to choose from, so I built a page to pick them. It's a Vite plugin that only runs in development, uses the same code as my commands, and turns away requests from other sites.
6 posts with this tag.


I had more than 200 cover drafts to choose from, so I built a page to pick them. It's a Vite plugin that only runs in development, uses the same code as my commands, and turns away requests from other sites.


Two weeks after leaving mdsvex for svelte-markdown, mdsvex 1.0 came out and I moved back. I only switched once every blog and Devlog page, in both languages, matched the old build block by block. Here's what changed, and the two things a compiled post forced me to rethink.


btoa('ñ') gives the wrong answer and btoa('😀') throws. Base64 works on bytes, so text has to become bytes first. How my Base64 tool does it, and how it tells bad input from binary data.


I added Sveltia CMS to my site's dev server. Its first save rewrote lines I never touched, so I gave it my own file format and a test that saves every file and compares the bytes.


One Playwright test that clicks every link in my site's nav, and why it checks for errors a build can't see.


I'd never written a test. Adding Vitest to my SvelteKit site, testing three small functions, and the edge case that turned out to be a real bug.