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-recheck

v0.1.0

Published

Dev-time performance diagnostics for React & React Native: re-render tracking, per-render object/array/function recreation detection, method-call timing, FPS / jank monitoring and an in-app debug panel.

Readme

react-recheck

开发期性能与重渲染诊断工具,面向 React Native / React。纯 JS,无原生代码。

  • 🔍 组件 re-render 追踪 — 真实渲染次数 / 耗时 / 原因(自动 JSX 插桩或 trackComponent,基于 React Profiler)
  • 🧱 对象/数组/函数每次重建检测 — 渲染间 props diff,指出"内容相同却每次新建引用"的 prop 与 useMemo/useCallback 建议(memo 组件为何失效一目了然)
  • ⏱ 方法耗时检测 — timed / timedAsync / measureSync / instrumentClass,同步异步与异常全覆盖,慢调用阈值告警 + 调用栈
  • 📉 FPS / 卡顿监控 — JS 线程帧率、卡顿帧、事件循环滞后与长任务(纯 JS 实现)

带一个 App 内悬浮调试面板(渲染 / 告警 / 方法 / 性能 / 设置)。

快速开始(React Native / Expo)

import { ReactRecheckPanel, recheck } from 'react-recheck';

if (__DEV__) {
  recheck.configure({ autoTrackComponents: true, slowMethodThresholdMs: 16 });
  recheck.start();
}

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

方法计时

import { instrumentClass, timed, measureSync } from 'react-recheck';

instrumentClass(ApiClient, { name: 'Api' }); // 整类原型方法插桩
const parse = timed((raw: string) => JSON.parse(raw), 'utils.parse');
const { durationMs } = measureSync(() => doHeavy(), 'doHeavy');

入口与要求

  • react-recheck — 完整入口(含面板);react-recheck/core — 不含 react-native UI 的核心入口。
  • peer:react >= 18;react-native >= 0.71(可选,仅面板需要)。React 18/19 通用。
  • 自动 JSX 插桩依赖 Metro / CommonJS 运行时;其他环境请用 trackComponent() 显式追踪。
  • 仅建议开发期启用(所有插桩都有开销;生产不调用 start() 即零成本)。

文档

完整使用文档(安装 / 接入 / 功能详解 / API 与设置全表 / 排查配方 / FAQ): docs/USAGE.md · 仓库总览见根目录 README.md。

MIT License