A CLI tool and library for gathering performance metrics via Lighthouse, with features for CI and result tracking.
PWMetrics is a command-line tool and Node.js library for gathering and analyzing web performance metrics using Google Lighthouse. It solves the problem of automating performance testing by providing features like multi-run median calculation, CI-friendly assertions, and integration with Google Sheets for result tracking.
Web developers and performance engineers who need to automate performance testing, integrate metrics into CI/CD pipelines, or track performance trends over time.
Developers choose PWMetrics for its straightforward automation of Lighthouse metrics, its focus on median-run reporting for stability, and its built-in integrations for result submission and trace management, which streamline performance monitoring workflows.
Progressive web metrics at your fingertipz
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Executes multiple Lighthouse runs and reports the median, reducing variance in performance data, as demonstrated by the --runs flag for more reliable metrics.
Supports expectations and fail-on-error flags for automated performance testing in CI pipelines, allowing teams to enforce performance budgets directly from the CLI.
Can submit results directly to Google Sheets for longitudinal tracking, with configurable options for spreadsheet IDs and median-only uploads, as shown in the sheets configuration.
Uploads Lighthouse traces to Google Drive and provides links to view them in Chrome DevTools Timeline Viewer, aiding in debugging performance issues with shared traces.
The README explicitly states it's deprecated in favor of Lighthouse CI, meaning no updates, bug fixes, or official support, which poses risks for production use.
Integrating with Google Sheets and Drive requires cumbersome OAuth credential management and client secret configuration, adding significant setup overhead.
Focuses on a fixed set of core metrics (e.g., FCP, LCP, TTI) and may not support newer Lighthouse metrics without code changes, as indicated by the static metrics object.
Heavily relies on Google services for data storage and trace management, making it difficult to switch to alternative platforms or self-hosted solutions.