# Google Lighthouse Puppeteer

Google Lighthouse Puppeteer is a Node.js package and Docker image that runs Google Lighthouse audits through Puppeteer and headless Chrome. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/5158/google-lighthouse-puppeteer

## Description

Google Lighthouse Puppeteer is a Node.js package and Docker image that runs Google Lighthouse audits through Puppeteer and headless Chrome. It automatically tests website performance, accessibility, and SEO, then generates a detailed report with improvement suggestions for developers and site owners.

## Platform availability

Available on 0 of 10 platforms.

## Health score

45/100 (Fair), based on 4 of 5 factors.
- Maintained: 61 (last commit 143 days ago)
- Popular: 34 (51 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 48 (no serious findings, 13 minor, CI, OpenSSF Scorecard 2.9/10)

## Links

- GitHub: https://github.com/femtopixel/google-lighthouse-puppeteer
- Docker Hub: https://hub.docker.com/r/femtopixel/google-lighthouse-puppeteer
- Official website: https://brands.jaymoulin.me/femtopixel/google-lighthouse-puppeteer

## Common questions

### How do I install google-lighthouse-puppeteer globally with npm?

The page shows installing it globally with npm install -g google-lighthouse-puppeteer --unsafe-perm=true. This is described as a single-line npm install command.

### Can google-lighthouse-puppeteer generate reports for more than one URL?

Yes, the package generates reports on multiple URLs and can be used with or without authentication.

### How can I test a page behind a login?

Pass a Puppeteer script with --puppeteer-script so the test can sign in before Lighthouse runs. Without this, Lighthouse may only see the login page or fail on protected pages.

### Why doesn’t my Puppeteer browser environment affect Lighthouse’s emulation?

Lighthouse applies its own emulation settings to the page regardless of the environment you set up with Puppeteer beforehand. To use desktop emulation, use Lighthouse’s desktop config.

### Can I inject CSS or JavaScript before Lighthouse audits a page?

The documentation shows how to inject CSS into the page before Lighthouse audits the page. A similar approach can be taken for injecting JavaScript.

## Alternatives

- GTmetrix: GTmetrix is a free tool that analyzes your page's speed performance.
- Google Lighthouse: Google Lighthouse is a free open-source audit tool that evaluates web pages and web apps for performance, accessibility, SEO, and developer…
- PageSpeed Insights
- Pingdom: Monitors uptime, downtime, and website performance in real time using synthetic and real user data, with instant alerts, customizable repor…
- Screaming Frog SEO Spider: The Screaming Frog SEO Spider is a small desktop program (PC or Mac) which crawls websites’ links, images, CSS, script and apps from an SEO…
- Web Check

---
Source: Our Local Host (https://ourlocalhost.com/app/5158/google-lighthouse-puppeteer), the self-hosted and open-source app directory.
