@lhci/cli
[](https://badge.fury.io/js/%40lhci%2Fcli)
This package has a good security score with no known vulnerabilities.
Community Reviews
Solid CI integration for Lighthouse with some configuration friction
The documentation covers most use cases, but the initial setup requires piecing together examples from different sections. The error messages during assertion failures are clear and actionable, showing you exactly which metrics failed and by how much. The autorun command is particularly convenient for simple setups, handling collection and assertions in one step.
Type definitions are available but minimal - mostly for configuration objects. IDE support is adequate for the config file structure, though you'll reference docs frequently for advanced options. The wizard command helps with initial setup, but you'll likely need to manually tweak the generated config. Integration with GitHub Actions and other CI providers is well-documented with working examples.
Best for: Teams wanting to enforce performance budgets in CI/CD pipelines with automated Lighthouse audits and historical tracking.
Avoid if: You need a programmatic API for custom integrations or prefer simpler one-off Lighthouse runs without CI infrastructure.
Solid Lighthouse CI automation with some operational rough edges
Configuration via lighthouserc.json is flexible but watch out for timeout defaults - the default 60s can be too aggressive for slower environments. The assertion system is powerful for catching performance regressions, though error messages when budgets fail could be more actionable. Logging is adequate but basic; you'll want to wrap calls with your own instrumentation for proper observability in CI/CD.
Resource cleanup is generally reliable, but zombie Chrome processes occasionally survive failed runs. The server upload functionality works well once configured, though connection pooling isn't exposed for tuning. Breaking changes between 0.x versions have been minimal, making upgrades relatively painless.
Best for: Teams needing automated Lighthouse performance testing in CI/CD pipelines with control over assertions and historical tracking.
Avoid if: You need real-time performance monitoring or sub-second runtime constraints - this is a batch-oriented tool.
Solid Lighthouse CI tool with good docs, but config can be tricky
The documentation covers most common scenarios well, with clear examples for different CI providers. However, the configuration options can be overwhelming initially—there are many ways to configure the same thing (lighthouserc.js vs lighthouserc.json vs CLI flags), and it's not always obvious which takes precedence. Error messages when URLs fail or assertions break are generally helpful, showing exactly which metric failed and by how much.
Debugging can be challenging when dealing with authentication or dynamic pages. The `--debug` flag helps, but you often need to experiment with puppeteer script options. GitHub issues get responses, though not always quickly. Stack Overflow coverage is thin, so you'll rely heavily on official docs and issue threads.
Best for: Teams wanting to automate Lighthouse performance testing in CI/CD pipelines with budget enforcement.
Avoid if: You need extensive community support resources or only want one-off manual Lighthouse audits.
Sign in to write a review
Sign In