Configs2026年5月28日·1 分钟阅读

Reactotron — Desktop Debugging App for React and React Native

Reactotron is an open-source desktop application for inspecting React JS and React Native projects. It provides real-time monitoring of state changes, API requests, performance benchmarks, and custom log events across macOS, Linux, and Windows.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Reactotron Overview
直接安装命令
npx -y tokrepo@latest install 8818845a-5a4e-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Reactotron is a desktop debugging tool maintained by Infinite Red that connects to your React or React Native application over a WebSocket. It gives you a live feed of state changes, network requests, and custom events without cluttering your browser DevTools or terminal.

What Reactotron Does

  • Displays real-time Redux, MobX, and MobX-State-Tree state changes
  • Logs API requests and responses with timing information
  • Shows async storage operations for React Native
  • Provides performance benchmarking and overlay tools
  • Supports custom commands and log events from your application

Architecture Overview

Reactotron consists of two parts: a desktop app built with Electron and client libraries for React and React Native. The client library integrates with your app via plugins (Redux, networking, async storage) and sends events over a WebSocket connection to the desktop app. The desktop app renders a timeline of events with filtering, search, and state snapshots. Plugins are modular, so you only include what you need.

Self-Hosting & Configuration

  • Download the desktop app for macOS, Linux, or Windows from GitHub releases
  • Install the appropriate client package (reactotron-react-native or reactotron-react-js)
  • Create a ReactotronConfig file to configure plugins and connection settings
  • Initialize Reactotron before your app renders, typically in an index or config file
  • Use environment checks to disable Reactotron in production builds

Key Features

  • Live timeline of state changes, API calls, and custom events
  • State snapshots let you view and restore previous application states
  • Built-in benchmarking tools for measuring render and function performance
  • Plugin architecture supporting Redux, Saga, MobX, and async storage
  • Custom commands let you trigger actions in your app from the desktop

Comparison with Similar Tools

  • React DevTools — Inspects component tree; Reactotron focuses on state and network events
  • Flipper — Meta's mobile debugger (now archived); Reactotron remains actively maintained
  • Redux DevTools — Browser extension for Redux only; Reactotron covers broader debugging
  • React Native Debugger — Combines Chrome DevTools with React; heavier, less focused
  • Sentry — Production error tracking; Reactotron is for development-time debugging

FAQ

Q: Does Reactotron work with Expo? A: Yes. Reactotron works with Expo projects. Install the React Native client and configure it in your app entry point.

Q: Can I use Reactotron without Redux? A: Yes. Reactotron works independently of Redux. You can use it for API monitoring, logging, and benchmarking without any state management library.

Q: Does Reactotron affect production performance? A: No, if configured correctly. Wrap Reactotron initialization in a development-only check so it is tree-shaken from production builds.

Q: Is Reactotron still maintained? A: Yes. Reactotron is actively maintained by Infinite Red with regular updates and community contributions.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产