0.1.0 • Published 5 years ago

pagespeed-score-local v0.1.0

Weekly downloads
3
License
MIT
Repository
-
Last release
5 years ago

pagespeed-score-local

Local Google PageSpeed Insights (PSI) score and metrics CLI

Get a score by running Lighthouse locally instead of the PSI API.

This a local version of the pagespeed-score module.

Why?

The goal is to get a PSI score:

  • in CI and without public URL (e.g. staging environment on a private network)
  • faster if possible (the Google API takes long to respond)

How

  • using the same version of LightHouse as PSI
  • using LightRider mobile config from the lighthouse module
  • faster run by only getting metrics needed for the performance score
  • doing multiple runs and outputting statistics

Ideas/TODO

  • auto-calibrating CPU throttling using benchmark index
  • maybe support more Lighthouse cli-flags