PreactPress
The documentation framework for Preact.
PreactPress
The documentation framework for Preact
Build fast documentation, blogs and product sites with Markdown, MDX, Preact and Vite.
pnpm dlx @kamod-ch/preactpress init my-docs --template docscd my-docspnpm installpnpm devInteractive demo
A small MDX example
Author mostly in Markdown, then drop in Preact components exactly where the page needs interactivity.
import { Counter } from'./components/Counter'# Interactive documentation<Counter />Rendered result
Interactive documentation
Three main benefits
Focused on Preact documentation
Preact components in MDX
Bring interactive examples, demos and product-specific widgets into otherwise simple content.
Documentation features included
Navigation, sidebars, local search, outlines, tags, i18n and validation are ready in the docs template.
Static deployment anywhere
Build once and publish the generated files to GitHub Pages, Netlify, Vercel, Cloudflare Pages or any static host.
Template gallery
Start with the shape of site you need
Documentation
The full reference starter used for this public demo.
pnpm dlx @kamod-ch/preactpress init my-docs --template docsProduct + Docs
A polished product landing page with a complete documentation area.
pnpm dlx @kamod-ch/preactpress init my-site --template honoMagazine
A custom editorial theme for articles, tags and content-heavy sites.
pnpm dlx @kamod-ch/preactpress init my-mag --template magazineMinimal
A small starter with a home page, an about page and one guide.
pnpm dlx @kamod-ch/preactpress init my-docsComparison
Pick the documentation tool that matches your stack
Each tool has a clear audience. PreactPress is for teams that want documentation built around Preact and MDX.
| Product | Components | Best for |
|---|---|---|
| PreactPress | Preact + MDX | Preact documentation |
| VitePress | Vue | Vue documentation |
| Docusaurus | React | Large documentation portals |
| Starlight | Astro | Cross-framework content sites |
References
Used in real Kamod projects
PreactPress is not only a starter. It is used across Kamod documentation and open-source projects.