Skip to content
Marketplace

Template Analytics · Product analytics

Product Analytics

A product analytics starter: an editable dashboard grid with KPIs, trends with filters, breakdowns and saved segments, funnels, cohort retention and a live counter, all computed from simulated events with role-gated editing.

A starting point: runs as a live demo, and copies into a new prototype.

Screenshot · shown in its full screen shell

Live preview

1280×800
Live demo bundled static build Open
Screenshot of Product Analytics

No live preview yet.

Each prototype stores its data in IndexedDB for the address it runs on. Data you create at localhost:5173 is separate from a build at localhost:4173 or a published URL, and the framed preview shares storage with that address opened directly.

Highlights

  • Editable dashboard grid with KPIs
  • Trends with filters, breakdowns and saved segments
  • Funnels and cohort retention
  • Launch spike, outage and massive scenarios

Scenarios 6

  • empty
  • active default
  • launch-spike
  • outage
  • massive
  • viewer

Each scenario rebuilds a deterministic world. Open one with ?scenario=<id>.

Spec kit

Every prototype carries a spec any agent can follow to rebuild it in a real app: the files below, in templates/analytics/, with generated regions kept in sync with the code.

  • AGENTS.md
  • docs/SPEC.md
  • docs/DATA_MODEL.md
  • docs/FLOWS.md
  • docs/SCREENS.md
  • docs/PERMISSIONS.md

Check that the spec is current

pnpm protoyard spec analytics --check

Rebuild kit (ZIP)

pnpm protoyard spec analytics --bundle