Deployment View

Infrastructure Level 1

Overview

ProductShape has two delivery forms: the npm-distributed CLI used in adopter repositories, and two static publication sites. The public site is served at productshape.dev; the engineering portal is served by this repository's GitHub Pages project and includes the read-only Product Explorer. No ProductShape application server is deployed.

Topology Rationale

The CLI runs locally in the repository it operates on. GitHub Actions builds the engineering portal from tracked sources and deploys its static output to GitHub Pages after a merge to main or a manual workflow dispatch. Cloudflare Pages builds and deploys the public site through its Git integration, including pull-request previews.

Quality and Performance Characteristics

Static hosting avoids a runtime service for public documentation. The explorer file remains self-contained and read-only. The npm package bundles its runtime dependencies and CLI assets.

Building Block Mapping

Building block or artifactInfrastructure elementEnvironment
@prodshape/cli and bundled packagesnpm registry; installed into adopter repositoryConsumer development and CI
Product model, source, schemas, docsGit repositoryAuthoring and review
Product Explorer generator and engineering site builderGitHub Actions runnerEngineering portal build job
_site/ engineering outputGitHub PagesProduct Explorer and engineering documentation
Public site builder (pnpm run build:public-site)Cloudflare Pages Git integrationPublic-site builds and pull-request previews
dist/public-site/ static outputCloudflare PagesPublic ProductShape site
Generated model explorer_site/en/model/explorer.htmlEngineering portal's read-only Product Explorer

Infrastructure Level 2

The engineering workflow installs workspace dependencies, builds the CLI packages, generates the Product Explorer from docs/product/model, assembles only engineering routes, uploads one Pages artifact, and deploys it. Cloudflare's native Git integration builds public-site commits using the root build command and publishes the configured output; GitHub Actions does not build or deploy the public site.