Skip to content
Projects

wzc520pyfm/react-devtools-plus

View on GitHub

About

React debugging made simple.

Web & App Development

How these counts are measured

What you can do

  • πŸš€ Drop-in Plugin - Works with Vite and Webpack out of the box
  • πŸ” Fiber Mirror - Automatic instrumentation of React Fiber roots to mirror component trees
  • ⌨️ Keyboard-first - Toggle with Option/Alt + Shift + D, no browser extension needed
  • πŸ“¦ Dev-only - Zero impact on production bundles, no telemetry

Measured star growth

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

React DevTools Plus

React DevTools Plus

React debugging made simple.

An open-source overlay and build tool plugin that mirrors your React Fiber tree, profiles renders, and keeps production builds untouched.

Features β€’ Quick Start β€’ Configuration β€’ Documentation β€’ Contributing


✨ Features

  • πŸš€ Drop-in Plugin - Works with Vite and Webpack out of the box
  • πŸ” Fiber Mirror - Automatic instrumentation of React Fiber roots to mirror component trees
  • ⌨️ Keyboard-first - Toggle with Option/Alt + Shift + D, no browser extension needed
  • πŸ“¦ Dev-only - Zero impact on production bundles, no telemetry
  • 🎯 React 16-19 - Supports React 16.8+, 17, 18, and 19
  • πŸ› οΈ Timeline Profiling - Track component renders and performance
  • πŸ“ Asset Inspection - Browse and inspect project assets
  • πŸ”— Open in Editor - Click to open components in your IDE

πŸ“¦ Quick Start

Installation

# pnpm (recommended)
pnpm add -D react-devtools-plus

# npm
npm install -D react-devtools-plus

# yarn
yarn add -D react-devtools-plus

Vite Setup

// vite.config.ts
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { reactDevToolsPlus } from 'react-devtools-plus/vite'

export default defineConfig({
  plugins: [
    react(),
    reactDevToolsPlus(),
  ],
})

Webpack Setup

// webpack.config.js
const { reactDevToolsPlus } = require('react-devtools-plus/webpack')

module.exports = {
  plugins: [
    reactDevToolsPlus(),
  ],
}

Access DevTools

Once configured, you can access the DevTools in two ways:

  1. Navigate to http://localhost:5173/__react_devtools__/
  2. Press Option/Alt + Shift + D to toggle the floating overlay

βš™οΈ Configuration

import { reactDevToolsPlus } from 'react-devtools-plus/vite'

reactDevToolsPlus({
  // Enable/disable the overlay (default: true in dev)
  overlay: true,

  // Customize the DevTools route (default: '/__react_devtools__')
  base: '/__react_devtools__',

  // Configure Open in Editor (default: auto-detect)
  launchEditor: 'code', // 'code' | 'webstorm' | 'cursor' | etc.
})

πŸ“– Documentation

For comprehensive documentation, visit our documentation site.

Core Features

Feature Description
Component Tree Visualize your React component hierarchy in real-time
Timeline Profile component renders and track performance over time
Assets Browse and inspect images, fonts, and other project assets
Open in Editor Click any component to jump to its source code
Settings Customize DevTools behavior and appearance

Keyboard Shortcuts

Shortcut Action
Option/Alt + Shift + D Toggle DevTools panel open/close
Option/Alt + Shift + R Toggle overlay visibility
Escape Close overlay

πŸ—οΈ Project Structure

This is a monorepo managed with pnpm workspaces and Turborepo:

packages/
β”œβ”€β”€ react-devtools/           # Main Vite/Webpack plugin
β”œβ”€β”€ react-devtools-client/    # DevTools client UI
β”œβ”€β”€ react-devtools-core/      # Core functionality & plugin system
β”œβ”€β”€ react-devtools-kit/       # State management & messaging
β”œβ”€β”€ react-devtools-overlay/   # Floating overlay component
β”œβ”€β”€ react-devtools-scan/      # Render scanning utilities
β”œβ”€β”€ react-devtools-ui/        # Shared UI components
β”œβ”€β”€ shared/                   # Shared utilities
└── playground/               # Example projects
    β”œβ”€β”€ react/                # Vite + React example
    β”œβ”€β”€ react-webpack/        # Webpack + React example
    └── ...

πŸ§‘β€πŸ’» Development

# Install dependencies
pnpm install

# Start development mode
pnpm dev

# Run the Vite playground
pnpm play

# Run the Webpack playground
pnpm play:webpack

# Build all packages
pnpm build

# Run tests
pnpm test

# Lint code
pnpm lint

🀝 Contributing

We welcome contributions! Here's how you can help:

  1. Star the repo - Signal demand and support the project
  2. Open issues - Report bugs or request features
  3. Submit PRs - Fix bugs, add features, improve docs
  4. Share feedback - Tell us about your stack and pain points

See CONTRIBUTING.md for detailed guidelines.

Development Requirements

  • Node.js >= 14.0.0
  • pnpm >= 10.0.0

πŸ“„ License

MIT Β© wzc520pyfm


Built with ❀️ for the React community

Explore related projects

Loading…