Comprehensive Feature Set
Everything required for high-performance static websites without complex toolchains, third-party runtime dependencies, or open security attack vectors.
Core Features
Built for Security, Speed, and Simplicity
Everything required for high-performance static websites without complex toolchains or runtime attack vectors.
Zero Exposed Ports
In production mode (staticraft start), the generator opens zero public HTTP listening ports. Web traffic hits only static files.
Atomic Swapping
HTML pages are written to staging files before an atomic POSIX rename(2) swap, eliminating half-rendered pages or torn reads.
Timer Revalidation
Define revalidate: 600 to automatically refresh HTML every 10 minutes in the background without manual CI redeploys.
Zero Dependencies
Zero third-party npm runtime dependencies. Built entirely with native Node.js standard modules for minimal supply-chain risk.
Asset Fingerprinting
Staticraft automatically hashes static CSS and JS assets (e.g. styles.07eef7b1.css) and rewrites template references.
Auto Sitemap & Robots
Generates sitemap.xml and robots.txt out of the box during build and dev mode automatically.
Built-in Developer Conveniences
No external setup required. Staticraft works right out of the box.
Live Reload Dev Server
Built-in development server on http://localhost:4455/ with file watching and live page reloading.
Sitemap & Robots
Automatically generates valid sitemap.xml and robots.txt files based on discovered routes.
Custom 404 Support
Drop a src/app/404.html file to compile a custom error page served on any missing URL path.