There seems to be a trend of apps moving to Rust for speed and reliability. Build tools, linters, bundlers, even parts of Node.js tooling have been getting rewritten in Rust, and the speed numbers people post are hard to ignore.
So I got curious. How fast would a static site generator written in Rust be? And how far could I get with the idea?
I'd already built a couple of personal desktop apps with Tauri and Rust (like MeterMaid), and I liked the experience. I've also had a long-time passion for content management systems and site-building tools. Over the years, I've built several CMSs of my own, in classic ASP, ASP.NET and Node.js. A site generator in Rust felt like a natural next experiment. And if the experiment worked, I hoped it would be something other people would find useful, too.
I also had a second goal, and it turned out to matter more than the first. I believe strongly in creating delightful experiences for the people who use the things I make. I wanted to build something unique and genuinely enjoyable to use, not just fast.
What happened next surprised me. Twelve days after the first commit, I threw out the Rust core and rewrote the generator in TypeScript on Node.js. And it got better.
Let's talk about how that happened, and what I learned.
Meet SiteSquatch
SiteSquatch (ssqch on the command line) is a static site generator: large, quick, and rarely photographed. You write pages in Markdown and a template language you like (Jinja, Edge.js, Liquid, Nunjucks, Handlebars, Mustache or EJS), configure the site in JavaScript, and ssqch build turns it all into plain HTML.
What I'm most excited about is how it feels to use. Apps ought to be fun, and I hope SiteSquatch brings a little joy to the folks who use it.
Puns, by the forest-full: it reports like a park ranger who has seen some things. Facts first, with the occasional large footprint in the log. The dev server answers to Squatch Watch, and yes, Sass support is Sassquatch.
- Illustrations: SiteSquatch and friends show up in hand-drawn illustrations throughout the docs.
- A developer experience that helps: errors point at the file and line, with carets under the problem and a guess at what you meant (
did you mean /contact/?). Every build checks front matter schemas and links, and ssqch diff shows exactly what a change did to every page.
- Responsive images by default: every
<img> becomes a <picture> with AVIF, WebP and fallback sources, cached so later builds skip the encoding.
This blog runs on it! If you're reading this, SiteSquatch built the page.
Version one: a single Rust binary
The first version was a single Rust binary with no runtime to install. Like Eleventy, the config was still JavaScript, run by QuickJS, a small JavaScript engine embedded inside the binary. Templates, Markdown, front matter, the minifier and the image pipeline were all written in Rust.
The very first test was porting this blog from Eleventy, which happened the same day as the first commit. Two days later, the blog was building on Netlify with a native SiteSquatch config.
And it was fast. On a synthetic site with 10,000 pages, the Rust version built everything in 1.15 seconds. Eleventy took 7.78 seconds for the same site.
I was blown away by those first benchmark results, and really excited to bring the app to life!
Then I tried it on other people's websites
A generator that only builds my blog isn't very useful. So I had Claude port a bunch of real, public sites to SiteSquatch, including v8.dev, a11yproject.com, lit.dev, eslint.org and the Rust blog. The goal for the Eleventy sites was an exact port: the same output, byte for byte, from the same templates and content.
Every port kept a log of what went wrong.
I expected smooth sailing. Each new site would need a few more features, and the Rust app would grow to support it. Instead, I was shocked to find that the more I tried to make the app universal, the more friction it created.
Sites bring their own tools. A site built with Eleventy uses markdown-it plugins, Nunjucks filters, npm packages, and Node built-ins like fs and crypto. QuickJS isn't Node, so a lot of that either ran slowly or didn't run at all. Out of 21 tools the next round of migrations would need (React for MDX, Vue, Shiki, sharp, Tailwind 4, esbuild, TypeScript files, and others), QuickJS could run 4. Real Node runs all 21.
The exact ports needed 687 lines of workaround code that existed only because the JavaScript ran on QuickJS.
Watching those workarounds pile up, I began to see where this was headed. Eventually, I'd basically have to support all of Node.js in Rust. Which is pretty silly.
The question that changed everything
On November 17, Claude and I stepped back and did a proper architecture study. The first answer it came back with treated "one binary, no Node" as SiteSquatch's identity, and recommended staying Rust-first.
Reading that report made me stop and think, "What am I really trying to build?"
That's when I realized the true "why" behind SiteSquatch: the least amount of friction for the developers building sites (and, more and more, the coding agents helping them), and the most joy in using it. The single binary was never the point. Making it Rust-first was an experiment. Speed was icing on the cake.
With the goal stated that way, the answer flipped: move the core of the generator to Node.js.
Measure before you rewrite
"Rewrite it in JavaScript" sounds like giving up the speed. So before committing, we built two quick prototypes (spikes): one all Node, and one hybrid that kept Rust for the hot paths. Both read the test sites' unchanged configs and had to produce byte-identical output.
| 10,000-page site, unless noted | Rust (0.7) | Eleventy 3.1.8 | All Node, 1 thread | Hybrid, 1 thread |
| Plain site | 1.15 s | 7.78 s | 1.30 s | 1.12 s |
| 50 filter calls a page | 1.75 s | 7.93 s | 1.34 s | 1.10 s |
| v8.dev, exact port (326 pages) | 1.72 s | 0.72 s | 0.54 s | 0.53 s |
Note: These are medians of five runs on one machine. The Rust version used all 15 cores; the Node spikes used one thread. Your site will have its own numbers.
The all-Node prototype landed within 0.15 seconds of the Rust core on the plain site. And look at the v8.dev row! That site uses markdown-it and Prism, and on QuickJS those were slow. On real Node, the same exact port built more than three times faster than the Rust version, and faster than Eleventy.
The next day, November 18, SiteSquatch 0.8.0 shipped as a TypeScript program on Node, installed from npm. The blog, the example sites and the starters built to the same bytes as the Rust version (apart from image bytes, since sharp encodes the images now).
What I learned
Lesson 1: Running the real library beats a perfect port
I went in expecting a Rust equivalent of each library to be faster, better, superior. What I learned is that matching a site's output means running that site's libraries.
When SiteSquatch re-implemented a JavaScript library in Rust (Nunjucks on a Rust Jinja engine, Markdown on a Rust parser, YAML front matter), the Rust version often behaved a little differently. In the trial logs, about a quarter of the problems that were SiteSquatch's own fault came from exactly this, and 13 of them produced wrong output with no error at all.
Running markdown-it is markdown-it. There's nothing to keep in sync.
Lesson 2: Speed was icing (and the slow part wasn't the language)
The Rust core really was fast. Against Eleventy, it was four to seven times faster on large synthetic sites. But against a well-built Node core using the same libraries, the lead nearly disappeared. A build is mostly reading and writing files, and Node's thread pool writes files while JavaScript renders the next page.
I was genuinely shocked that Node.js performed so close to Rust in so many scenarios. And Node already has so many well-trusted libraries. It didn't make sense to build a bunch of bridges between Rust and Node (or Bun, or any other JavaScript runtime) and pay for copying data back and forth across them.
Even the images told the same story. This blog's cold build (every image encoded from scratch) took 94 seconds on Eleventy and 21 seconds on the Rust version. That looks like a win for Rust! But when we tested sharp on Node with the same images, it took about the same time as the Rust pipeline. The 94 seconds came from Eleventy's image plugin and its settings, not from Node.
Today, with images cached, this blog (168 pages, a feed and a sitemap) rebuilds in under a second.
Lesson 3: Use Rust where it earns its place
Rust didn't leave the project. It moved to where it pays off.
SiteSquatch's own Markdown engine, syntax highlighter, HTML minifier and Sass compiler are still written in Rust, compiled to WebAssembly, and run inside Node. One .wasm file works on every platform, with no native binary to build for each operating system.
Plugins can be written in Rust, too, and compiled the same way. In the spikes, a Rust plugin ran unchanged in either design.
Lesson 4: Say what the goal really is
Everything changed the moment I set "single binary" aside and named the real goal: least friction, most delight. Before that, every design question was really "how do we keep the Rust?" After that, the question became "what makes this easiest for the person building a site?" Same project, completely different answers.
Building it with Claude Code
I can't write about SiteSquatch without talking about how it was built. Claude is co-author on about 700 of the project's 802 commits, which all landed in about 25 days. Roughly 200 of those commits were the Rust version, before the rewrite.
I have to admit, I got a little obsessed with driving Claude as a product and project manager. It was very exciting to see all the progress! Once I felt like this was a viable app, and I started digging into the puns and the experience, I really hoped I could turn it into something other people would love to use.
The most surprising moment didn't come from Claude. It was realizing that the Rust-only path was frustrating me, and the app wasn't turning out to be what I'd hoped. Claude was doing everything it could to make it happen. I was the one who had to take a step back and look at the problem differently. (That's where "What am I really trying to build?" came from.)
I also wanted to make sure that, in this modern era of building apps, AI agents are treated as first-class citizens. SiteSquatch should be just as approachable from an agent as it is for a person. The docs on sitesquatch.dev are available as Markdown, ssqch capabilities --format json lists what ssqch supports (template filters, generators it can move a site from, and more), and the reports come in JSON too (with none of the ranger's jokes, so an agent never has to parse a pun).
Try SiteSquatch
SiteSquatch needs Node.js 22.18 or newer. To add it to a site:
npm install --save-dev ssqch
Or start a new blog or docs site with ssqch init. The docs at sitesquatch.dev cover the rest, including moving a site over from Eleventy, Jekyll, Hugo and others. The source is on GitHub.
It's still young (0.x), so expect some breaking changes between minor versions. If you try it, I'd love to hear about it! Especially the first error message that confused you, a template language or plugin from your current site that didn't work, or a site you'd like to see ported.
Happy building, and if you spot SiteSquatch in the wild, grab a blurry photo for me!