Nimble, fast-moving static site generation in Nim. "Rats" — Scurrying through your content with unmatched speed. A generator that compiles to C for native performance on any platform.
-
Systems Engineers targeting Minix, Android, or iOS who need tiny, high-performance binaries.
-
Python developers looking for a "compiled Python" experience with macro-powered templates.
-
Architects needing a generator that can target WASM and C simultaneously from a single source.
rats-ssg provides the raw speed of a C-compiled engine with the expressive power of Nim’s syntax. It is the primary choice for Edge tech where binary size is a premium and execution must be instantaneous.
Templates in rats-ssg are processed via Nim’s powerful macro system. This allows for compile-time generation of HTML structures, ensuring that the final binary contains the "baked-in" logic for your site, reducing runtime overhead to zero.
# Install Nim via asdf
just setup
# Compile the SSG to a native binary
just compile
# Build the site at scurry-speed
just build-
Native Compilation - Targets C, C++, and Objective-C.
-
Zero-Overhead Templates - Macro-optimised at compile time.
-
Podman-First - Standard containerised toolchain for cross-compilation.
-
Accessibility - Native support for BSL, GSL, ASL, and Makaton.