GitXplorerGitXplorer
v

crux-history

public
2 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
626759649e132ff5240aef3e85cd82516c15314f

Merge pull request #1 from vercel/bugfix/add-validation-to-domain-input

ppbzona committed 4 months ago
Unverified
4c8be8a90876396352a3373b8029a9385e30ec78

Fix error handling logic

ppbzona committed 4 months ago
Verified
7d8d1c082631225d2210b42d88fa325025e716a3

Merge branch 'main' into bugfix/add-validation-to-domain-input

ppbzona committed 4 months ago
Unverified
81f6091b4bd57ff38d79bb81e4b43ce2ad0e0d0d

Fix divide by 0 issue in very low delta CLS

ppbzona committed 6 months ago
Unverified
8ca7a68cd2b40e3d7fd8d617e4cdc99d07099a72

Forgot to multiply for percentage

ppbzona committed 6 months ago
Unverified
815dfcbf77ada8224573b596e04e1cc5ded75291

Color current value for each metric

ppbzona committed 6 months ago

README

The README file for this repository.

CrUX Historical Data šŸš§

The CrUX historical data dashboard is intended to surface trends in core web vitals over time.

What is this?

This project is a small collection of charts that shows CrUX (Chrome User Experience Report) historical data. The API provides a number of metrics, all of which are displayed in the dashboard:

  • CLS (Cumulative layout shift)
  • TTFB (Time to first byte)
  • FCP (First contentful paint)
  • LCP (Largest contentful paint)
  • FID (First input delay)
  • INP (Interaction to next paint)

For more info on what CrUX data entails and how it's gathered, see: https://developer.chrome.com/docs/crux.

How to interpret the charts

Each chart is a histogram spanning the past 25 weeks. Each "week" on the chart is actually the last date of a 28-day rolling window. The bins into which the histogram is divided (red = bad, yellow = okay, green = good) are defined by Google and hard coded in their API response.

The unit of measurement for all charts is milliseconds, except for CLS, which uses a scoring system.

As of March 28 2024, the TTFB metric is still considered experimental.

ā—IMPORTANTā— - Note that the Y-axis on the graph is logarithmically scaled. This ensures that changes in "bad" and "okay" user groups are amplified. Since these charts are meant to show change over time rather than raw magnitudes, do not assume that a big red bar necessarily means a high percentage of users with a bad experience.

Rate limits

The CrUX history API has a rate limit of 150 requests/minute. This should be sufficient, but if you find yourself getting limited, feel free to deploy your own:

Deploy with Vercel

See this page for instructions on creating an API key. The API is provided at no cost, but the key is required. Once you have it, set the GOOGLE_API_KEY environment variable for your project.