Stedefast

Documentation

Everything you need to build and deploy static sites with Stedefast.

Getting Started

Content

Templates

Deployment

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