Newshot

I Rebuilt Eleventy in Rust with AI in One Week

Original text(via HN AI)

Posted 22-Nov-2026 in Software Development tagged AI

How I Rebuilt Eleventy in Rust with AI in One Week

I'm sick and tired of all of the cool kids porting things in Rust, so I've decided to be as unoriginal as possible and jump on the bandwagon.

Keep in mind, I've never written a line of Rust and for a recent project, Cuppa, I opted for Go over Rust. This clearly positions me as an expert on porting things to Rust, change my mind.

While I like Eleventy (11ty), I'm highly suspicious of it being acquired by Fort Awesome. I'm also a bit fatigued with the Node.js ecosystem and its ever present need to update every fucking dependency every other day.

Most importantly, I recently learned about the world's fastest tortoise named Bertie and saw an opportunity at some word play. The mission was now simple:


        /goal Eleventy, but make it go brrr.
      

Jokes aside, this all started because I was reminiscing about static site generators over on LinkedIn. I'm a big fan of them, have built my own, and thought it would be a fun weekend project.

Brrrty was Born

I started things at about noon, last Saturday, and I didn't actually use the aforementioned prompt. I started with a quick planning session to establish my project expectations, and to do any pre-work like setting up accounts.

This exchange went for about an hour and a half and included analyzing multiple sites of varying size and complexity that I already run on 11ty. The abridged list of truths look like this:

  • bertie was already taken on crates and npm, so I went with brrrty
  • Bertie the tortoise would be the logo inspiration
  • Config files would be in Rhai rather than JavaScript
  • In fact, no JavaScript at all
  • No major rewrites of sites, outside of the config file
  • Single orchestrator with long memory
  • Fresh implementer and reviewer agents without memory
  • Project would be public, context would not
  • No slamming 11ty in code or otherwise
  • No plugins to start, baking in obvious things like RSS to the core
  • Ask for forgiveness and not permission when you face a decision
  • Don't worry about usage limits, smoke 'em if you got 'em
  • First major milestone would be cutting my website over
  • Vanity metric goal would be to build my site in less than 1 second

Then I let er rip... except my dumb ass started this on my laptop and didn't bother to move it over to my agents server where Igor and friends are.

Day 1: Foundation and Engine Decisions

With the robot doing its thing, the initial phase of work included scaffolding, adding brrrty build, running diagnostics, and building a compatibility harness in Docker. Once that was in place, 11ty's ignore-file rules were ported over.

At this point, we already had 2 tagged releases out on GitHub.

The next couple of hours were spent analyzing off-the-shelf crates to figure out which template engines would need to be built vs. bought. Eleventy does a great job of handling multiple template types, and my site needed support for LiquidJS and Nunjucks, both of which had crates, but they only covered 72% of cases at most.

Since I couldn't be bothered, the decision was made to port LiquidJS to Rust as it was the template engine that the majority of my site uses as I came from Jekyll initially. The result was 5x faster than LiquidJS and covered 100% of the conformance cases. This part actually took about 3 hours.

The overnight session continued, porting over data, collections, and pagination. Things ran until about 3 AM and a new version was cut.

Day 2: Sunday Ship Fest

Things didn't stop at 3 AM with the next task being the Rhai config. This part was pretty hefty, taking about 6 hours, and included 300k+ fuzzed calls against Node to ensure any RegEx ported over perfectly, a port of V8's Array.prototype.sort, and handling Luxon date formatting.

I was booting up at this point and did my usual "we done yet?" check-in. Keep in mind, I was doing this on a Claude Max plan and trying to see how far I could take it. Things could have been done significantly faster, but the constraint was fun to work with. I actually downgrade my Claude plan down to Pro every month just to see how it feels. More on that in another post.

With the configuration files in place, it was time to jump on syntax highlighting. This yielded a port of Prism to Rust and zero changes in my site's code. This port took about 5 hours, but was running in parallel with porting over Nunjucks which took about 6 hours.

The Nunjucks engine being ported meant new pages were being built for my site, and the build time crept up by 250ms. No regression, just a page on my site that takes more time than most pages to build.

Still running tasks in parallel, while all of this was happening, brrrty serve was being written, with live reloading. Three new versions were minted before 5 PM that day.

By 6 PM, this website was not only building, but was byte-identical across 2,272 files. It was also building in 0.85s vs. 2.32s with 11ty. Mission pretty much accomplished after about 31 hours after the first commit.

At this point, I completely derailed the next phases of work, because I was hyped to be able to get my site running on brrrty. This was going to require getting a website put together, and publishing packages on npm, and making sure we had a brrrty init script to actually port an 11ty config over to Brrrty.

This went until about midnight, and the day included nearly 200 commits. It also included launching the official Brrrty website running on, you guessed it, Brrrty. In retrospect, this should have been the first major milestone, but it's also a very thin site that could probably exist as a single HTML file without a framework.

My poor MacBook Pro, plugged in and living on the breakfast nook in our kitchen while being kept awake with Amphetamine. I could have moved the session over to my server, but I was pretty hell bent on just getting things done in one active session so I could track usage costs.

Day 3: Finding Edge Cases

I mentioned that I run quite a few sites on 11ty, so the night shift plan was to run through other sites and see how well Brrrty handles them. This resulted in brrrty doctor to be able to gauge readiness.

Even though we were at a good point to cut my site over, I got a bit sidetracked with some other work. It was a Monday after all, and I try to keep my side questing to the weekends.

That said, I did jump in to direct traffic a small bit. Since 11ty publishes a leaderboard of the fastest 11ty sites, I wanted to see if we could find which ones had public repos. Armed with a pretty extensive corpus, and a locked-down container we got a pretty brutal reality check:

None of the top 11ty sites built in full on brrrty.

No big deal, this is exactly the type of thing I wanted to encounter, so that when I move the mission off my laptop, the agent has something to work on. I ended up parking this for the moment.

Another big thing to come up is that the markdown-it crate had some bugs that needed to be worked around. The plan there is to circle back and send some fixes upstream. I want to own that piece myself as I don't believe in having agents running around filing bugs and submitting fixes without an actual human involved.

Day 4: The Great Backpedal

Remember how I wanted to get away from JavaScript? Yeah no, that didn't quite pan out as I expected. In fact, it conflicted with the idea that I didn't want to have to port my sites over to work with Brrrty, specifically related to the data files.

Fine, we'll live with some JavaScript.

Fortunately, this site doesn't use JavaScript data files so I was able to cut it over to Brrrty. I swapped my 11ty badge for a Brrrty one, ported over my GitLab runner, and I was off to the races!

Then I dropped some posts on some social sites and was completely unfazed by the lack of engagement.

Work continued through the night, and we ended the day with all of my other 11ty sites building properly on Brrrty.

Plot twist: one of the sites was taking longer to build, 31s vs. 11ty's 2.2s. At this point, I'm questioning all of my life choices.

Day 5: Make It Go Brrr

The overnight session had a pretty simple mission: hunt down the cause of the slowness, use Fable if you want. And that's what happened.

The robot ran through a bunch of different things, feigned some creativity, tagged in Fable when it needed some muscle, and sussed out quite a few issues with musl and mimalloc related to threading.

This went on for the better part of the day, with me needing to pause the robot for a bit to hop on a call with my laptop. It kept trying to make it go brrr until close to 5 PM when I had to step in and make a judgement call on something.

The site that was giving us grief was building in 3.04s compared to 11ty's 2.22s and skipping a safety check that guarantees byte-identical output actually got it down to 2.01s. The thing is, dropping the guarantee for the sake of speed felt like chasing a vanity metric, but it felt like a good thing to include an opt-in flag for.

At this point, I was getting sick of running my MacBook around the clock, so it was time to pause until the weekend when I had more time to move things to my agent server.

Spontaneous old man shakes fist at clouds moment: Please stop calling it a "cloud harness". It's a fucking server that just happens to run a harness. We don't need to reinvent every God damned wheel because you just got here.

Tale of the Tape

I ended up grabbing some /usage output when we got to a point that my site could be cut over, and at the end of the session. As mentioned, I'm on a Claude subscription so these numbers are what I would have spent, not what I actually spent.

  • Checkpoint #1: joshtronic.com is done
  • Checkpoint #2: we're done making it go brrr

Costs

Checkpoint #1Checkpoint #2Delta
Total cost$764.66$2,251.71$1,487.05
Wall time1d 9h 33m4d 6h 40m2d 21h 7m
API time1d 0h 22m2d 2h 38m1d 2h 16m
Lines added53,49487,50334,009
Lines removed6452,1401,495

Models

ModelCheckpoint #1Checkpoint #2Delta
Opus 5.5$646.32$1,797.19$1,150.87
Sonnet 5.5$118.34$119.96$1.62
Fable 5.2-$334.53$334.53
Haiku 5.5$0.0011$0.03$0.03

This also included me hitting my weekly limit on the Claude Max plan twice. The first time, I used a reset I had available. The second time, I just upgraded back up to the Ultra Plan.

Conclusion and Next Steps

I'm actually planning on maintaining Brrrty for the foreseeable future. The plan now that I have things moved off my laptop over to my agents server is to continue to find 11ty sites, and try to build them.

Each new site encountered should help me find more edge cases, and continue to improve the system autonomously. There's also a small chance that I'll expand the system to support moving over from Jekyll and other SSGs.

And really, it's nothing personal with Eleventy. I love the project, I'm a contributor, and it's amazing at how fast it is. Even porting over to Rust didn't directly result in a wholly faster system out of the box.

I didn't touch on it, but the RAM usage for Brrrty vs. 11ty is probably worthy of a dedicated post.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗