Skip to content

checkson-io/checkson-pagespeed-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checkson Check for monitoring the speed and best practices of a website

This check uses Google's PageSpeed API (which in turn is built on Lighthouse). Occasional calls to this API (e.g. few minutes) are allowed without an API key.

Use this check on checkson.io to monitor if your technical SEO, performance or best practices do not fall below a thresholds.

To determine the threshold, it's a good idea to go to pagespeed.web.dev and analyze your website initially as a baseline. Based on the percentages from the report, choose a value between 0.0 (0%) and 1.0 (100%) for the SCORE_THRESHOLD.

Environment variables

Variable Description
URL The URL to check
CATEGORY One of accessibility, best-practices, performance, pwa, seo. Default is performance
STRATEGY One of mobile, desktop, Default is desktop
SCORE_THRESHOLD Number between 0.0 and 1.0

Use check on Checkson

This check can be used on checkson.io (or anywhere else) with the following Docker image:

ghcr.io/checkson-io/checkson-pagespeed-check:main

Run check locally

This checks the performance score of a website is above 90%.

docker run \
  --env URL=https://nytimes.com \
  --env SCORE_THRESHOLD=0.9 \
  --rm \
  -it \
  ghcr.io/checkson-io/checkson-pagespeed-check:main