npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

lighthouse-multi

v0.20.0

Published

lighthouse wrapper that runs x number of audits against a list of endpoints

Downloads

9

Readme

Quickstart:

npx lighthouse-multi --depth=10 --endpoints=http://www.example.com --output=reports

lighthouse-multi is a comparison tool that generates performance reports based on x number of lighthouse audits against a list of endpoints. When run, a JSON file is created that contains averaged metrics for each endpoint.

lighthouse-multi does three things:

  1. With the --depth parameter (optional), you can run x number of Lighthouse audits against a remote or local URL. Each audit generates a JSON file that is saved in a reports folder at the location where lighthouse-multi was run.
  2. With the --endpoints parameter (required), you can run audits against a list of different remote or local URLs. lighthouse-multi will run audits for each of these endpoints and will run x number of audits for each endpoint based on the number passed into the --depth parameter (if --depth is not provided, then only 1 audit is run per endpoint).
  3. Once lighthouse-multi finishes running all audits for each endpoint, it prints averaged performance metrics to the console for each metric. It also saves these averaged metrics to a JSON file in a reports folder at the location where lighthouse-multi was run. These metrics are calculated by taking all previously generated audits inside the reports folder for the given endpoint and averaging out performance metrics based on these audits.

Usage

Installation

To install:

npm install -g lighthouse-multi

or

yarn global add lighthouse-multi

Parameters

Most of the parameters that lighthouse-multi can take are wrapped arguments that are passed straight to Lighthouse. For more comprehensive usage, try the Lighthouse package. lighthouse-ci can also run multiple audits on multiple urls and can calculate the median values of these audits and is more comprehensive for pipeline use, but may require more work to get reporting on all performance metrics.

| option | type | required | default | description | |---------------------|---------|----------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | endpoints | string | yes | | This is a comma-separated list of endpoints you want to run Lighthouse audits against. If only testing one endpoint: --endpoints=http://www.example.com If testing more than one endpoint, separate each endpoint by a comma: --endpoints=http://www.example.com,http://www.google.com | | depth | number | no | 1 | This is the number of Lighthouse audits you want to run per endpoint. | | disableStorageReset | boolean | no | false | For urls that require credentials, this can allow credentials to persist on each audit. No value is needed for this flag: --disableStorageReset | | extraHeaders | string | no | | This is a comma-separated list of header=value key-value headers. Values that contain spaces should be wrapped in quotes. | | output | string | no | reports | This is the destination folder for the generated report. |