Your 11ty site, built in Rust. Same bytes, sooner.
Brrrty is a static site generator that builds an existing 11ty project and writes the same files 11ty 3.1.8 writes, byte for byte. Templates, Markdown and data stay where they are. The config moves from JavaScript to Rhai.
npm i -D brrrty
Then "build": "brrrty build" in your package.json scripts. On macOS and Linux. Or, with Rust 1.89 or later, cargo install brrrty.
Clean build of a 2,272-file blog
| Apple M4 laptop | |
|---|---|
| Brrrty | 0.85 s |
| 11ty 3.1.8 | 2.32 s |
node:24-alpine CI container | |
| Brrrty | 0.86 s |
| 11ty 3.1.8 | 3.07 s |
| 0123 s | |
Fig. 1. Drawn to scale. On first load each bar grows for as long as its build took. The output of both builds is byte-identical.
Similar species. 11ty, which Brrrty is modeled on and tested against. Same markings; tell them apart by the clock.
What it does
- Output
- The same files 11ty 3.1.8 writes, byte for byte. It is checked by building test sites with both and comparing every file.
- Templates
- Liquid, Nunjucks, Markdown and HTML in any mix, with 11ty's data cascade, layouts, pagination, permalinks and collections.
- Config
brrrty.config.rhai, a Rhai script shaped likeeleventyConfig: filters, collections, global data, passthrough copy, and the RSS and syntax highlighting plugins. Reference.- Refusals
- Where it can't match 11ty exactly, it refuses that page and says why, and builds the rest. It never writes a page that might differ. What it refuses.
- Dev server
brrrty serverebuilds on every change and updates open pages in place. Details.- Status
- Early: version 0.0.10. Try it on a copy of your site and compare the output with 11ty's before you rely on it.
The turtle
Bertie is a turtle with a rocket on his shell. The rocket is the Rust. The turtle is the part that checks every byte before it leaves.
Brrrty is three Rs, like "go brrr". This site is built with it, from the same repository, on every change.
Credits
Brrrty exists because Eleventy is great. It follows 11ty's behavior closely and ports code or data from these projects, each credited with its license in NOTICE. Thank you to Zach Leatherman and the Eleventy community, and to everyone below.
- Eleventy (11ty) 3.1.8 and its RSS, syntax highlighting and dev server packages, Zach Leatherman
- LiquidJS Jun Yang
- Nunjucks James Long
- markdown-it Vitaly Puzrin, Alex Kocharin
- Prism Lea Verou
- Luxon JS Foundation and contributors
- morphdom Patrick Steele-Idem
- posthtml, posthtml-parser, posthtml-render PostHTML, Ivan Voischev
- htmlparser2 Chris Winberry
- @11ty/posthtml-urls Steven Vachon
- picomatch Jon Schlinkert
- js-yaml Vitaly Puzrin
- slugify Simeon Velichkov
- @sindresorhus/slugify, transliterate Sindre Sorhus
- parse-srcset Alex Bell
- is-json, V8's sort and date parser, CPython's TimSort, ICU's time zone names their authors
Body type is Alegreya by Huerta Tipográfica, under the SIL Open Font License.