You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
🚥 Convert Google PageSpeed Insights audit scores of your websites to an SVG. Embed them on your website or README files. Keep results updated with GitHub Actions.
Generate an SVG of your website's PageSpeed Insights scores
Guages
PWA
API and Usage
Important note: Do not embed url, instead embed generated svg
It takes time to perform audits of website. So embedding it directly would not render due to server timeout. Instead you must first visit and download the svg from the API with the desired parameters. And then embed that svg to your files.
Typically it takes a few seconds to obtain the results from the pagespeed API
Some servers don't allow (eg. google.com) or delay (eg. cloudflare) pagespeed crawler, so it may result in unexpected results.
The results may fluctuate slightly sometimes, you can use thetests parameter to get more accurate perfomance audit results.
API url
The API is called fromhttps://pagespeed-insights-svg.glitch.me
Simple usage
In simple form it will return result for all categories for desktop version of your website. Replaceyour_website_url with your website's url
Default result is theme-agnostic i.e. looks good in both light and dark environment. But you can force one of two additional themes that arelight anddark.
Strategy specifies the type of device your website is audited for. You can specify strategy as eithermobile ordesktop. If none is specifieddesktop is chosen
By default all the categories are evaluated, but you can specify which categories to evaluate. The category parameter is a number. This is 5-bit number in binary, where if a bit is 1 then the corresponding category will be included.For example
+------------+------------+------------+------------+------------+| Perf. | Acc. | Best pr. | SEO | PWA |+------------+------------+------------+------------+------------+| 1 | 0 | 1 | 1 | 1 | => 0x10111 => 23+------------+------------+------------+------------+------------+
🚥 Convert Google PageSpeed Insights audit scores of your websites to an SVG. Embed them on your website or README files. Keep results updated with GitHub Actions.