Build a kit
Begin with a visitor task: find an item, compare options, read a sequence, understand a place or submit a request. A kit should make that task clearer, not just give a page a different skin.
1. Write a small brief
Describe the audience, the content editors add and the action visitors take. Name what success looks like. Identify the smallest complete route or journey that can demonstrate it.
2. Define the contract
List required and optional fields, relationships, ordering, route assumptions, shared settings and native capabilities. Include public/private rules and media requirements. Use meaningful domain names. Do not require one abstract content tree for unrelated sites.
3. Prepare representative content
Use ordinary, long, incomplete and media-rich records. Avoid building only against short placeholder copy. Keep demonstration records distinct from real content. Confirm you have permission to distribute any included assets and text.
4. Build the reading baseline
Create native routes and load real records. Establish stable links, headings, useful body content and missing-record behavior. Confirm anonymous HTML contains the intended content and no drafts. Then add layout and styles.
5. Add behavior selectively
Use navigation and progressive native controls first. Probe compiler support for a complex interaction before committing to it. Build no more client state than the visitor task requires. See Interactions.
6. Prove reuse
Apply a distinctly different presentation to the same content without copying records or rewriting their identity. Confirm an editorial update appears in both where intended. If an adaptation is required, document it explicitly. Reuse is an observed result, not a filename or manifest claim.
7. Verify and hand off
Run source checks and build. Exercise actual editing, draft isolation, publishing and public updates. Inspect responsive layouts and keyboard focus. Review loading and asset behavior. Record the exact candidate and remaining limits.
Ship editable source, content requirements, assets/licenses, commands, sample setup and compatibility notes. Copy the handoff outline into your README and fill it in from the final implementation. Remove credentials and target bindings from portable downloads. Follow Publishing and diagnostics for an authorized release.
Do not describe a manual source edit as a visual kit picker, a compiled route as universal compatibility or a published-record update as staged publishing.
Start a view with one command
From the extracted starter, run:
npm run add:view -- your-view
npm run check
npm run build
The command creates sp/app/views/your-view/page.tsx. On the next native preview, open /views/your-view/. It starts with the six newest published posts, links to their existing addresses, and uses the starter’s compact list. Edit the generated source to change the arrangement. Add a link in sp/app/layout.tsx when the view is ready for readers. The command leaves existing source files and WordPress records alone.
Make your first alternate view
Start with the publishing starter from Getting started. Create the sp/app/reading-list/ directory and add a page.tsx file with the code below. This is a small, deliberately capped view of the newest six public posts. The starter's archive is still the complete, paginated index.
import { posts } from "spacepress:db";
import { home_url } from "php/wordpress";
export const metadata = { title: "Reading list" };
export default async function ReadingList() {
const entries = await posts.list({
where: { status: "published" },
orderBy: { publishedAt: "desc", id: "desc" },
limit: 6,
});
return (
<section className="entries">
<h1>Reading list</h1>
<p>The latest six published posts.</p>
{entries.length === 0 ? (
<p>There are no published posts yet.</p>
) : (
<ol>
{entries.map((post) => (
<li>
<a href={home_url(`/journal/${post.slug}/`)}>{post.title}</a>
{post.description ? <p>{post.description}</p> : null}
</li>
))}
</ol>
)}
<a href={home_url("/archive/")}>Browse the complete archive</a>
</section>
);
}
From the starter directory, run npm run check and npm run build. Upload the changed source to preview again, then open /reading-list/ on that preview version. Each title should link to the post address that the homepage and archive already use. The published filter is explicit, and the optional description disappears cleanly when it is missing.
Verify the view with a long title, a missing description and an unpublished draft. On a disposable preview with at least seven published posts, confirm that only the newest six appear. Edit one published title in WordPress and check that the homepage and reading list both reflect the edit. On a disposable empty site, check the empty message and archive link. Finally, follow the links using only the keyboard with JavaScript disabled. Once the view earns a place in navigation, add a link to it in sp/app/layout.tsx.
Techniques for more ambitious kits
Alternate views over the same data. The starter implements this in its index and compact archive. Reuse the same visibility rules and stable detail links while changing density, grouping or reading pace. Do not fork the records merely to change their appearance.
Route composition. Make a focused landing route, a comparison/index route and a stable detail route share components and content. A sequence can link through known records with ordinary navigation. A branching guide can use explicit route choices. These are design techniques; a specific branch query or sequence algorithm still needs implementation and tests.
Portable presets. Put color roles, spacing, type and component decisions into scoped CSS/source that travels with the kit. Document what the preset changes. A preset is not proof that arbitrary content models fit, and the starter does not supply a generic runtime preset picker.
Fast initial reading. Render useful content on the server, keep navigation native, limit unnecessary font/asset payloads and reserve media dimensions. Measure the actual browser result. Server rendering alone does not guarantee a fast page.
Optional interaction. A native link-based baseline can gain filtering, live state or progressive forms only where the platform supports the required behavior. Treat complex live queries and client mechanics as experiments until a small prototype compiles and works in the browser.
The supplied starter is a publishing baseline. Comparative catalogues, sequential exhibitions, time-based boards and branching guides are possible directions to investigate, not bundled finished kits or compatibility promises.
Four implementation recipes
These are adaptation recipes, not four finished templates in the download.
Compare
Use an index route and stable detail routes. Present two or three meaningful fields in aligned rows; at narrow widths turn each row into a labeled mini-record. Use a semantic table only when the relationships are tabular. Keep long names readable rather than truncating them.
Start with ordinary links, explicit pagination and a server-handled GET filter where supported. Test eight varied records, a missing field, an empty result and a draft. Client sorting/filtering with history synchronization is a separate experiment that needs compiler, accessibility and URL-state proof.
Encounter
Use a sequential route with a jump list and a compact complete index. Give records explicit editorial sequence rather than relying on publication time. Alternate media scale and caption placement with CSS while preserving a coherent DOM order.
Test landscape media, portrait media and a record with no media. Render a useful typography-only plate when media is absent. Avoid mandatory carousels and scroll hijacking. Enhanced progress/reveal effects remain optional experiments; all content must be readable before they run.
Attend
Use a program index grouped by day, stable session details and complete visit information. Model start/end, display time zone, venue and cancellation state explicitly. Mobile should be a chronological list rather than a squeezed multi-venue grid.
Test an overnight session, simultaneous venues, a canceled session and a past event. Live upcoming/now state needs additional time-zone, daylight-saving and cache-freshness proof. A schedule is not automatically a booking system.
Follow
Use an introduction, trail overview, stable step routes and a complete public map/list. Each choice is an ordinary descriptive link. Model outgoing relationships explicitly; do not assume every guide is a tree.
Test a branch, intentional loop, absent destination and draft destination. Validate route accessibility and a complete keyboard journey. Saved progress is a separate experiment requiring persistence scope, privacy and reset behavior; browser-local state is not cross-device history.