Cook SSG

Static site generation the web platform way. ES6 template literals for templating, custom elements for composition, file-based routing by default.

Get Started GitHub

Why Cook?

Zero Framework

ES6 template literals for templating. No JSX, no virtual DOM, no build-time framework overhead.

Web Components

Custom elements for composition. Build-time expansion or Declarative Shadow DOM for encapsulated components.

File-Based Routing

Drop an HTML or Markdown file in src/ and it becomes a page. Clean URLs by default.

Markdown & Collections

Write content in Markdown with YAML frontmatter. Auto-grouped collections for blogs and docs.

Image Optimization

Automatic AVIF/WebP generation at multiple widths. Responsive <picture> elements with lazy loading.

LLM-Ready

Built-in llms.txt, llms-full.txt, and per-page markdown exports for AI-consumable documentation.

How It Works

Write a component

Use it in a page