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

@usefy/kits

v0.2.4

Published

A collection of production-ready React feature kits

Downloads

954

Readme


Pre-release Notice: This project is currently in version 0.x.x (alpha/beta stage). APIs may change between minor versions. While fully functional and tested, please use with caution in production environments.

Actively Developing: New kits are being added regularly. Stay tuned for more feature-rich components!


Overview

@usefy/kits is a collection of production-ready feature kits designed for modern React applications. Unlike simple hooks, kits are complete UI components with built-in functionality, designed to be dropped into your application with minimal configuration.

Why @usefy/kits?

  • Complete Solutions — Ready-to-use components with UI, state management, and logic bundled together
  • Production-Ready — Thoroughly tested with comprehensive documentation
  • Tree Shakeable — Import only the kits you need to optimize bundle size
  • TypeScript First — Complete type safety with full autocomplete support
  • SSR Compatible — Works seamlessly with Next.js, Remix, and other SSR frameworks
  • Highly Customizable — Extensive props and callbacks for integration with your app
  • Well Documented — Detailed documentation with practical examples
  • Interactive Demos — Try all kits in action with our Storybook playground

Installation

All-in-One Package

Install all kits at once:

# npm
npm install @usefy/kits

# yarn
yarn add @usefy/kits

# pnpm
pnpm add @usefy/kits

Individual Packages

You can also install only the kits you need:

# Example: Install only memory-monitor
pnpm add @usefy/memory-monitor

Peer Dependencies

All packages require React 18 or 19:

{
  "peerDependencies": {
    "react": "^18.0.0 || ^19.0.0",
    "react-dom": "^18.0.0 || ^19.0.0"
  }
}

Some kits may have additional peer dependencies (e.g., recharts for memory-monitor).


Packages

Available Kits

| Kit | Description | npm | | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | @usefy/memory-monitor | Real-time browser memory monitoring panel with leak detection | |


Quick Start

Using the All-in-One Package

import { MemoryMonitor } from "@usefy/kits";

function App() {
  return (
    <div>
      <h1>My Application</h1>

      {/* Add memory monitoring panel */}
      <MemoryMonitor
        mode="development"
        position="right"
        onWarning={(data) => console.warn("Memory warning:", data)}
        onLeakDetected={(analysis) => console.warn("Leak detected:", analysis)}
      />
    </div>
  );
}

Using Individual Packages

import { MemoryMonitor } from "@usefy/memory-monitor";

function App() {
  return (
    <div>
      <h1>My Application</h1>
      <MemoryMonitor mode="development" />
    </div>
  );
}

Features

MemoryMonitor

import { MemoryMonitor, useMemoryMonitorHeadless } from "@usefy/kits";

// Full UI Panel
<MemoryMonitor
  mode="development"           // 'development' | 'production' | 'always' | 'never'
  position="right"             // 'right' | 'left'
  defaultOpen={false}

  // Thresholds
  warningThreshold={70}        // Warning at 70% usage
  criticalThreshold={90}       // Critical at 90% usage

  // Auto-GC
  enableAutoGC={true}
  autoGCThreshold={85}

  // Leak Detection
  enableLeakDetection={true}
  leakSensitivity="medium"     // 'low' | 'medium' | 'high'

  // Callbacks
  onWarning={(data) => sendToAnalytics("memory_warning", data)}
  onCritical={(data) => sendAlert("memory_critical", data)}
  onLeakDetected={(analysis) => captureException(analysis)}
  onAutoGC={(data) => console.log("GC triggered")}
/>

// Headless Mode (no UI, just monitoring)
const {
  memory,
  severity,
  isLeakDetected,
  trend,
  requestGC,
} = useMemoryMonitorHeadless({
  interval: 1000,
  onWarning: (data) => analytics.track("memory_warning"),
});

Key Features:

  • Real-time memory gauge visualization
  • Memory history chart with trend analysis
  • Snapshot system with comparison
  • HTML report generation
  • 5-factor leak detection algorithm
  • Auto-GC trigger with cooldown
  • Keyboard shortcuts (Ctrl+Shift+M)
  • Dark mode support
  • Settings persistence to localStorage

Perfect for debugging memory leaks, monitoring production apps, and performance optimization.


Kits vs Hooks

| Aspect | @usefy/hooks | @usefy/kits | | ------ | ------------ | ----------- | | What | Individual React hooks | Complete feature components | | UI | No UI, logic only | Built-in UI with customization | | Complexity | Simple, single-purpose | Complex, multi-feature | | Use Case | Building blocks | Ready-to-use solutions | | Example | useToggle, useDebounce | MemoryMonitor |


Browser Support

| Browser | Version | | ------- | ---------------- | | Chrome | 66+ | | Firefox | 63+ | | Safari | 13.1+ | | Edge | 79+ |

Note: Some features may have limited support in non-Chromium browsers (e.g., performance.memory API).


Related Links

  • npm Organization
  • GitHub Repository
  • Changelog
  • Issue Tracker
  • @usefy/hooks — React hooks collection

License

MIT © mirunamu