Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lighthouse-plugin-user-flow-metrics

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lighthouse-plugin-user-flow-metrics

Lighthouse plugin for auditing custom performance metrics.

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

lighthouse-plugin-user-flow-metrics

Lighthouse plugin for auditing custom performance metrics.

report example

Usage

npm install -D lighthouse-plugin-user-flow-metrics

Add the plugin to your Lighthouse configuration:

module.exports = {
  extends: 'lighthouse:default',
  settings: {
    plugins: ['lighthouse-plugin-user-flow-metrics'],
  },
}

Create a budget file:

{
  "measurement_page::form_disabled": 1700,
  "measurement_page::render": 20,
  "measurement_page::change_of_tq_unit": 1000,
  "user_input::increase_value_by_btn": 10
}

Let the plugin know where your budget file is located:

process.env.LIGHTHOUSE_USER_FLOW_BUDGETS = '/path/to/budget/file'

Instrument your code with marks and measures:

performance.mark('start work')
// do some work
performance.measure('My heavy work', 'start work')

Run Lighthouse configured with this plugin on your page to get custom performance metrics.

FAQs

Package last updated on 29 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc