stnd.buildSTANDARD MANUAL2026-09-20

Cookbook Introduction

Production-grade project patterns, file structures, and vertical slice architecture for Standard.

Cookbook Introduction

The Standard Cookbook provides complete, production-grade architectural blueprints for real-world projects built with the Standard framework (@stnd/*). Rather than isolated code snippets, each recipe specifies the entire file tree, module manifests, routing conventions, and typographic layout rules required to deploy an application cleanly on edge environments.

Architectural Principles

Every recipe documented in this manual adheres to the four non-negotiable invariants of the Standard system:

  1. Vertical-slice modules (@modules/): Application features live in discrete, isolated folders within modules/. Each slice manages its own routes, components, styles, and content. Slices never climb through parent folders with relative paths.
  2. Logic-free .astro files: .astro files serve exclusively as layout shells, view templates, and markup orchestrators. Data manipulation, business rules, and transformations reside in pure TypeScript/JavaScript helper modules.
  3. Typography and Grid by Default: Layouts consume the mathematical grid (grid-12), optical line measures (prose, inky, box), and the OKLCH design tokens shipped by @stnd/styles without ad-hoc utility clutter.
  4. Instant Scaffolding via CLI: Every project architecture in this cookbook can be scaffolded immediately using the @stnd/cli command-line interface.

Available Recipes

Recipe Description CLI Command
Landing Page Single-page showcase layout with Swiss grid hero, feature columns, and live typography specimen stnd new my-product --template landing
Personal Blog Clean publishing platform with Markdown posts, reading time calculation, tag filtering, and book-quality reading rhythm stnd new my-blog --template blog
Digital Garden Multi-page exploratory knowledge base and digital garden (default template) stnd new my-garden --template garden

Choose a recipe from the sidebar to inspect its file topology and implementation specifications.