wzc520pyfm/react-devtools-plus
About
React debugging made simple.
Web & App DevelopmentWhat 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 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:
- Navigate to
http://localhost:5173/__react_devtools__/ - Press
Option/Alt + Shift + Dto 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:
- Star the repo - Signal demand and support the project
- Open issues - Report bugs or request features
- Submit PRs - Fix bugs, add features, improve docs
- 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β¦