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 🙏

© 2026 – Pkg Stats / Ryan Hefner

cwvdashboard

v1.0.0

Published

A lightweight, customizable dashboard that visualizes Core Web Vitals across your Next.js app, enabling teams to monitor, debug, and improve page-level performance at a glance. Displays route-level performance metrics collected via CWV instrumentation. De

Readme

📊 Cwv Dashboard

A lightweight Next.js dashboard utility to visualize Core Web Vitals (CWV) scores and cwv report generated by cwvguard or manually provided to it.
Ideal for developers, QA teams, and performance engineers who want an at-a-glance view of route-level CWV performance.


✨ Dashboard

Route Table Bar Graphs Line Graphs Pie Charts Filters Filters

Note: The status shown in the table will only be applicable if you are using cwvguard's middleware. All the columns in the metrics table also can be sorted on clicking the column heading.


✨ Features

  • 📊 Accepts cwv-scores-manual.json generated by cwvguard
  • 📊 Accepts a optional config array as threshold prop to correctly visualize your data
  • 🧩 Provides a plug-and-play dashboard component (<CWVDashboard />)
  • 📈 Displays per-route CWV scores and blocking status
  • ⚡ Minimal dependency, fast loading & SSR-friendly

📦 Installation

npm install cwvdashboard

🔧 Setup & Integration

The dashboard reads the same cwv-scores-manual.json file generated by cwvguard or manually created.

  1. Install cwvdashboard in your Next.js project
  2. Ensure blocked-routes.json exists at /public/blocked-routes.json
  3. Import and render the component in any route

🧱 Usage

1. Render in a route or page

// pages/cwv.tsx or app/cwv/page.tsx

import { CwvDashboard } from 'cwvdashboard'
import cwvreport from '/public/cwv-scores-manual.json'

// this config id optional and customizable according to your requirement
const config ={
  LCP:{
    green: 2.5,
    red:4 //if value exceeds this the metric is considered breeched
  },
  FCP:{
    green: 1.8,
    red:3 //if value exceeds this the metric is considered breeched
  },
  INP:{
    green: 200,
    red:500 //if value exceeds this the metric is considered breeched
  },
  CLS:{
    green: 0.1,
    red:0.25 //if value exceeds this the metric is considered breeched
  },
  FID:{
    green: 100,
    red:300 //if value exceeds this the metric is considered breeched
  }
}

const dashboard = () => {
  return (
    <div>
      <CwvDashboard cwvreport={cwvreport} threshold={config}/>
    </div>
  )
}

export default dashboard

Note: a default config as per the industry standards are already pre-configured, so passing this is optional


📁 Structure Expected

Make sure this file is available and generated via cwvguard or manually created:

/public/cwv-scores-manual.json

Sample content:

[
 {
     "url": "/",
     "LHS_Score": 70,
     "LCP": 6.106800137499999,
     "FCP": 1.9676656225000002,
     "INP": 6129.401651749999,
     "CLS": 0.02978873885368724,
     "FID": 89,
     "blocked": false
   },
   ...
]

🎨 Theming

  • You can wrap it in your own layout or Tailwind classes for design customization

🔗 Related Packages


📃 License

ISC © Karan Bengani