Skip to content

PreactPress

Vite and Preact powered static sites

Write Markdown and MDX, configure navigation, and ship a small static documentation site.

V

Fast by default

Static HTML output, Vite dev server, and optional client navigation.

M

Markdown first

Frontmatter, MDX, tags, search metadata, and outline extraction.

T

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.

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.