Skip to content
v0 “Istanbul” · THIS IS WORK IN PROGRESS.

Quick Start

For AI coding agents: start with /start.md (build playbook) and /rules.md (compiler rules), see /llms.txt for the complete documentation index, or read this page as Markdown at /md/quick-start.md.

The famous 3-minute install: hand the prompt to your coding agent — or scaffold directly with the CLI — and launch local WordPress with no Docker or Rust toolchain required.

Requirements & pre-release naming: You need Node.js 22+ and npm. The typedpress npm package downloads a prebuilt Rust compiler binary automatically. During pre-release, CLI commands, config filenames (typedpress.config.ts), and imports (from "typedpress") use the typedpress identifier.
1

Start with your coding agent — or the CLI

Paste this prompt into Claude Code, Cursor, Codex, or any coding agent. It reads /start.md and /rules.md, scaffolds the starter with AGENTS.md, 12 skills, and .mcp.json, and boots local WordPress:

Read https://spacepress.dev/start.md and https://spacepress.dev/rules.md, then help me build a SpacePress app (scaffold with `npm create typedpress@0.3.0 my-app`, verify with `npx typedpress check`, and boot local WordPress with `npm run dev`).

Or run the scaffolder directly in your terminal:

npm create typedpress@0.3.0 my-appcd my-app && npm run dev

typedpress dev compiles your TypeScript, boots a local WordPress + SQLite site, activates the generated plugins, and watches for file changes. Open the printed URL in your browser and say Howdy to the modern SpacePress Admin at /wp-admin/new/.

2

Define your schema & server action

SpacePress reads typedpress.config.ts (and any files it re-exports from tp/). Edit the starter schema below — try adding a summary: text().optional() field or modifying the clap action — and inspect the live PHP, SQL migration, and TypeScript definitions generated in your browser.

3

Render a server TSX page & interactive island

Pages in tp/app/ compile directly to PHP and render inside WordPress with zero Node.js. Forms bound to action={greet} work even with JavaScript disabled; components marked "use client" compile into WordPress Interactivity API stores.

import { db } from "typedpress"; import { Link, useFormState } from "typedpress/app"; import { greet } from "../actions"; export const metadata = { title: "Home" }; export default async function Home() { const latest = await db.query.notes.findMany({ columns: { id: true, title: true, slug: true }, orderBy: { publishedAt: "desc" }, limit: 5, }); const state = useFormState(greet); return ( <section> <h1>Latest Notes</h1> <ul> {latest.map((note) => ( <li key={note.id}> <Link href={`/notes/${note.slug}`}>{note.title}</Link> </li> ))} </ul> <form action={greet}> <input name="name" defaultValue={state.values.name ?? ""} required /> <button type="submit">Say hello</button> </form> {state.result && <p role="status">{state.result.message}</p>} </section> ); }"use client"; import { useState } from "typedpress/client"; import { clap } from "../schema"; export function ClapButton({ noteId, initial }: { noteId: number; initial: number }) { const [count, setCount] = useState(initial); const [busy, setBusy] = useState(false); return ( <button type="button" disabled={busy} onClick={async () => { setBusy(true); const res = await clap({ noteId }); setCount(res.count); setBusy(false); }} > {count} {count === 1 ? "clap" : "claps"} </button> ); }
4

Sync Markdown content & verify types

Collections with sync: "content/notes/*.md" stay in two-way sync between Git and WordPress. Run typedpress sync to push local Markdown files or pull edits made in WordPress Admin, and run check + tsc to validate everything before shipping.

npx typedpress syncnpm run check && npm run typecheck
5

Build & deploy anywhere WordPress runs

Compile your project into standalone WordPress plugins under tp/dist/wp-content/plugins/, deploy to Spacefast, Pressable & WordPress.com (WP Cloud), or self-hosted WordPress with login + push, or export a static site when output: "static" is set.

npx typedpress buildnpx typedpress login https://example.com && npx typedpress push

Need to add a module later? Scaffold a WooCommerce storefront with npx typedpress add shop, SQL tables with npx typedpress add db, or OpenAPI reference pages with npx typedpress add api-reference.

Where to go next