# The SpacePress Handbook

> End-to-end engineering handbook covering every layer of SpacePress — Rust/OXC compiler, schemas, SQL migrations, access control, actions, jobs, TSX pages, WooCommerce, React Email, Markdown sync, MCP, and deployment.

Source: https://spacepress.dev/handbook/

## Chapters

- **01. [Project Layout & Mental Model](https://spacepress.dev/handbook/#mental-model)** — typedpress.config.ts, tp/ modules, and how the compiler emits native WordPress artifacts.
- **02. [Rust & OXC Compiler](https://spacepress.dev/handbook/#compiler)** — TypeScript/TSX parsing in Rust, emitted PHP/SQL/OpenAPI/types, and capital_P_dangit lint.
- **03. [Data Modeling & Migrations](https://spacepress.dev/handbook/#data-modeling)** — collection(), table(), global(), wp.posts.extend(), snapshot.json, and .was() safe renames.
- **04. [Queries, Validation & Access](https://spacepress.dev/handbook/#queries-access)** — Typed db queries, row-level filters, field-level .access(), and .validate().
- **05. [Hooks & Lifecycle Events](https://spacepress.dev/handbook/#hooks)** — Transactional collection hooks (.on) and typed WordPress core hooks in tp/wp-hooks/.
- **06. [Actions, Jobs, Routes & Files](https://spacepress.dev/handbook/#actions-jobs-routes)** — Typed RPC action(), Action Scheduler job(), custom HTTP route.ts, and file buckets.
- **07. [Pages, Layouts & Islands](https://spacepress.dev/handbook/#pages-islands)** — File-based TSX pages in tp/app/ compiled to PHP and "use client" Interactivity API islands.
- **08. [Typed Client, React & Astro](https://spacepress.dev/handbook/#clients-astro)** — Generated fetch client, React hooks, and @typedpress/astro external frontend integration.
- **09. [WooCommerce Storefront](https://spacepress.dev/handbook/#woocommerce)** — store(), product(), shipping zones, orders, and optimistic cart hooks on native WooCommerce.
- **10. [React Email Templates](https://spacepress.dev/handbook/#react-email)** — Transactional email templates in emails/*.tsx rendered via mail.render() and mail.send().
- **11. [Admin, Gutenberg & Plugins](https://spacepress.dev/handbook/#admin-plugins)** — typedpress-admin at /wp-admin/new/, adminScreen(), @typedpress/blocks, and plugins.
- **12. [Two-Way Markdown Git Sync](https://spacepress.dev/handbook/#markdown-sync)** — Three-way merges between content/**/*.md and WordPress Admin with stable UIDs.
- **13. [MCP, Abilities & AI Agents](https://spacepress.dev/handbook/#mcp-agents)** — WordPress Abilities API annotations and typedpress mcp server for coding agents.
- **14. [Hosting, Deploy & CLI](https://spacepress.dev/handbook/#deploy-cli)** — Deploy to Spacefast, Pressable, WordPress.com, or self-hosted WordPress with typedpress push.

For complete topic-by-topic technical specs, fetch `/llms.txt` or `/llms-full.txt`.
