The official PRSS SSR themes, developed in one repo and compiled as static distribution artifacts. The root npm workspace is private: npm publishing is disabled, and npm is used only for dependency management and build commands.
PRSS resolves a theme against a base URL handed to it by the API, and fetches
manifest.json, index.html, theme.css, client.js and one <template>.js
per template relative to it. The artifact tree mirrors that layout:
build/
vantage/{manifest.json,index.html,theme.css,client.js,home.js,...}
slate/{...}
Each theme's base URL points at its directory in the hosted artifact tree, independently of npm package URLs.
packages/
_shared/ component layer shared by the themes (not published on its own)
vantage/ one workspace per theme, each with its own build toolchain
...
scripts/
build-all.js builds supported SSR themes and assembles build/
verify-build.js checks SSR manifests, source globals and required files
Themes span webpack 4 to 5 and React 16 to 18, so each keeps its own
package.json and toolchain rather than sharing a hoisted one. Only the built
output is published, so this is invisible to consumers.
_shared is consumed as source, not as a built dependency: each theme
compiles it with its own Tailwind config, so the shared components pick up that
theme's design tokens. Themes reach it through the @/components/ui, @/hooks
and @/lib aliases; everything else under @/ stays theme-local.
npm install # once, at the repo root
npm run build:theme -- vantage # build one theme
npm run build # build all themes and assemble build/
npm run verify # check the published layout is complete
npm run release:check # build + verify; does not upload artifactsAll distributed themes must declare isSSR: true in their source and compiled
manifests. The legacy packages/blank source is archived and excluded from
discovery and explicit single-theme builds; use blank-ssr instead. Assembly
removes stale build/blank output, including during partial builds. Verification
ignores that legacy directory in older local build trees; do not distribute it.
Run the full release check before distributing a fresh artifact tree.
Each theme's own build/ is committed. PRSS's theme creator clones a single
theme with a sparse checkout and reads build/manifest.json immediately, so a
theme directory has to be complete and forkable on its own.
The root package-lock.json is committed and is what makes builds
reproducible. Neither Babel nor browserslist targets are declared explicitly, so
bundle contents otherwise drift with whatever caniuse-lite happens to be
installed. Run npm ci rather than npm install when you need to match a
previous build exactly.
Paid themes are maintained separately and distributed as compiled static artifacts with the same layout. They are not forkable through the theme creator, which filters them out of the base-theme list.