explaingit

himanshu-dixit/lighthouse-ci-action

Analysis updated 2026-07-18 · repo last pushed 2024-07-18

JavaScriptAudience · developerComplexity · 2/5DormantSetup · easy

TLDR

A GitHub Action that runs Google Lighthouse audits on your web pages every push or PR, failing the build if performance budgets are exceeded.

Mindmap

mindmap
  root((repo))
    What it does
      Runs Lighthouse audits
      Checks performance budgets
      Fails failing builds
    Tech stack
      GitHub Actions
      Lighthouse
      JavaScript
    Use cases
      Catch perf regressions
      Test preview deploys
      Enforce page weight limits
    Audience
      Web teams
      Frontend developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically fail a pull request when a page's load time or size exceeds a set budget.

USE CASE 2

Catch performance regressions like a newly added heavy image library before they ship.

USE CASE 3

Audit static site builds or preview deployments from platforms like Netlify.

USE CASE 4

Run multiple Lighthouse passes per URL to avoid flaky single-run results.

What is it built with?

JavaScriptGitHub ActionsLighthouseNode.js

How does it compare?

himanshu-dixit/lighthouse-ci-action3rd-eden/ircb.ioa15n/a15n
LanguageJavaScriptJavaScriptJavaScript
Last pushed2024-07-182016-11-162019-04-07
MaintenanceDormantDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Single-run performance checks can be flaky, configure multiple runs per URL for reliability.

The README doesn't specify license details.

In plain English

Lighthouse CI Action is a tool that automatically checks the speed and quality of your web pages every time you push code to GitHub. Instead of manually running performance tests, you list the URLs you care about, and this action runs Google's Lighthouse audit against them on each push or pull request. If a page loads too slowly or exceeds a performance budget you set, the check fails right in your GitHub workflow. You set it up by adding a small configuration file to your repository that lists the URLs to test. You can also define a performance budget, such as limiting total page weight to 200 kilobytes. When the action runs, it loads each URL in a headless browser, measures things like load time and page size, and compares the results against your budget or custom assertions. Results can be saved as downloadable artifacts or uploaded to a temporary public link or a private server for your team to review. This is useful for teams shipping web apps who want to prevent performance regressions before they reach users. For example, if a developer adds a heavy image library that bloats the page, the action catches it and flags the build as failing. It works with live URLs, static site builds that haven't been deployed yet, and preview deployments from platforms like Netlify. The project is built as a GitHub Action, meaning it plugs directly into GitHub's automation system with minimal setup, initializing in under a second. It was built in collaboration with the Lighthouse team and Treo, a web performance monitoring company. One notable tradeoff: single-run performance tests can be flaky, so the tool supports multiple runs per URL for more reliable assertions.

Copy-paste prompts

Prompt 1
Help me add this Lighthouse CI Action to my GitHub workflow with a config file listing my URLs.
Prompt 2
Show me how to set a 200KB page weight budget and fail the build if it's exceeded.
Prompt 3
Explain how to configure this action to test a Netlify preview deployment URL.
Prompt 4
Walk me through interpreting the Lighthouse results this action uploads as artifacts.
Prompt 5
Suggest performance budget values appropriate for a typical marketing landing page.

Frequently asked questions

What is lighthouse-ci-action?

A GitHub Action that runs Google Lighthouse audits on your web pages every push or PR, failing the build if performance budgets are exceeded.

What language is lighthouse-ci-action written in?

Mainly JavaScript. The stack also includes JavaScript, GitHub Actions, Lighthouse.

Is lighthouse-ci-action actively maintained?

Dormant — no commits in 2+ years (last push 2024-07-18).

What license does lighthouse-ci-action use?

The README doesn't specify license details.

How hard is lighthouse-ci-action to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is lighthouse-ci-action for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.