Quickstart
One page, one config file, two commands. Five minutes.
-
Install
npm install -D @kirigami/kirigami -
Add a
kirigami.yamlAt the root of your project:
kirigami: project: My Site baseurl: https://example.com root: src prepros: {}prepros: {}— even empty — is what turns on the PHP → HTML compiler for every_*.phpfile underroot. -
Write a page
src/_index.php:/** * @title Home */ echo '<h1>Hello, Kirigami.</h1>';A file named
_name.phpcompiles toname.htmlin the same folder —_index.phpbecomesindex.html. -
Serve it
npx kiri serveRebuilds
src/index.htmlevery time you save, servessrc/athttp://127.0.0.1:4321, and reloads the open tab once the rebuild finishes — nothing to open by hand. (kiri watchdoes the same rebuild with no server, if that's all you need.) -
Ship it
npx kiri exportWrites a fully static, dependency-free site into
dist/— ready for GitHub Pages or any static host.
That's the whole loop. For a site with more than one page, real content, styling and a deploy workflow, the full tutorial builds one from scratch, one concept at a time.