PreactPress
Vite and Preact powered static sites
Write Markdown and MDX, configure navigation, and ship a small static documentation site.
Fast by default
Static HTML output, Vite dev server, and optional client navigation.
Markdown first
Frontmatter, MDX, tags, search metadata, and outline extraction.
Themeable
Use the default theme or replace it with your own Preact layout.
Quick start#
From this folder:
pnpm install
pnpm run dev
Open http://localhost:5173. Edit Markdown files, adjust .preactpress/config.ts, and the dev server hot-reloads your changes.
What to read next#
| Page | Why |
|---|---|
| Your first 5 minutes | Change the title, add a page, wire up navigation |
| About | A plain content page you can replace |
What you get#
| Feature | Included |
|---|---|
| Static HTML build | Yes |
| Client navigation | Yes |
| Markdown frontmatter | Yes |
| Sidebar search | Yes |
The default template is intentionally small. Use preactpress init --template docs when you want a fuller documentation starter, or preactpress init --template magazine for a custom-theme example.