How infinitered/reactotron works
Reactotron is a developer debugger: an application installs a development client, which sends telemetry and state over a WebSocket to the desktop app; developers inspect it and can issue commands back to the client. The map covers the client/transport, desktop connection state and inspection features, and documented integrations. Several UI routes and plugins are unsampled; README evidence supports their capabilities, but not detailed internal call chains.
Main entry points: App.tsx Desktop app · reactotron-core-client.ts Core client · app.tsx Example app · reactotron-core-server.ts Core server
Components 19
App-side clients
- Example app
apps/example-app/app/app.tsx
Transport and protocol
- Core client
lib/reactotron-core-client/src/reactotron-core-client.ts - Serialization
lib/reactotron-core-client/src/serialize.ts - State responses
lib/reactotron-core-client/src/plugins/state-responses.ts - Core server
lib/reactotron-core-server/src/reactotron-core-server.ts
Desktop debugger
- Desktop app
apps/reactotron-app/src/renderer/App.tsx - Connection state
apps/reactotron-app/src/renderer/contexts/Standalone/useStandalone.ts - Timeline
apps/reactotron-app/src/renderer/pages/timeline/index.tsx - State snapshots
apps/reactotron-app/src/renderer/pages/state/Snapshots.tsx - State subscriptions
apps/reactotron-app/src/renderer/pages/state/Subscriptions.tsx - Custom commands
apps/reactotron-app/src/renderer/pages/customCommands/index.tsx - Native overlay
apps/reactotron-app/src/renderer/pages/reactNative/Overlay.tsx - Storybook switch
apps/reactotron-app/src/renderer/pages/reactNative/Storybook.tsx - Help
apps/reactotron-app/src/renderer/pages/help/components/AndroidDeviceHelp.tsx - Connection footer
apps/reactotron-app/src/renderer/components/Footer/Stateless.tsx
Debugger integrations
- Redux integration
lib/reactotron-redux/src/commandHandler.ts - React Native plugins
lib/reactotron-react-native/src/plugins/networking.ts - MCP tools
lib/reactotron-mcp/src/tools.ts
Other components
- Developer
Connections 19
- Developer → Example app: runs app
README.md - Example app → Core client: configures client
apps/example-app/app/app.tsx - Core client → Serialization: serializes messages
lib/reactotron-core-client/src/reactotron-core-client.ts - Core client → Core server: sends WebSocket messages
lib/reactotron-core-client/src/reactotron-core-client.ts - Core server → Connection state: delivers commands
- Connection state → Desktop app: tracks connections
- Desktop app → Timeline: routes to
apps/reactotron-app/src/renderer/App.tsx - Desktop app → State snapshots: routes to
apps/reactotron-app/src/renderer/App.tsx - Desktop app → State subscriptions: routes to
apps/reactotron-app/src/renderer/App.tsx - Desktop app → Custom commands: routes to
apps/reactotron-app/src/renderer/App.tsx - Desktop app → Native overlay: routes to
apps/reactotron-app/src/renderer/App.tsx - Desktop app → Storybook switch: routes to
apps/reactotron-app/src/renderer/App.tsx - Desktop app → Help: routes to
apps/reactotron-app/src/renderer/App.tsx - Desktop app → Connection footer: renders
apps/reactotron-app/src/renderer/App.tsx - Core client → State responses: registers plugin
lib/reactotron-core-client/src/reactotron-core-client.ts - Core client → Redux integration: supports state plugins
- Core client → React Native plugins: supports platform plugins
- Core client → MCP tools: exposes MCP integration
- Developer → Desktop app: inspects telemetry
README.md