ReactPulse
Open-source npm package. An open-source debugging and performance toolkit for React, published on npm as reactpulse-devtools (MIT). Hooks record every committed render and explain why it happened, labelling causes as certain or probable instead of guessing, flag slow renders and warn about leaked timers and listeners. A lazy-loaded dashboard adds a component list, timeline and performance view, plus JSON report export and import. Written in TypeScript on public React APIs only: no runtime dependencies, about 4.5 KB gzip for the main hook, and off in production builds. Works with React 18 and 19, Next.js and, in the 0.2.0 source, React Native. I also built its documentation and live-demo site.
Overview
An open-source debugging and performance toolkit for React, published on npm as reactpulse-devtools (MIT). Hooks record every committed render and explain why it happened, labelling causes as certain or probable instead of guessing, flag slow renders and warn about leaked timers and listeners. A lazy-loaded dashboard adds a component list, timeline and performance view, plus JSON report export and import. Written in TypeScript on public React APIs only: no runtime dependencies, about 4.5 KB gzip for the main hook, and off in production builds. Works with React 18 and 19, Next.js and, in the 0.2.0 source, React Native. I also built its documentation and live-demo site.
Stack
TypeScript, React, npm package, Open source, Next JS, React Native, Vite, Vitest, tsup.
Links
Documentation and demo site
The site that introduces the package: one page that doubles as the docs, with a live demo, copyable install commands for four package managers, a full API reference and the limits stated plainly. It has a light and a dark theme.
Landing hero
A one-line promise, a short honest description, an install command with npm, pnpm, yarn and bun tabs and a copy button, and calls to action (Get started, Try the live demo, GitHub, npm). Badges (TypeScript-first, ESM + CJS, tree-shakeable, no runtime dependencies, Next.js ready, React Native dashboard) sit above a strip of measured numbers: 4.5 KB gzip, 0.8 µs per render while disabled, 0 runtime dependencies and 155 tests run on two React versions.
Light and dark theme
A switch in the header restyles the whole page, including code blocks and tables, and the embedded dashboard has its own theme control, so the demo can be shown either way.
Why ReactPulse
Eight benefit cards: find the cause and not just the count, catch slow renders early, small and tree-shakeable, safe by design, zero cost in production, honest about uncertainty, works where you work, and share what you found.
All the features
A grouped overview of everything in the package: render tracking, "why did this render?", performance monitoring, the developer dashboard, memory-leak warnings, debugging hooks, reports and control, and React Native.
Use cases
Six concrete situations with code you can paste: remove avoidable re-renders, find the component that makes a page feel slow, understand state, context and store churn, catch leaks while developing, hand a QA or performance report to a teammate, and measure a whole subtree or ship the dashboard to staging.
Step-by-step install guide
From an empty project to a first render report: a requirements table, the install command in four package managers, tracking one component with no provider, adding the provider for the dashboard, making the reasons exact, tuning configuration, framework notes and troubleshooting.
API reference
Every hook with its purpose, the useRenderTracker options (props, state, context, deps, threshold, compareDepth, ignoreProps, log, onRender, onSlow), the provider's props and the full configuration table with defaults, in copyable code blocks.
Next.js guide
Working examples for the App Router (a Server Component layout) and the Pages Router, a note that the package ships a "use client" directive, and the gotchas: config passed from a Server Component must be serialisable, and nothing runs on the server.
Production, size and speed
How it behaves in production (off by default, dashboard replaced by a tiny stub, an explicit loader to ship it to staging), a measured bundle-size table for each import in gzip and brotli, and the measured runtime overhead per render.
Honest limits
A section on what it does not do: no Fiber access, "parent" and "internal" are inferences, duration is an upper-bound span, leak detection is partial and it is not a replacement for React DevTools. A debugging tool you can trust says where it stops.
What was actually tested
A compatibility table that lists only what was verified: React 18.3.1 and 19.3.1, StrictMode, SSR, Vite 8, Next.js 16.4 with both routers, Node 18+ and the React Native entry, with what has not been verified said outright.
FAQ
Answers to what developers ask first: will it slow my app or end up in production, do I need the provider, why does it say "probable", does it work with Redux or Zustand, is it a replacement for React DevTools, does it work with React Native, why the package is called reactpulse-devtools, and how to contribute.
Live demo and dashboard
The demo on the site uses the real hooks and the real dashboard from reactpulse-devtools/devtools, not a mock-up. These screenshots are me using it: triggering renders, a slow render and a leak, then opening each tab.
Try it right here
Five small scenarios (state change, props changes, "why did this render?", slow render and leak warning) drive real tracked components, and the dashboard beside them updates live: every component with its render count, average and maximum duration and slow badges, and the stats of the selected one.
Why each render happened
Selecting a component shows its render history with a reason for every render, and previous and current values side by side. Here a new-but-equal array is reported as "props changed: tags, new identity but deep-equal values, this render may be avoidable", tagged identity only: a hint that useMemo would avoid it.
Timeline
One lane per component, tick height equal to render duration, red ticks over the threshold and outlined ticks for mounts. It shows at a glance which component is busy and when.
Performance
Totals (components, total renders, slow renders, average and maximum duration, the threshold), the slowest components as bars against the threshold, the warnings raised and recent measurements, with a plain explanation of what the numbers mean.
Slow-render and leak warnings
A render over the threshold and a leaked interval raise readable warnings: "SlowBox took 40.2ms to render and commit (threshold 16ms)", a measured click interaction, and "LeakyTicker: interval tick is still active after the component unmounted". They also appear as toasts and in the console.
Dark dashboard
The same dashboard in its dark theme. The panel can be docked to the bottom or right, resized, paused, cleared, exported and imported, and it remembers its state.
Certain versus probable
The docs explain every reason: mount, props, state, context and hooks are certain because they come from values that were compared; parent, internal and unknown are probable and labelled that way. A second table separates render span, profiler duration and interaction timing so the numbers are never misread.
Dashboard at a glance
The three views, components with details, timeline and performance, in light and dark, responsive to the panel's own width and lazy-loaded so it never costs anything until monitoring is on.
React Native dashboard
The same hooks work in React Native with a dashboard built from View, Text, Pressable, FlatList and TextInput: no native modules and nothing to link. This is in the 0.2.0 source on GitHub and documented on the site; the npm release at the time of writing, 0.1.1, is the web build.
Native dashboard
Four tabs: Components with search, filters and sorting; Details showing why each render happened; Performance with totals and the slowest components; and Report to share the session as JSON or paste one to import. These are the real native components rendered with react-native-web at phone size, not photos of a device.
React Native guide
Requirements (React Native 0.72 or newer as an optional peer, Expo with no config plugin), install, wrapping the app once in the native provider, safe-area insets, a custom onExport handler, opening the panel from the dev menu, and keeping it out of release bundles with __DEV__.
How it was verified
Checked against real react-native 0.88.1: 12 Jest tests with real View, Text, Pressable, FlatList, TextInput and Share, Metro release bundles for Android and iOS, and a Hermes bytecode compile. It has not yet been run on a physical device or simulator, and the site says so.
Under the hood
How the package is built, and why it is safe to add to a project.
Seven focused hooks
useRenderTracker, useWhyDidYouRender, usePrevious, useMountTracker, usePerformanceTracker, useTrackedState and useLeakTracker. All are unconditional, never trigger a render themselves, and a disabled call costs only a few ref and effect registrations.
Certain, never guessed
A cause is reported as certain only when it comes from values the hook compared (props, plus any state, context or dependencies you pass in). Anything React does not expose is labelled probable, so the tool never presents a guess as a fact.
Safe by design
Renders are recorded after commit, never during render. It uses only public React APIs (no Fiber internals, no monkey-patching), works with StrictMode and SSR, and does not count StrictMode's extra renders or concurrent renders React discarded.
Memory-leak helpers
Opt in with leakDetection. Timers, intervals, listeners and subscriptions created through its helpers are tracked: it warns when a component unmounts with one still active, and when the same one is registered over and over. The docs state the limit: it cannot see resources created without the helpers.
Reports
exportReport, downloadReport and importReport produce a JSON-safe report (cycles, functions and undefined are handled), validate it strictly on import with an error that leaves the store untouched, and pause live monitoring while a report is open, so a session can be handed to a teammate.
Configuration
One config object (or configurePulse from anywhere): threshold, compareDepth, ignoreProps, include and exclude filters, history limits, User Timing marks for the browser Performance panel, leak options, callbacks and a pluggable logger, plus global enable, disable, pause, resume and clear.
Small and fast
About 4.5 KB gzip for useRenderTracker and 4.98 KB for all six hooks, with the dashboard as a separate lazy chunk of about 14 KB gzip. Measured overhead is 0.8 µs per render while disabled and 8.7 µs enabled (jsdom benchmark).
Zero cost in production
Monitoring switches itself off when NODE_ENV is production, and a production export condition swaps the dashboard for a 0.08 KB stub, verified in a Vite production build that contains no dashboard code.
Packaging
TypeScript-first and built with tsup into ESM and CommonJS with type declarations, separate entries for the core and the dashboard (plus a full opt-in build, and /native in the source), sideEffects set to false for tree-shaking, a "use client" directive for Next.js, and React 18 and 19 as the only peers.
Tested on two React versions
A suite of 155 Vitest tests runs against both React 18.3.1 and 19.3.1, covering StrictMode and SSR. Consumer apps built from the packed tarball were verified with Vite 8 and Next.js 16.4 (App Router and Pages Router).
Published open source
Released under the MIT licence on npm and GitHub. npm rejected the plain name "reactpulse" as too similar to an existing package, so it is published as reactpulse-devtools.