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-load-time-analyzer

v1.1.10

Published

React Load Time Analyzer

Readme

React Load Time Analyzer

Analyze and monitor the render times of your React components easily with React Load Time Analyzer. This lightweight library provides hooks and HOCs to track mounting, updating, and unmounting times, helping developers optimize performance.

🚀 Features

  • 📊 Measure Component Render Times
  • Supports Hooks
  • 🛠 Real-time Overlay for Debugging
  • 📈 Global Context for Logging Data
  • 📝 Lightweight & Easy to Integrate

📦 Installation

Install via npm:

npm install react-load-time-analyzer

or using yarn:

yarn add react-load-time-analyzer

or using pnpn:

pnpn add react-load-time-analyzer

🛠 Usage

1️⃣ Using the usePerformanceProfiler Hook

The usePerformanceProfiler hook allows you to profile the render performance of a component. It provides profiling data including render times and phases.

Example

import React, { useState } from 'react';
import { usePerformanceProfiler } from 'react-load-time-analyzer';

const MyComponent = () => {
  const [count, setCount] = useState(0);
  const profilingData = usePerformanceProfiler('MyComponent');

  return (
    <div>
      <h1>My Component</h1>
      <button onClick={() => setCount(count + 1)}>Increment</button>
      <p>Count: {count}</p>
      <pre>{JSON.stringify(profilingData, null, 2)}</pre>
    </div>
  );
};

export default MyComponent;

2️⃣ Enabling the Performance Overlay

Display real-time logs in an on-screen widget:

import React from "react";
import { PerformanceProvider } from "react-load-time-analyzer";

const App = () => (
  <PerformanceProvider>
    <MyComponent />
    <MyClassComponent />
  </PerformanceProvider>
);

export default App;

4️⃣ Using the PerFormanceProfiler Component

The PerFormanceProfiler component can be used to wrap any component you want to profile.

Example

import React, { useState } from 'react';
import { PerFormanceProfiler } from 'react-load-time-analyzer';

const App = () => {
  const [count, setCount] = useState(0);

  return (
    <div>
      <h1>Vite + React</h1>
      <PerFormanceProfiler id="card">
        <div className="card">
          <button onClick={() => setCount(count + 1)}>count is {count}</button>
          <p>Edit <code>src/App.tsx</code> and save to test HMR</p>
        </div>
      </PerFormanceProfiler>
      <p className="read-the-docs">Click on the Vite and React logos to learn more</p>
    </div>
  );
};

export default App;

🛠 API Reference

usePerformanceProfiler(componentName: string)

Profiles the render performance of a component, providing profiling data including render times and phases.

<PerformanceProvider>

Provides a global performance tracking context.

<PerFormanceProfiler>

Wraps any component you want to profile.


📌 Roadmap & Future Enhancements

  • 📈 React DevTools Integration
  • 📊 Export Performance Data as JSON/CSV
  • 📉 Graphical Visualization of Component Renders
  • 🔍 Warnings for Slow Components

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork this repo.
  2. Create a new feature branch.
  3. Commit your changes.
  4. Open a pull request.

📜 License

MIT License.


⭐ Show Your Support!

If you find this project useful, give it a ⭐ on GitHub! 🚀