Skip to content

Publishing ecosystem usage ​

Architecture and ownership ​

The census repository owns eligibility, weekly deduplication, suppression, and the public aggregate schema. The documentation site owns strict validation, static rendering, and publication on Ecosystem Usage.

  • Static delivery only: Public traffic never calls the census Worker, D1, GitHub, or dev.to for this dashboard. Charts use CSS/SVG and the HTML already contains all numbers and tables. The existing /api/releases and /api/devto-feed Pages Functions keep their routes; all dashboard assets sit outside the Functions route allowlist.
  • Exact release pinning: Weekly refreshes rebuild the pinned release-docs commit with updated aggregate input via a deploy hook; they do not advance release-docs. Content-addressed JSON and Vite assets are cached as immutable while HTML revalidates as the pointer.

Dashboard previews ​

Desktop and mobile layouts before an approved snapshot has been published:

Desktop ​

Desktop dashboard aligned with the top navigation and an On this page outline on the right

Mobile ​

Mobile dashboard preview with the unpublished snapshot notice and stacked reporting totals

Publication runbook ​

  1. Confirm gates: Complete the prerequisites in the Build census release checklist. Set PUBLIC_WEEKLY_FIRST_MONDAY to the first UTC Monday fully covered by approved collection. First publication is permitted after that first complete eligible week closes (Tuesday UTC) with at least 20 distinct contributing installations.
  2. Export weekly rows: After Tuesday's 03:17 UTC scheduled job, export materialised weekly rows using scripts/select-public-usage.sql and scripts/export-public-usage.js (see the collector's docs/privacy-runbook.md for exact commands). Keep monthly rows internal unless overlapping granularities pass a separate disclosure review.
  3. Review and publish snapshot: Validate the export against public-usage-v1, verify real provenance and monotonic week/generation dates, and publish only usage.snapshot.json at the root of the protected usage-public branch of The-Pipeline-Framework/pipelineframework-census.
  4. Rebuild release-docs: Confirm Cloudflare Pages runs npm run build (so scripts/prepare-public-usage.js executes), set TPF_USAGE_SNAPSHOT=approved for release-docs (CF_PAGES_BRANCH=release-docs keeps staging and PR builds empty), and trigger the branch-specific deploy hook once. Keep the hook URL secret.
  5. Verify live deployment: Confirm ecosystem/usage.html, _routes.json, and the hash-addressed JSON headers at the custom domain, verify zero Worker/Function invocations for dashboard paths, and confirm /api/releases and /api/devto-feed continue to behave normally.

Failure and withdrawal ​

A failed export, missing latest week, fetch error, or invalid schema stops the refresh and leaves the last successful Pages deployment in place. Its UTC period and generation timestamp remain visible, and the browser marks it stale once the next week closes. Never bypass validation or substitute fixtures during a regular docs release.

For a withdrawal, stop publication, review affected weeks with the privacy owner, and avoid republishing revised counts for the same week without a differencing check. To clear the live page, disable TPF_USAGE_SNAPSHOT, rebuild the same release-docs commit, purge affected edge paths where applicable, and remove the withdrawn week row in the collector (protecting against restore reintroduction).

Local verification ​

  • Site tests and build: npm --prefix docs test and npm --prefix docs run build
  • Browser layout and state proof (Playwright): node docs/scripts/verify-usage-render.js
  • Collector checks (from pipelineframework-census): npm test and WRANGLER_SEND_METRICS=false npm run check (schema copy must match byte for byte)

Diagram