Skip to content

feat(perf): CrUX field data in the Performance panel - #34

Merged
maxgfr merged 6 commits into
release-nextfrom
issue-30-crux
Nov 20, 2026
Merged

maxgfr merged 6 commits into
release-nextfrom
issue-30-crux

Conversation

@maxgfr

@maxgfr maxgfr commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Field data from the Chrome UX Report API in the Performance panel: p75 and good / needs improvement / poor distribution for LCP, INP, CLS, FCP and TTFB, URL or origin, phone / desktop / all, weekly history sparklines, comparison with the lab value of the tab, Copy for agent. The optional API key is set in Options, sealed on device like the AI key, and sent in the X-Goog-Api-Key header (never in a URL). No host permission needed (the API answers CORS for extension origins). Local hosts are never sent.

Closes #30

…api key

Pure logic in src/lib/crux.ts: URL or origin, phone / desktop / all devices, p75 and distributions rated on the existing web.dev thresholds, history series, origin fallback when the URL has no data, actionable errors, and a one-day cache. The key is sealed with llm-connect's sealedStore in its own IndexedDB database and sent in the X-Goog-Api-Key header, never in a URL.
…tions

Metric rows with p75, a good / needs improvement / poor bar with its shares in text, the collection period, a p75 sparkline and the tab's lab value beside each field value. Without a key, a pointer to Options, where the key is saved, tested and removed. The field p75 also goes into the Performance Copy for agent report.
# Conflicts:
#	PRODUCT.md
#	README.md
#	src/ui/panels/inspect.tsx
#	src/ui/styles.css
#	tests/e2e/run.mjs
@maxgfr
maxgfr merged commit a7d74f5 into release-next Nov 20, 2026
2 checks passed
@maxgfr
maxgfr deleted the issue-30-crux branch November 20, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant