{"slug": "i-rebuilt-eleventy-in-rust-with-ai-in-one-week", "title": "I Rebuilt Eleventy in Rust with AI in One Week", "summary": "A developer rebuilt the Eleventy (11ty) static site generator in Rust as a project called brrrty, starting at noon on a Saturday and cutting the first tagged GitHub releases within the first day, with a goal of building the author's site in under 1 second. The port replaces JavaScript configuration with Rhai config files, ports LiquidJS to Rust (reported 5x faster than LiquidJS and covering 100% of conformance cases in about 3 hours), and fuzz-tested the Rhai config work with 300k+ calls against Node over roughly 6 hours. The author ran the work on a Claude Max plan using a single long-memory orchestrator with fresh implementer and reviewer agents, and set cutting over the author's own website as the first major milestone.", "body_md": "# How I Rebuilt Eleventy in Rust with AI in One Week\n\nI'm sick and tired of all of the [cool kids](https://blog.cloudflare.com/vinext/) porting things in Rust, so I've\ndecided to be as unoriginal as possible and jump on the bandwagon.\n\nKeep 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.\n\nWhile 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.\n\nMost 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:\n\n```\n/goal Eleventy, but make it go brrr.\n```\n\nJokes 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.\n\n## Brrrty was Born\n\nI 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.\n\nThis 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:\n\n- `bertie` was already taken on crates and npm, so I went with`brrrty`\n- Bertie the tortoise would be the logo inspiration\n- Config files would be in Rhai rather than JavaScript\n- In fact, no JavaScript at all\n- No major rewrites of sites, outside of the config file\n- Single orchestrator with long memory\n- Fresh implementer and reviewer agents without memory\n- Project would be public, context would not\n- No slamming 11ty in code or otherwise\n- No plugins to start, baking in obvious things like RSS to the core\n- Ask for forgiveness and not permission when you face a decision\n- Don't worry about usage limits, smoke 'em if you got 'em\n- First major milestone would be cutting my website over\n- Vanity metric goal would be to build my site in less than 1 second\n\nThen I let er rip... except my dumb ass started this on my laptop and didn't\nbother to move it over to my agents server where [Igor](https://igor.bot/) and friends are.\n\n## Day 1: Foundation and Engine Decisions\n\nWith the robot doing its thing, the initial phase of work included scaffolding,\nadding `brrrty build`, running diagnostics, and building a compatibility harness\nin Docker. Once that was in place, 11ty's ignore-file rules were ported over.\n\nAt this point, we already had 2 tagged releases out on [GitHub](https://github.com/brrrty/brrrty/).\n\nThe 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.\n\nSince 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.\n\nThe overnight session continued, porting over data, collections, and pagination. Things ran until about 3 AM and a new version was cut.\n\n## Day 2: Sunday Ship Fest\n\nThings didn't stop at 3 AM with the next task being the Rhai config. This part\nwas pretty hefty, taking about 6 hours, and included 300k+ fuzzed calls against\nNode to ensure any RegEx ported over perfectly, a port of V8's\n`Array.prototype.sort`, and handling Luxon date formatting.\n\nI 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.\n\nWith 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.\n\nThe 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.\n\nStill running tasks in parallel, while all of this was happening, `brrrty serve`\nwas being written, with live reloading. Three new versions were minted before 5\nPM that day.\n\nBy 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.\n\nAt this point, I completely derailed the next phases of work, because I was\nhyped to be able to get my site running on `brrrty`. This was going to require\ngetting a website put together, and publishing packages on `npm`, and making\nsure we had a `brrrty init` script to actually port an 11ty config over to\nBrrrty.\n\nThis went until about midnight, and the day included nearly 200 commits. It also\nincluded launching [the official Brrrty website](https://brrrty.com/) running on, you guessed it,\nBrrrty. In retrospect, this should have been the first major milestone, but it's\nalso a very thin site that could probably exist as a single HTML file without a\nframework.\n\nMy 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.\n\n## Day 3: Finding Edge Cases\n\nI mentioned that I run quite a few sites on 11ty, so the night shift plan was to\nrun through other sites and see how well Brrrty handles them. This resulted in\n`brrrty doctor` to be able to gauge readiness.\n\nEven 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.\n\nThat 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:\n\nNone of the top 11ty sites built in full on `brrrty`.\n\nNo 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.\n\nAnother big thing to come up is that the `markdown-it` crate had some bugs that\nneeded to be worked around. The plan there is to circle back and send some fixes\nupstream. I want to own that piece myself as I don't believe in having agents\nrunning around filing bugs and submitting fixes without an actual human\ninvolved.\n\n## Day 4: The Great Backpedal\n\nRemember 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.\n\nFine, we'll live with some JavaScript.\n\nFortunately, 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!\n\nThen I dropped some posts on some social sites and was completely unfazed by the lack of engagement.\n\nWork continued through the night, and we ended the day with all of my other 11ty sites building properly on Brrrty.\n\nPlot twist: one of the sites was taking *longer* to build, 31s vs. 11ty's 2.2s.\nAt this point, I'm questioning all of my life choices.\n\n## Day 5: Make It Go Brrr\n\nThe overnight session had a pretty simple mission: hunt down the cause of the slowness, use Fable if you want. And that's what happened.\n\nThe robot ran through a bunch of different things, feigned some creativity,\ntagged in Fable when it needed some muscle, and sussed out quite a few issues\nwith `musl` and `mimalloc` related to threading.\n\nThis 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.\n\nThe 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.\n\nAt 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.\n\nSpontaneous 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.\n\n## Tale of the Tape\n\nI ended up grabbing some `/usage` output when we got to a point that my site\ncould be cut over, and at the end of the session. As mentioned, I'm on a Claude\nsubscription so these numbers are what I would have spent, not what I actually\nspent.\n\n- Checkpoint #1: joshtronic.com is done\n- Checkpoint #2: we're done making it go brrr\n\n### Costs\n\n|  | Checkpoint #1 | Checkpoint #2 | Delta | \n|---|---|---|---|\n| Total cost | $764.66 | $2,251.71 | $1,487.05 | \n| Wall time | 1d 9h 33m | 4d 6h 40m | 2d 21h 7m | \n| API time | 1d 0h 22m | 2d 2h 38m | 1d 2h 16m | \n| Lines added | 53,494 | 87,503 | 34,009 | \n| Lines removed | 645 | 2,140 | 1,495 | \n\n### Models\n\n| Model | Checkpoint #1 | Checkpoint #2 | Delta | \n|---|---|---|---|\n| Opus 5.5 | $646.32 | $1,797.19 | $1,150.87 | \n| Sonnet 5.5 | $118.34 | $119.96 | $1.62 | \n| Fable 5.2 | - | $334.53 | $334.53 | \n| Haiku 5.5 | $0.0011 | $0.03 | $0.03 | \n\nThis 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.\n\n## Conclusion and Next Steps\n\nI'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.\n\nEach 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.\n\nAnd really, it's nothing personal with Eleventy. I love the project, I'm a\n[contributor](https://github.com/11ty/plugin-rss/pull/94), and it's amazing at how fast it is. Even porting over to\nRust didn't directly result in a wholly faster system out of the box.\n\nI didn't touch on it, but the RAM usage for Brrrty vs. 11ty is probably worthy of a dedicated post.\n\n`:wq`\n\nLike this drivel? There's a whole\n\n[RSS feed](https://joshtronic.com/rss.xml)of it, or\n\n[subscribe via email](https://sendfox.com/joshtronic).", "url": "https://wpnews.pro/news/i-rebuilt-eleventy-in-rust-with-ai-in-one-week", "canonical_source": "https://joshtronic.com/2026/11/22/eleventy-rebuilt-rust/", "published_at": "2026-11-23 00:16:29+00:00", "updated_at": "2026-11-23 00:44:28.422789+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-tools"], "entities": ["Eleventy", "brrrty", "Rust", "Rhai", "LiquidJS", "Nunjucks", "Fort Awesome", "Claude Max"], "also_reported_by": [], "takeaway": "Porting LiquidJS to Rust produced a template engine 5x faster than LiquidJS that passed 100% of conformance cases, and 300k+ fuzzed calls against Node verified the ported RegEx behavior.", "recommendation": {"advice": "Split agent work into a single long-memory orchestrator plus fresh implementer and reviewer agents without memory, and fuzz-test ported logic against the original implementation before trusting it.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/i-rebuilt-eleventy-in-rust-with-ai-in-one-week", "markdown": "https://wpnews.pro/news/i-rebuilt-eleventy-in-rust-with-ai-in-one-week.md", "text": "https://wpnews.pro/news/i-rebuilt-eleventy-in-rust-with-ai-in-one-week.txt", "jsonld": "https://wpnews.pro/news/i-rebuilt-eleventy-in-rust-with-ai-in-one-week.jsonld"}}