Run Lighthouse audits on every page of your site, not just the homepage.
Standard Lighthouse tools test one page at a time. But your site has hundreds—maybe thousands—of pages, and the 2024 Web Almanac specifically added secondary page analysis because homepage performance is often not representative of the entire site.
Your homepage might score 100. What about:
Each page type can have dramatically different performance characteristics.
Unlighthouse crawls your site and runs Lighthouse on every page automatically.
npx unlighthouse --site https://your-site.com
No installation required. Use npx:
npx unlighthouse --site https://your-site.com
Or install globally:
npm install -g unlighthouse
unlighthouse --site https://your-site.com
Create unlighthouse.config.ts:
export default {
site: 'https://your-site.com',
scanner: {
// Crawl settings
maxRoutes: 200,
samples: 1,
},
lighthouse: {
// Lighthouse settings
throttling: {
cpuSlowdownMultiplier: 4,
},
},
}
| Option | Description | Default |
|---|---|---|
--site | URL to scan | Required |
--urls | Specific URLs to test | All discovered |
--samples | Runs per URL | 1 |
--throttle | Simulate slow connection | true |
Test specific sections:
npx unlighthouse --site https://your-site.com --urls "/blog/**"
npx unlighthouse --site https://your-site.com --exclude "/admin/**"
The report shows:
Critical distinction: Google only uses field data (CrUX) for search ranking, not lab scores from Lighthouse.
| Aspect | Lab Data (Lighthouse) | Field Data (CrUX) |
|---|---|---|
| Source | Simulated tests | Real user visits |
| Used for ranking | No | Yes |
| Best for | Debugging issues | Measuring actual UX |
| Update frequency | Immediate | 28-day rolling average |
Lab testing with Unlighthouse helps you find and fix issues. Then monitor field data to verify improvements reached real users.
Lighthouse performance scoring weights metrics differently:
| Metric | Weight |
|---|---|
| Total Blocking Time (TBT) | 30% |
| Largest Contentful Paint (LCP) | 25% |
| Cumulative Layout Shift (CLS) | 25% |
| First Contentful Paint (FCP) | 10% |
| Speed Index | 10% |
Scores are derived from real website performance data on HTTP Archive:
Lighthouse scores can vary between runs. Google's guidance:
Unlighthouse defaults to running multiple samples and averaging for more stable results.
Run on every deploy to catch regressions:
name: Lighthouse Audit
on: [push]
jobs:
lighthouse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Unlighthouse
run: npx unlighthouse-ci --site ${{ env.SITE_URL }}
Set performance budgets to fail builds when scores drop:
// unlighthouse.config.ts
export default {
site: 'https://your-site.com',
ci: {
budget: {
performance: 80,
accessibility: 90,
},
},
}
| Feature | CLI | Cloud |
|---|---|---|
| Bulk scanning | Yes | Yes |
| Local setup | Required | Not required |
| Historical data | No | Yes |
| Scheduled scans | No | Yes |
| Team sharing | No | Yes |
| Alerts on regression | No | Yes |
Start with CLI. When you need history, scheduling, and team features, upgrade to Cloud.
How Unlighthouse compares to other tools:
| Tool | Bulk Testing | Pricing | Notes |
|---|---|---|---|
| Unlighthouse | Unlimited pages | Free (CLI) | Open source, self-hosted |
| PageSpeed Insights | 1 page/request | Free | 25,000 requests/day API limit |
| DebugBear | 10,000/mo | $99/mo | Managed service |
| Calibre | 5 sites | $150/mo | Managed service |
| SpeedCurve | Varies | $20-500/mo | RUM + synthetic |
Context for your scores from HTTP Archive 2024:
| Metric | Mobile Pass Rate | Desktop Pass Rate |
|---|---|---|
| Core Web Vitals (all 3) | 48% | 54% |
| LCP | 59% | 72% |
| CLS | 79% | 72% |
| INP | 74% | 97% |
If you're beating these numbers, you're ahead of most of the web.
npx unlighthouse --site https://your-site.comCore Web Vitals Guide
Master Core Web Vitals - Google's page experience metrics. Learn LCP, CLS, INP thresholds, how to measure them, and fixes that improve rankings and conversions.
Accessibility
Master web accessibility with Lighthouse. Learn how accessibility audits work, why they matter for users and SEO, and how to fix common issues.