Skip to content

Scan your entire website with lighthouse and report based on Page Speed Insight results

License

Notifications You must be signed in to change notification settings

WalrusSoup/LighthouseSiteScanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lighthouse Site Scanner

A simple tool to read a sites sitemap.xml, parse it, and then run each page through a local chromium instance and measure it's lighthouse performance. The performance is also output to the console to show which metrics are failing according to the threshold for 90+ mobile performance.

Reason

This was a replacement for running page speed insights via google when doing testing of site-wide performance. It also was meant to replace functions of certain products such as sitebulb which were simply way too slow.

Running The Tool

After running npm install, simply call the tool with -u and feed it the main sitemap url. It will use this to parse all URL's and begin running lighthouse.

npm install
node lighthouse.js -u [sitemap_url_here]
// with exclusions of pages under /blog/ and /author/
node lighthouse.js -u [sitemap_url_here] -x /blog/ /author/

Output

A reports folder will be generated with timestamp containing the saved lighthouse results separated into 2 folders: pass and fail. The URL's will be the slugged final URL of the page that was scanned. The contents are the same results you would see on page speed insights.

About

Scan your entire website with lighthouse and report based on Page Speed Insight results

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published