
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-performify
Advanced tools
A lightweight React performance toolkit that gives developers easy-to-use hooks and utilities to measure, optimize, and visualize component performance.
A lightweight React performance toolkit that gives developers easy-to-use hooks and utilities to measure, optimize, and visualize component performance. Its goal is to make performance management as easy as state management — all using clean, composable hooks.
📘 Documentation
Comprehensive documentation is available here
Explore all hooks interactively on Storybook:
👉 Live Demo
Once published to npm:
npm install react-performify
# or
yarn add react-performify
# Inside react-performify/
npm link
# In your target React project:
npm link react-performify
| Hook Name | Description |
|---|---|
| useDebouncedEffect | Runs effect after delay |
| useLazyMemo | Lazily memoizes value |
| useMemoizedCallback | Memoizes callback to avoid recreation |
| usePerformanceMonitor | Monitors performance metrics |
| usePerformanceOverlay | Displays performance overlay |
| usePerformanceStats | Tracks render statistics |
| useRenderCount | Counts component renders |
| useStableObject | Keeps object reference stable |
| useThrottledCallback | Throttles callback execution |
| useVirtualList | Optimizes rendering large lists |
| useWhyDidYouRender | Logs prop changes between renders |
import React, { useState } from "react";
import type { Meta, StoryObj } from "@storybook/react";
import { usePerformanceOverlay } from "../usePerformanceOverlay";
const PerfOverlayDemo = () => {
const [enabled, setEnabled] = useState(true);
usePerformanceOverlay(enabled, 500, "bottom-left");
return (
<div style={{ padding: "20px" }}>
<h3>usePerformanceOverlay Hook Demo</h3>
<p>
Toggle the overlay below. When enabled, an FPS counter appears
on the bottom-left corner of your screen.
</p>
<button
onClick={() => setEnabled(!enabled)}
style={{
background: enabled ? "#d33" : "#3d3",
color: "white",
border: "none",
padding: "10px 16px",
borderRadius: "6px",
cursor: "pointer",
}}
>
{enabled ? "Disable Overlay" : "Enable Overlay"}
</button>
</div>
);
};
const meta: Meta<typeof PerfOverlayDemo> = {
title: "Hooks/usePerformanceOverlay",
component: PerfOverlayDemo,
};
export default meta;
type Story = StoryObj<typeof PerfOverlayDemo>;
export const Default: Story = {
render: () => <PerfOverlayDemo />,
};
git clone https://github.com/Shakir-Afridi/react-performify.git
cd react-performify
npm install
npm run dev
npm run build
npm link
# then in your test project:
npm link react-performify
This project is licensed under the MIT License.
Contributions are welcome! If you’d like to add new hooks or fix bugs, please open an issue or submit a pull request.
# Fork & clone
git clone https://github.com/Shakir-Afridi/react-performify.git
# Create a feature branch
git checkout -b feature/my-new-hook
# Commit changes
git commit -m "feat: add useXYZ hook"
# Push & open PR
git push origin feature/my-new-hook
React Performify — maintained by passionate open-source developers who believe in clean, reusable React logic
If you find this library useful, please give it a star ⭐ on GitHub — it helps others discover and support the project!
FAQs
A lightweight React performance toolkit that gives developers easy-to-use hooks and utilities to measure, optimize, and visualize component performance.
The npm package react-performify receives a total of 5 weekly downloads. As such, react-performify popularity was classified as not popular.
We found that react-performify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.