badges / shields

Concise, consistent, and legible badges in SVG and raster format
https://shields.io
Creative Commons Zero v1.0 Universal
23.93k stars 5.51k forks source link

Lighthouse & Core Web Vitals #5891

Closed Erseni closed 3 years ago

Erseni commented 4 years ago

:clipboard: Description

What about the Lighthouse Metric Numbers and the Core Web Vitals? Anyone working on these Badges?

chris48s commented 4 years ago

To aid anyone who wants to work on this

Erseni commented 4 years ago

Interesting would be the four numbers for:

And the three Core Web Vitals:

There are some Services which provide these values

or Browser Extensions

or the npm package which all these tools use:

chris48s commented 4 years ago

In order to generate a badge on-the-fly, we would need to be able to query a service that returns machine readable data quickly (a few seconds absolute max). Both of those services return a human-readable response and take too long to do it (I think fundamentally the reason is the checks they are doing just take a long time to do).

I think the NPM package you're referring to is this one https://github.com/emazzotta/lighthouse-badges which runs the tests then spits out some static images using our library and the reason they've chosen to do it that way is because it just takes too long to do the checks for it to be an ad=hoc service. I think using that lib to generate static images is probably your best option.

calebcartwright commented 3 years ago

Shall we close this given the limitations/challenges discussed above?