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-devtools-plus/scan

v0.6.2

Published

React Scan integration for React DevTools

Readme

@react-devtools-plus/scan

React Scan integration layer for React DevTools.

Overview

This package provides a seamless integration between react-scan and React DevTools, making it easy to add powerful performance analysis capabilities to your React applications.

Features

  • 🚀 Easy Setup: Single function call to enable React Scan
  • 🎨 Flexible Integration: Choose between overlay, panel, or both modes
  • ⚙️ Full Configuration: Access to all react-scan options
  • 🔧 Runtime Control: Start, stop, and configure scan at runtime
  • 📦 Type Safe: Full TypeScript support

Installation

pnpm add @react-devtools-plus/scan

Quick Start

Basic Usage

import { initScan } from '@react-devtools-plus/scan';

// Initialize with defaults (development only)
initScan();

Custom Configuration

import { initScan } from '@react-devtools-plus/scan';

const scanInstance = initScan({
  enabled: true,
  showToolbar: true,
  animationSpeed: 'fast',
  trackUnnecessaryRenders: true,
  integrationMode: 'overlay',
});

// Control at runtime
scanInstance.stop();
scanInstance.start();

With React DevTools Plugin

// vite.config.ts
import { defineConfig } from 'vite';
import { reactDevtools } from 'react-devtools/vite';

export default defineConfig({
  plugins: [
    reactDevtools({
      scan: {
        enabled: true,
        showToolbar: true,
      },
    }),
  ],
});

API

initScan(options?)

Initialize React Scan with optional configuration.

Parameters:

  • options (optional): ReactDevtoolsScanOptions

Returns: ScanInstance

getScan()

Get the current scan instance.

Returns: ScanInstance | null

ScanInstance Methods

  • getOptions(): Get current scan options
  • setOptions(options): Update scan options at runtime
  • start(): Start scanning
  • stop(): Stop scanning
  • isActive(): Check if scanning is active

Configuration Options

All react-scan options are supported, plus:

interface ReactDevtoolsScanOptions {
  // ... all react-scan options

  /**
   * Integration mode
   * @default 'overlay'
   */
  integrationMode?: 'overlay' | 'panel' | 'both';

  /**
   * Sync state with DevTools panel
   * @default true
   */
  syncWithDevtools?: boolean;
}

Examples

Conditional Enabling

import { initScan } from '@react-devtools-plus/scan';

if (process.env.NODE_ENV === 'development') {
  initScan({
    enabled: true,
    log: false,
  });
}

Runtime Control

import { getScan } from '@react-devtools-plus/scan';

// Later in your code...
const scan = getScan();

if (scan?.isActive()) {
  // Temporarily disable for screenshot
  scan.stop();
  takeScreenshot();
  scan.start();
}

Custom Animation Speed

import { initScan } from '@react-devtools-plus/scan';

initScan({
  animationSpeed: 'slow', // 'slow' | 'fast' | 'off'
});

Integration with React DevTools

This package is designed to work seamlessly with the React DevTools plugin system. When used together, you get:

  • Unified configuration through the DevTools plugin
  • Automatic injection in development builds
  • Coordinated UI between DevTools panel and Scan overlay

See React DevTools Scan Integration Guide for more details.

License

MIT