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

react-dev-profiler

v1.2.0

Published

Real-time React performance monitoring — frame times, FPS, DOM mutations, memory, and more. Zero overhead in production.

Readme

react-dev-profiler

Real-time React performance monitoring for development. Zero overhead in production.

npm version license

What it does

Wrap any part of your React app with <DevProfiler> and get a floating panel that shows:

  • Frame time & FPS — rolling graph with min/max/P99 stats
  • Renders per second — how often React commits
  • React Profiler — actual vs. base render duration, memoization gains
  • DOM — node count, mutation count, element dimensions
  • Memory — JS heap usage (Chrome only)
  • Long tasks — browser tasks exceeding 50 ms
  • Visual flash — brief outline pulse on DOM mutations
  • Data export — copy all stats as JSON to your clipboard
  • Draggable panel — grab the header and move it anywhere

Toggle it with Ctrl+I (or Cmd+I on Mac). In production, the component renders nothing — zero runtime cost.

Install

npm install react-dev-profiler

Usage

import { DevProfiler } from 'react-dev-profiler'

function App() {
  return (
    <DevProfiler>
      <YourApp />
    </DevProfiler>
  )
}

That's it. Open your app in dev mode and press Ctrl+I.

Position the panel

<DevProfiler position="top-right">
  <YourApp />
</DevProfiler>

Multiple instances

<DevProfiler id="sidebar" position="top-left">
  <Sidebar />
</DevProfiler>

<DevProfiler id="main" position="bottom-right">
  <MainContent />
</DevProfiler>

When more than one instance is active, each panel shows its ID as a badge.

Requirements

  • React 18+
  • Any bundler (Vite, webpack, Next.js, Astro, etc.)

How it works

<DevProfiler> wraps your children with React's built-in <Profiler> component and layers on a few browser APIs:

| API | What it measures | | ----------------------- | ----------------------------- | | requestAnimationFrame | Frame timing & FPS | | MutationObserver | DOM mutations & node count | | PerformanceObserver | Long tasks (>50 ms) | | performance.memory | JS heap size (Chrome only) | | ResizeObserver | Element dimensions & position |

All observers are created lazily (only when the panel is open) and cleaned up on close.

API

<DevProfiler>

| Prop | Type | Default | Description | | ------------- | --------------- | --------------- | ------------------------------------------ | | children | ReactNode | — | The subtree to profile | | position | PanelPosition | 'bottom-left' | Where to anchor the panel | | id | string | auto-generated | Instance label (shown with multi-panels) | | accentColor | string | '#6366f1' | Accent color for the toggle button's glow |

PanelPosition

type PanelPosition = 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right'

Exported types

import type { DevStats, ReactProfilerData, PanelPosition } from 'react-dev-profiler'

License

MIT — Frederic Denis (billywild87)