Real PHP templating
Includes, loops, Markdown, YAML — compiled to clean HTML at build time, not served at runtime.
PHP 8.5 · WebAssembly · zero server
A static site generator that turns PHP into fast, dependency-free HTML — no server required. Real PHP templates, compiled to plain HTML by PHP running in WebAssembly, right inside Node.
A page is a real PHP file — includes, loops, a PHPDOC block that becomes your variables. Kirigami runs a PHP 8.5 runtime entirely in WebAssembly, inside Node, and compiles every page straight to plain HTML at build time. Nothing runs on your server, because there is no server.
/**
* @title Home
*/
echo str_htmlesc($tagline);
<h1>Fold PHP into flat HTML.</h1>
Includes, loops, Markdown, YAML — compiled to clean HTML at build time, not served at runtime.
esbuild for JavaScript, Sass for styles, wired in from a single kirigami.yaml.
kiri export ships a fully static site, ready for GitHub Pages or any static host — banner and sitemap included.
kiri create clones an official template so a new project starts from something real.
Stylesheet, bundle, theme guard, SEO metadata and JSON-LD — injected automatically, nothing to hand-wire per page.
Images, the cache, tar extraction — all built on WASM and Node's own standard library, not a compiled binding.
kiri watch rebuilds files, it doesn't serve them.@kirigami/php-wasm, GPL-2.0-or-later) — see About.This page is a _index.php file, compiled by the same kiri CLI anyone installs from npm. The site is being built in public, phase by phase — /docs/ is the doc-page model, /ecosystem/ pulls its version numbers live from npm at build time, and more lands as each phase ships.
npm install -D @kirigami/kirigami
npx kiri watch # rebuild on save, no server
npx kiri export # production build into dist/