

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.
5 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.


A code block in my posts can now run: the page shows what the code makes above the code itself. In the CMS, where my GitHub token lives, the same demo runs in a sandboxed frame that can't reach it.


Once my posts became Svelte components, the CMS preview had nothing to mount until the post was compiled. So it compiles it, in the browser, the way the build does: mdsvex, then Svelte's compiler, then a module whose imports point at the CMS's own copies. All 72 posts preview exactly as the site shows them.


My build job could push to main, and it runs code from hundreds of packages. Splitting the one job that writes from the ones that build, pinning actions to commits, and a faster smoke test on the runner's own Chrome.


My CMS only ran in development. Now it's built into the live site at /admin, as a second Vite build, and GitHub sign-in goes through a small Cloudflare Worker that keeps the one secret a static site can't.