Documentation
Everything you need to build and deploy static sites with Stedefast.
Getting Started
- Installation
Install Stedefast and set up your first site in minutes.
- Tutorial: Blog with Comments
Build and deploy a blog with dynamic comments from scratch — a complete walkthrough.
- Your First Site
Build and deploy your first Stedefast site step by step.
- Config Reference
Complete reference for stedefast.config.ts options.
Content
- Content Types
Built-in and custom content types in Stedefast.
- Front Matter
Front matter fields available in all content types.
- Markdown Pipeline
How Stedefast processes Markdown content.
- Collections & Pagination
Group content into collections and paginate listing pages.
Templates
- React Templates
Build page templates with React and TypeScript.
- Liquid Templates
Build page templates with Liquid for simpler pages.
- Islands
Add client-side interactivity with React islands.
Deployment
- Deploying to Cloudflare Pages
Deploy your Stedefast site to Cloudflare Pages with D1, KV, R2, and Pages Functions.
- CLI Reference
All stedefast CLI commands and options.
- Provider Architecture
How Stedefast decouples modules from runtime infrastructure using provider interfaces.
General
- stedefast scaffold
Generate templates, layouts, partials, islands, content types, and module islands from the CLI.
- scaffold module-island
Eject a module's island source into your theme for local customisation.
- stedefast export
Adapt your Stedefast build for Netlify, Vercel, GitHub Pages, nginx, and Apache.
- stedefast check
Audit your built site for broken links, missing alt text, large images, and other quality issues.
- stedefast preview
Preview your built Stedefast site locally using Cloudflare Wrangler Pages.
- Footnotes Sidenotes
Transform standard Markdown footnotes into elegant margin sidenotes on wide screens.
- Rich Embeds
Auto-embed YouTube videos, Twitter/X posts, GitHub Gists, and more via oEmbed at build time.
Modules
- Modules Overview
Add dynamic features to your static Stedefast site with modules.
- Comments
Add user comments to your site with D1 storage and a moderation queue.
- Claps
Add clap/like counts to your pages using Cloudflare KV.
- Analytics
Page analytics using Cloudflare Web Analytics — privacy-friendly, no cookies.
- Writing a Module
Build a custom Stedefast module with static export, worker handler, and React island.
- Contact
Add a privacy-friendly contact form with Cloudflare Turnstile CAPTCHA, D1 storage, and email delivery.
- Search
Add instant full-text search to your Stedefast site with zero server infrastructure.
- Reactions
Add emoji reactions to your pages using Cloudflare KV.
- Newsletter
Capture email subscribers with double opt-in confirmation, HMAC-signed tokens, D1 storage, and an admin panel with CSV export.
Plugins
- Plugins Overview
Extend Stedefast's Markdown pipeline with remark and rehype plugins.
- Shiki
Syntax highlighting for code blocks using Shiki — every VS Code theme, 200+ languages.
- Writing a Plugin
Create custom remark and rehype plugins to extend Stedefast's Markdown pipeline.
- OG Images
Generate Open Graph social card images at build time using Satori — one 1200×630 PNG per page, automatically.
- Mermaid
Build-time Mermaid diagram rendering — converts fenced mermaid blocks to inline SVG with no client-side JavaScript.
- Reading Progress
A lightweight reading progress bar that fills as users scroll through your content.
Contributing
- Contributing to Stedefast
How to contribute plugins, modules, themes, and fixes to the Stedefast monorepo.
- Contributing a Plugin
Step-by-step guide to writing and submitting a /plugin-* package.
- Contributing a Module
Step-by-step guide to writing and submitting a /module-* package.
- Code Standards
TypeScript, Biome, testing, and commit conventions used across the Stedefast monorepo.