The marketing CMS where agents draft and people publish
Menu

Headless starter kits

Status: approved (2026-11-16, Kevin). Phase 1 is done: the HTML render, the brand API, the @spillway-cms/brand Tailwind preset, the menu, redirect and site webhooks with the public redirect list, and create-spillway with the Next.js and Astro starters, a search page with suggestions and a language switcher in each, and the webhook rules set up through the API while scaffolding (adapters.md). From phase 2, the Nuxt and SvelteKit starters are done (on the HTML render); members, with Spillway as an OpenID Connect provider, come next (the MCP OAuth sign-in they build on has merged), and each starter's README keeps a Members section for them.

People who want their own front end (a design system that is not the block library, a framework their team already knows, a site that mixes Spillway with other sources) should get one in minutes that is as complete as a Spillway-rendered site: routing, SEO, previews, forms, search, members, and the site's brand, kept in step without hand wiring. This plan builds on what exists: the public render API, @spillway-cms/client and the Astro and Next.js adapters (adapters.md).

What "complete" means

A starter is a small, working site that a team copies and owns. Every one has:

  • Routing from Spillway: one catch-all route that renders any published path, static paths at build time where the framework builds statically, 404 for unknown paths, and redirects from Spillway's redirect list.
  • SEO: title, description, canonical, alternates, Open Graph and JSON-LD from the render response; sitemap.xml and robots.txt from the published paths.
  • Menus and regions: the header and footer menus, and blocks placed in regions.
  • The brand: the site's colors, fonts, spacing and radius as CSS variables and, for Tailwind projects, a preset; fonts loaded the way the brand says; a brand change in the admin reaches the front end like a content change does.
  • Previews: release share links and draft mode, with the preview banner.
  • Revalidation: the signed publish webhook purges exactly what changed.
  • Forms and search: the Form block submits to Spillway; a search page with suggestions.
  • Members: sign up, log in, log out, the account page, and pages only members see (Phase 2).
  • Locales: locale-prefixed routes and a language switcher when the site has more than one locale.
  • Deploy: a one-click deploy to the common hosts, and to Spillway hosting.

Frameworks

TierFrameworksHow blocks render
1Next.js (App Router), AstroThe block library itself (React server rendering), through the existing adapters
2Nuxt, SvelteKitSpillway's own HTML for the block area (the HTML render, below), dropped into the page; everything else (layout, routing, data) is the framework's
3Anything else: React Router, Remix, Eleventy, Hugo, a mobile app@spillway-cms/client and the HTML render; no starter, a guide

Recommendation: Next.js and Astro first (they have adapters and examples), then Nuxt and SvelteKit, which cover the Vue and Svelte communities without re-implementing the block library in each.

What core needs

  1. HTML render (Phase 1): GET /api/public/render/<path>?format=html answers the body, each region and the head tags (stylesheets, fonts, JSON-LD) as HTML strings, rendered by Spillway exactly as its own pages, cached with the same tags. Any framework can place them; Vue and Svelte starters use it, and so can a team that wants Spillway's blocks inside an existing React app without the block library as a dependency.
  2. Brand API (Phase 1): GET /api/public/brand answers the published brand as tokens (colors with their light and dark values, type scale, fonts with their sources, spacing, radius, shadows, motion), the CSS variables Spillway's own pages use, and the font links. A small MIT package, @spillway-cms/brand, turns it into a Tailwind preset and a CSS file at build time, and the publish webhook gains brand.published so a front end rebuilds or revalidates when the brand changes.
  3. Members for headless (Phase 2): Spillway as an OpenID Connect provider for its site accounts (authorization code with PKCE, discovery, JWKS, userinfo), so a front end signs members in with the library its framework already uses (Auth.js, Nuxt Auth, SvelteKit's hooks) instead of a Spillway-specific flow. Sign-up, email confirmation and password reset stay on Spillway's account pages, which can carry the front end's brand and return to it. Content already has its Who can see this setting (everyone, signed-in members, members of chosen groups; members-only content phase 1, see api.md); in phase 1 the public API leaves members-only content out, or answers 401 members_only, unless the request carries a token with content.view_members. Phase 2 lets the public API answer members-only content to a request with the member's own access token, checked against their groups, never cached in shared caches.
  4. Webhooks beyond entities (Phase 1): brand.published, menu.updated, redirects.updated and site.updated, signed like the entity events, so every starter can revalidate on anything that changes what it shows.

Several sources

Two kinds, both supported:

  • Several Spillway sites in one front end, such as a university's main site and its departments: the client takes a site per request (site: 'key' with a token, or each site's own domain), and the starters route by path prefix or domain to a site. Search can span them.
  • Spillway next to other sources (a store, product docs in Markdown, another CMS during a migration): the starters keep content behind a small sources layer, a list of resolvers tried in order for a path, each answering a page or nothing; Spillway is one resolver, the others are the team's. The sitemap and search merge what every resolver lists. This is a pattern in the starters, not a core feature: it keeps core simple and lets teams plug in what they use.

Getting a starter

  • npm create spillway@latest asks for the framework, the Spillway site's URL and a token, writes the starter, and sets up the webhook and the preview secret through the API.
  • Each starter is also a template repository with deploy buttons for Vercel, Netlify and Cloudflare Pages that ask for the same values.
  • On Spillway hosting (spillwaycms.com), a site can come with its front end: the hosting service builds the starter (or the customer's own repository) and runs it next to the site, so a headless site is one purchase with one bill.

Phases

  1. Foundations and the first starters: the HTML render, the brand API and @spillway-cms/brand, the new webhook events, create-spillway with the Next.js and Astro starters (everything in "What complete means" except members).
  2. Members and two more frameworks: Spillway as an OpenID provider, content access, members in every starter, the Nuxt and SvelteKit starters.
  3. Hosting and editing: headless front ends on Spillway hosting, deploy buttons, the several-sources pattern in the starters, and visual editing on the front end (the preview bar and comments over the front end's pages).

Decisions

  • Frameworks and their order: Next.js and Astro, then Nuxt and SvelteKit (recommended above).
  • Members: an OpenID Connect provider rather than a Spillway-specific login API, so standard libraries work and the same provider later gives one sign-in across hosted sites.
  • Blocks outside React: Spillway renders their HTML; the block library stays React only.

Spillway 0.1.24

Was this page helpful?