Navigate:
Lighthouse
~$LIGHT0.1%

Lighthouse: Automated web performance auditing tool

Open-source tool that analyzes web pages for performance, accessibility, and SEO, generating actionable reports.

LIVE RANKINGS • 12:18 PM • STEADY
OVERALL
#276
DEVELOPER TOOLS
#54
2
30 DAY RANKING TREND
ovr#276
·Devel#54
STARS
29.8K
FORKS
9.7K
7D STARS
+27
7D FORKS
-3
See Repo:
Share:

Learn more about Lighthouse

Lighthouse is a web auditing tool developed by Google that runs automated tests against web pages to assess performance, accessibility, progressive web app features, SEO, and best practices. It operates by controlling a headless Chrome browser instance, collecting runtime data through the Chrome DevTools Protocol, and analyzing page behavior during load and interaction phases. The tool generates detailed reports with performance scores, diagnostic information, and specific recommendations for optimization. Lighthouse can be executed through Chrome DevTools, as a Node.js CLI tool, browser extension, or integrated into CI/CD pipelines for continuous monitoring.

Lighthouse

1

Multiple Integration Options

Available as Chrome DevTools integration, Node.js CLI, browser extension, and programmatic API. Supports both interactive analysis and automated testing workflows.

2

Comprehensive Audit Categories

Evaluates performance metrics, accessibility compliance, PWA features, SEO factors, and development best practices in a single analysis. Provides scored results with specific improvement recommendations.

3

Chrome DevTools Protocol

Leverages Chrome's debugging protocol to collect real browser performance data including network timing, JavaScript execution, and rendering metrics. Supports custom audit development and configuration.


const lighthouse = require('lighthouse');
const chromeLauncher = require('chrome-launcher');

async function runLighthouseAudit() {
  // Launch Chrome instance
  const chrome = await chromeLauncher.launch({chromeFlags: ['--headless']});
  
  const options = {
    logLevel: 'info',
    output: 'html',
    onlyCategories: ['performance'],
    port: chrome.port,
  };
  
  // Run Lighthouse audit
  const runnerResult = await lighthouse('https://example.com', options);
  
  // Extract scores and metrics
  const reportHtml = runnerResult.report;
  const score = runnerResult.lhr.categories.performance.score * 100;
  
  console.log(`Performance score: ${score}`);
  console.log(`First Contentful Paint: ${runnerResult.lhr.audits['first-contentful-paint'].displayValue}`);
  
  await chrome.kill();
  return runnerResult;
}

runLighthouseAudit().catch(console.error);

vv13.0.1

Fixed incorrect DPR used for responsive images advice.

  • fix incorrect dpr used for responsive images advice
vv13.0.0

Removed several performance audits that have been replaced by performance insights.

  • performance: remove audits replaced by performance insights
  • remove preload-fonts, uses-rel-preload audits
  • remove font-size audit
vv12.8.2

Improved error handling and insights display with fixes for large errors and animation detection.

  • errors-in-console: truncate large errors
  • insights: passing score (not n/a) for empty results
  • non-composited-animations: separate custom CSS properties

See how people are using Lighthouse

Loading tweets...


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers