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

jankmeter

v0.1.6

Published

Real-time performance monitoring toolbar for React apps

Readme

jankmeter

Real-time performance monitoring toolbar for React apps. FPS, jank %, input delay, memory, network, React renders, and hydration timing — all in one zero-config overlay. Inspired by Linear's developer toolbar and built by dylsteck.

Demo

https://github.com/user-attachments/assets/f3f2d6c2-c7b6-489d-b869-9a07f978f4c9

Quick Start

React Component (recommended)

// App.tsx or layout.tsx
import { JankMeter } from 'jankmeter/react';

export default function App() {
  return (
    <>
      <JankMeter />
      {/* your app */}
    </>
  );
}

Vite Plugin

// vite.config.ts
import { jankMeter } from 'jankmeter/vite';

export default {
  plugins: [jankMeter()],
};

For callbacks like onMetrics, use init() directly; the plugin only supports serializable config.

Next.js (App Router)

// app/layout.tsx
import { JankMeter } from 'jankmeter/next';

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <JankMeter />
        {children}
      </body>
    </html>
  );
}

Script

import { init, destroy, getMetrics } from 'jankmeter';

init({
  onMetrics: (m) => console.log(m),
});

// Later: destroy();

Metrics

| Metric | Source | Browsers | |--------|--------|----------| | FPS | requestAnimationFrame rolling window | All | | Jank % | Dropped frames / expected frames | All | | Delay | Event Timing API (INP-style) | Chrome 96+ | | Memory | performance.memory | Chrome only | | Network | fetch/XHR instrumentation + PerformanceObserver | All | | React | bippy + DevTools hook | All (with React) | | Hydration | First commit timing | All (with SSR) |

Configuration

interface JankMeterConfig {
  enabled?: boolean;        // default: true
  shortcut?: string;        // default: 'Ctrl+Shift+M' — supports 'F2', 'Ctrl+Shift+K', etc.
  throttleMs?: number;      // DOM update interval, default: 500
  maxHistory?: number;      // sparkline data points, default: 60
  onMetrics?: (metrics: AllMetrics) => void;
}

Features

  • Zero config — drop in and go
  • Shadow DOM — styles never leak into your app
  • Auto-calibrates — detects 60/90/120/144Hz displays
  • Keyboard shortcutCtrl+Shift+M by default, configurable (e.g. F2, Ctrl+Shift+K)
  • Minimize to dot — severity-colored indicator
  • Download — export metrics as JSON
  • Network URL redaction — query strings and fragments stripped before storage to avoid leaking tokens in metrics/downloads
  • Production safe — three layers of tree-shaking (conditional exports, runtime guard, sideEffects: false)
  • SSR safe — no-ops on the server

Webpack Plugin

// webpack.config.js
const { JankMeterWebpackPlugin } = require('jankmeter/webpack');

module.exports = {
  plugins: [new JankMeterWebpackPlugin()],
};

Requires html-webpack-plugin. Dev mode only — automatically disabled in production builds. For callbacks like onMetrics, use init() directly; the plugin only supports serializable config.

Programmatic API

import { getMetrics } from 'jankmeter';

const snapshot = getMetrics();
// { fps, delay, memory, network, react, hydration }

Browser Support

| Browser | FPS | Delay | Memory | Network | React | |---------|-----|-------|--------|---------|-------| | Chrome 96+ | Full | Full | Full | Full | Full | | Firefox | Full | N/A | N/A | Full | Full | | Safari | Full | N/A | N/A | Full | Full | | Edge | Full | Full | Full | Full | Full |

Contributing

See CONTRIBUTING.md for how to contribute.

License

MIT