Web ยท sync
lighthouse-audit
Full Google Lighthouse run on any URL. Scores + Core Web Vitals.
Category scores
About
lighthouse-audit wraps the official `lighthouse` npm package โ the same engine that powers PageSpeed Insights, Chrome DevTools' Lighthouse tab, and Web.dev measurement. Lighthouse spawns its own headless Chrome via chrome-launcher.
Returns: โข `scores` โ 0-100 per category (performance, accessibility, best-practices, seo). โข `metrics` โ Core Web Vitals: First Contentful Paint, Largest Contentful Paint, Total Blocking Time, Cumulative Layout Shift, Speed Index, Time to Interactive. All values in ms (CLS is unitless 0-1). โข `network` โ total bytes downloaded, total request count. โข `opportunities` โ top 10 perf optimization opportunities sorted by estimated savings (image compression, unused JS, render-blocking resources, etc.). โข `failedAccessibility` โ failed a11y audits filtered to the high-signal categories (ARIA, contrast, alt text, labels).
Device: `mobile` (default โ same as PageSpeed Insights) or `desktop`. Slower than the other browser-dep agents (~10-20s per run) because Lighthouse intentionally simulates a slow 4G connection + CPU throttling to get representative scores.
Use it for: pre-launch audits, CI gates on perf budgets, dashboards showing competitor scores, SEO monitoring.
{
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"device": {
"type": "string",
"enum": [
"mobile",
"desktop"
],
"default": "mobile"
},
"categories": {
"type": "array",
"items": {
"type": "string",
"enum": [
"performance",
"accessibility",
"best-practices",
"seo"
]
},
"default": [
"performance",
"accessibility",
"best-practices",
"seo"
]
}
}
}These are descriptive previews. Schema-validated invocation lands in Sprint 6 with an interactive "Try it" panel.
Reviews (0)
No reviews yet โ be the first to share your experience.