Skip to content

nizarmah/wackylighthouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wackylighthouse

Simulate Lighthouse responses for testing

Usage

Request the page you need.

For example, to test a valid response:

npx lighthouse https://wackylighthouse.com

To test a response with no FCP:

npx lighthouse https://wackylighthouse.com/no-fcp.html

You can even run it through Pagespeed Insights:

curl https://www.googleapis.com/pagespeedonline/v5/runPagespeed\?url\=https://wackylighthouse.com

Development

Run the server

Start a local server, because Lighthouse can only run on HTTP/HTTPS.

go run cmd/main.go

Run Lighthouse

npx lighthouse http://localhost:8080

Production

Serve the ./static directory.