FAQ
Frequently asked questions about Stati, the TypeScript-first static site generator.
What is Stati?
Stati is a TypeScript-first static site generator for documentation, blogs, and content-heavy sites. It runs without a config file, bundles client-side TypeScript with esbuild, and turns the files in site/ into URLs.
When should I choose Stati over other generators?
Choose Stati if you want:
- Type safety – TypeScript config, client-side bundling with esbuild, and full IntelliSense
- Minimal footprint – No client-side framework, and nine runtime dependencies in
@stati/core - Incremental builds – ISG support for efficient rebuilds on large sites
- Built-in SEO – Automatic metadata injection, with opt-in sitemap and robots.txt generation
Does Stati support Incremental Static Generation (ISG)?
Yes. ISG is enabled by default: Stati caches rendered pages between builds and re-renders only the pages whose content, templates, data they show or TTL require it. A listing rebuilds when a post it lists is added, removed or retitled, and a deleted page’s HTML is removed. Configure TTLs and aging rules under isg, and clear entries with stati invalidate. See ISG.
Can Stati generate tag pages and paginated listings?
Yes. paginate: 10 in a listing’s front matter splits it into /blog, /blog/page/2 and so on, and a [tag].md file with generate: { from: tags } in its front matter becomes one page per tag, such as /blog/tags/css. See Collections and generated pages.
What templating engine does Stati use?
Stati uses Eta, a fast and lightweight templating engine. Features include:
- Layouts chosen by folder, which replace the layouts above them
- Shared page shells
- Includes with props and a body
- Template helpers
awaitin layouts and the shells they name
How does Stati handle SEO?
Stati automatically injects SEO metadata during build:
- Title and description from front matter
- Canonical URLs based on
site.baseUrl - Open Graph and Twitter Card tags
- Structured data (JSON-LD) from
seo.structuredData
Opt-in features with simple config:
- Sitemap generation with priority rules
- robots.txt with sitemap reference
- RSS feed generation
Can I use TypeScript in my Stati project?
Yes. Stati is TypeScript-first:
- Configuration via
stati.config.tswith full type safety - Client-side TypeScript compiled with esbuild
- Multiple bundle targets with include/exclude patterns
Related resources
- Glossary – Definitions of key terms used in Stati
- Core concepts – Deep dive into Stati’s architecture
- Configuration – Full configuration reference