A tiny static site toolkit

Lattice turns a folder of Markdown and a handful of templates into a static site. No server, no database, no build cache to babysit.

Content collections

Point Lattice at a directory, add front matter, and it derives routes, tags and an index page for you. Collections are validated against a schema so a typo fails the build instead of the deploy.

Incremental builds

Only pages whose inputs changed are rebuilt. On a 4,000-page site a content edit takes around 180 ms, which is fast enough to run on save.

Edge-friendly output

Output is plain HTML, one stylesheet and hashed assets. It deploys to any static host and caches indefinitely without a purge step.

Install

npm install --save-dev lattice-site
npx lattice build --out dist

Configuration lives in lattice.config.mjs. The defaults cover most sites; the docs walk through the rest.

Status

Current release: 0.9.4. The API is stable; the CLI still gains flags between minor versions. Issues and patches are handled in the usual place.