랭킹으로 돌아가기

GoogleChrome/lighthouse-ci

JavaScript

Automate running Lighthouse for every commit, viewing the changes, and preventing regressions

lighthousewebperf
스타 성장
스타
7k
포크
710
주간 성장
이슈
214
2k4k6k
2019년 4월2021년 9월2024년 2월2026년 7월
아티팩트npmnpm install lighthouse-ci
README

Lighthouse CI

Overview

Lighthouse CI is a suite of tools that make continuously running, saving, retrieving, and asserting against Lighthouse results as easy as possible.

Quick Start

To get started with GitHub actions for common project configurations, add the following file to your GitHub repository. Follow the Getting Started guide for a more complete walkthrough and instructions on other providers and setups.

.github/workflows/ci.yml

name: CI
on: [push]
jobs:
  lighthouseci:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 18
      - run: npm install && npm install -g @lhci/cli@0.15.x
      - run: npm run build
      - run: lhci autorun

Features

  • Get a Lighthouse report alongside every PR.
  • Prevent regressions in accessibility, SEO, offline support, and performance best practices.
  • Track performance metrics and Lighthouse scores over time.
  • Set and keep performance budgets on scripts and images.
  • Run Lighthouse many times to reduce variance.
  • Compare two versions of your site to find improvements and regressions of individual resources.

Screenshot of the Lighthouse CI github app UI Screenshot of the Lighthouse CI server dashboard UI Screenshot of the Lighthouse CI assertion output Screenshot of the Lighthouse CI server diff UI

Documentation

If you're already familiar with continuous integration and have an existing process, start with Getting Started.

If you're not familiar with continuous integration, start with Introduction to CI.

A collection of projects using Lighthouse CI written by the community. If you're using Lighthouse CI in your open source project, open a PR to add it here!

  • Lighthouse CI GitHub Action - Automatically run Lighthouse CI on every PR with GitHub Actions, no infrastructure required.

  • Lighthouse CI Starter Example - A minimal example repo that you can use as a template when starting from scratch, offers a beginner-friendly quickstart guide using create-react-app.

  • Lighthouse CI Compare Action - A Lighthouse CI Github Action that compares the current commit run against the ancestor commit and creates an object with the differences and a Markdown table that you can use for different purposes.

Community Guides

A collection of unofficial blog posts, tutorials, and guides written by the community on using Lighthouse CI. If you've written up a guide to using Lighthouse CI in your project, open a PR to add it here!

NOTE: This is not official documentation. You're encouraged to familiarize yourself with Lighthouse CI and read through Getting Started before continuing.

Contributing

We welcome contributions to lighthouse-ci! Read our contributing guide to get started.

관련 저장소
QwikDev/partytown

Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉

TypeScriptnpmMIT Licensewebworker3rd-party
partytown.qwik.dev
13.7k449
addyosmani/web-quality-skills

Agent Skills for optimizing web quality based on Lighthouse and Core Web Vitals.

ShellMIT Licenseaccessibilityagent-skills
2.5k231
tastejs/hacker-news-pwas

HNPWA - Hacker News readers as Progressive Web Apps 📱

HTMLhackernews
hnpwa.com
2.4k205
GoogleChromeLabs/lighthousebot

Run Lighthouse in CI, as a web service, using Docker. Pass/Fail GH pull requests.

JavaScriptnpmApache License 2.0lighthouseci
2.2k125
lirantal/is-website-vulnerable

finds publicly known security vulnerabilities in a website's frontend JavaScript libraries

JavaScriptnpmApache License 2.0security-vulnerabilitiessecurity
2k128
addyosmani/puppeteer-webperf

Automating Web Performance testing with Puppeteer 🎪

JavaScriptnpmApache License 2.0web-performancepuppeteer
1.9k91
microlinkhq/browserless

The headless Chrome/Chromium driver on top of Puppeteer. Take screenshots, generate PDFs, extract text and HTML with a production-ready API.

JavaScriptnpmMIT Licenseautomationbrowser-automation
browserless.js.org
1.8k92
bamlab/flashlight

📱⚡️ Lighthouse for Mobile - audits your app and gives a performance score to your Android apps (native, React Native, Flutter..). Measure performance on CLI, E2E tests, CI...

TypeScriptnpmMIT Licenseandroidperformance
docs.flashlight.dev
1.6k48
treosh/lighthouse-ci-action

Audit URLs using Lighthouse and test performance with Lighthouse CI.

JavaScriptnpmMIT Licenselighthousegithub-actions
1.3k92
paulirish/pwmetrics

Progressive web metrics at your fingertipz

TypeScriptnpmApache License 2.0metricsperformance
1.2k69