# First-party viewport telemetry to CI test matrix

> Project brief for Claude Code from NixInc Ideas: https://nixinc.co/ideas/2026-09-14-first-party-viewport-telemetry-to-ci
> Scored 5.7/10 on 14 Sept 2026, verdict WATCH. Prices are as of the dates shown.

## What we're building
Frontend teams pick which screen sizes to test by habit or generic statistics, so layouts can clip at widths their own visitors actually use.

## Who pays
Frontend platform or QA lead at an ecommerce or SaaS team already paying for BrowserStack, Percy, synthetic testing or RUM.

## What they already pay
- BrowserStack, Live entry plan, billed annually: $12.50/mo (as of 14 Sept 2026)
- BrowserStack, Live entry plan, month-to-month: $19/mo (as of 14 Sept 2026)
- BrowserStack, Percy Desktop, billed annually: $199/mo (as of 14 Sept 2026)
- Datadog, RUM Measure, per 1,000 sessions, billed annually: $0.15 (as of 14 Sept 2026)
- Datadog, Synthetic browser testing, per 1,000 runs: $12 (as of 14 Sept 2026)

## Milestone 0: the 72-hour test, before any code
Offer a privacy-safe snippet and manually generate a recommended test matrix for 25 frontend/QA leads using one week of already-available analytics exports or a supplied sample. No generic/global claims.

- Pass line: Five teams provide data or install the snippet, three identify a missed breakpoint from the report, and two request a recurring CI alert or paid pilot.
- Stop rule: Stop if fewer than five teams share data, if no missed breakpoint is found, or if existing BrowserStack/Datadog configuration produces the same answer without custom work. Do not build a global viewport-statistics site from self-selected traffic.

Do not start milestone 1 until the pass line is met.

## Milestone 1: the smallest version worth shipping
A privacy-safe snippet or an analytics-export upload, with a recommended test matrix produced by hand for 25 teams, including a cumulative distribution of what share of visitors fall below each width.

## Skip in v1
A global viewport-statistics site built from self-selected traffic, and a standalone SaaS before teams ask for recurring alerts.

## Needs
One week of a site's analytics data or a small JavaScript snippet, a script to compute width distributions, and later a GitHub Action or Percy integration.

## How to work in this repo
1. Plan before you edit: say which files change, the smallest change that works and how you will check it, then wait for a yes.
2. One task at a time, small enough to read in one diff.
3. After each change, run the checks, then say what changed, what you tested and what still needs a person to look at.
4. Check it like a first-time customer: run the real thing and try the empty, error and success paths.
5. Keep secrets out of the repo and out of chat. Environment files stay local.
6. Ask before installing dependencies, touching payments or sign-in, or deleting files.
7. Do not build anything listed under "Skip in v1".
