Documentation menu

Getting started

The starter download is an editable native publishing application. It starts with WordPress Posts, a public index, an archive, a detail route and an About page. These are a useful baseline, not a requirement that every format be a blog.

Check the prerequisites

Use Node.js 22.19.0 or newer. The starter includes a pinned compiler WASM and declares no npm package dependencies for its check/build path. Extract the ZIP into a new directory and read its README before running commands. Do not substitute another compiler merely because a newer package exists.

Check and compile

Open a terminal in the extracted project:

node --version
npm run check
npm run build

check reports source diagnostics. build writes the compiled application and a compiler report under .build/. These commands do not start WordPress and do not publish anything. Review their output before moving on. Fix authored source rather than patching generated PHP.

See your first change

Open sp/app/page.tsx and change the journal heading to a title of your choice. Run npm run check and npm run build again. A successful check reports ok: true with no diagnostics. A successful build writes .build/compiler.json and the generated application plugin. The source is ready to preview, but those commands have not started a web server.

Preview on Spacefast

Use this path if you want to see the starter running without configuring a local WordPress installation. Install the official Spacefast CLI and run sf login if needed. Run sf spaces list --json and choose a development Space from the signed-in account. If you belong to multiple teams, narrow the list with --team YOUR_TEAM. Use the Space's id as YOUR_SPACE below. Confirm its identity with sf inspect YOUR_SPACE before uploading.

If you need a separate Space and can create one on the intended team, run sf spaces create --team YOUR_TEAM --name "Kits development" --no-save-state --json. Then list the team's Spaces again and select the new ID. Use an existing or new development Space where you can test with sample records.

From the extracted starter directory, run:

sf --version
sf check --json
sf publish . --space YOUR_SPACE --target preview --skip-install --skip-build --dry-run --json

The dry run shows what would be sent. If you edited the starter’s sample Markdown, run npm run preflight to check the records and prepare a source inventory. Confirm the target, then upload the native source as a preview:

sf publish . --space YOUR_SPACE --target preview --skip-install --skip-build --wait --json

Keep --target preview on the command. It leaves the live channel untouched. Open the returned preview URL and check your changed heading, the archive and a sample post. A preview uses the normal hosting and build allowance for your account. Read Publishing and diagnostics before a separate live release.

Preview locally if you already have a runtime

The downloaded starter's docs/development.md explains the advanced isolated WordPress setup and its exact prerequisites. npm run dev starts that configured site. On a clean download, it points you to the setup instead of failing with a missing-file stack trace. The installed Spacefast 0.10.0 CLI does not provision a local runtime for these native spacepress.config.ts projects through sf dev.

Try the editor

Use a disposable development Space with sample posts. Download the workspace starter preview to try drafting, or the workspace starter with publishing to try publishing from the Kit. Follow the README in the ZIP. For an existing Kit, the editor overlay includes the shared editor source, assets, and routes. Test it on a branch and connect its Write link to your Kit's navigation.

In the hosted preview, open /write/workspace/ using an authorized Spacefast session. Choose Start a draft, add a title and a paragraph, and save. Return to the workspace and reopen the draft to check that both persisted. Confirm the draft is absent from the public collection. In the publishing preview, choose Publish from the workspace, confirm publication, and open the assigned article. Check the collection in a second session.

The hosted checks used the Spacefast CLI's author handoff. Fresh email sign-in and hosted access for lower WordPress roles are still under verification. The workspace previews edit posts in draft status.

If you are using the stable starter from the beginning of this guide, use your configured local WordPress editor for the same exercise. Save a draft under Posts, check that it stays out of the journal, then publish and check the archive and article.

Add a view over the same posts

Run npm run add:view -- your-view, then follow the generated view walkthrough. It gives you an editable route to customize while the original journal and post addresses remain available.

Prepare portable source

npm run source:prepare

This captures the native authored source for the supported packaging workflow. Inspect the result and content inclusion before release. It does not publish the application. Continue with Project structure and Publishing.