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:
- Vertical-slice modules (
@modules/): Application features live in discrete, isolated folders withinmodules/. Each slice manages its own routes, components, styles, and content. Slices never climb through parent folders with relative paths. - Logic-free
.astrofiles:.astrofiles serve exclusively as layout shells, view templates, and markup orchestrators. Data manipulation, business rules, and transformations reside in pure TypeScript/JavaScript helper modules. - 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/styleswithout ad-hoc utility clutter. - Instant Scaffolding via CLI: Every project architecture in this cookbook can be scaffolded immediately using the
@stnd/clicommand-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.