Writing my own blog (engine)
3 min read
I decided to start writing long form quite some time back in August actually, but never got around to it until now. My main blocker was of course, finding a suitable static site generator rather than the desire to sit down and write actual content.
This was actually something I’ve wanted to do for a while but never found the time to commit to it. I met Jacky a few years ago, who maintains Quartz, and since then I’ve wanted to take my own stab at writing a static site generator, albeit in Rust as my preferred language rather than TypeScript. Although I haven’t told him this, it was actually scrolling through his space that inspired me to begin writing long-form articles unrelated to Snowflake.
Unfortunately, it never got off the ground before the turning point that was December 2025. And so I never had the real chance to get my hands dirty with the concept; I had spent that time working on librashader instead. August came around, and after deciding to write, after a cursory look at the available options, I decided to write my own anyways. I had initially committed to writing the generator by hand but after getting frustated with how much ceremony was needed to stand up Boa, I ended up engaging the slop machine anwyays so I could actually focus on writing.
The design is quite elegant in its simplicity though. Articles are markdown files with frontmatter, as one does. To keep things fast, I wanted the bare minimum of JavaScript, but templates are actually TSX components that are rendered into HTML by Boa, at compile time. I really dislike custom template languages like Zola that use Mustache-like braces-and-percents syntax to do templating. React components have been the industry standard for years now and are used in way more frameworks than just React because they’re great to work with.
Instead of having to learn a bespoke templating language, you can just use JavaScript (or well, TypeScript in my case), which I’m already familiar with. Compiling at build time means I don’t even need React or a React-like framework; everything you see here is static HTML, served over Netlify.
To get URL slugs and redirects working, the site generator also outputs redirect rules for Netlify. Everything is preloaded, so it feels fast.
So far, it’s a fairly small site generator. It’s less than a thousand lines, gluing a markdown parser, oxc for it’s TSX parser, Boa, and html5ever to output HTML from the evaluated DOM nodes. The nice thing about using TSX as your templating engine is that features can just be built into the templates rather than the generator, which can stay tiny. I probably won’t open source this, partly because it’s so simple to just generate nowadays, and partly because I don’t want to maintain it for others. But if there’s any interest feel free to reach out. If I get enough people asking I’d consider cleaning things up and writing proper docs for it.
With that out of the way, I can finally begin writing. I don’t know what exactly this experiment will end up going, but I haven’t properly written long-form essays in a while. As for why, I’m sure it’s for the same reason I do anything else. I want to be seen, and heard, but at the same time, I don’t want my reason for writing to become maintenance of a public presence. I had considered Substack, but it seemed too public for what I want to share. I want to write somewhere a bit more cozy, so I built this website. Enjoy your stay, and please be nice.