# infinitered/reactotron architecture

> Architecture diagram of the GitHub repository infinitered/reactotron, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/infinitered/reactotron
- Repository: https://github.com/infinitered/reactotron

## Overview

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: [`apps/reactotron-app/src/renderer/App.tsx`](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/App.tsx) (Desktop app), [`lib/reactotron-core-client/src/reactotron-core-client.ts`](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-client/src/reactotron-core-client.ts) (Core client), [`apps/example-app/app/app.tsx`](https://github.com/infinitered/reactotron/blob/master/apps/example-app/app/app.tsx) (Example app), [`lib/reactotron-core-server/src/reactotron-core-server.ts`](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-server/src/reactotron-core-server.ts) (Core server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["App-side clients"]
  node_example["Example app<br/>[app.tsx]"]
end

subgraph group_transport["Transport and protocol"]
  node_clientcore["Core client"]
  node_serialization["Serialization<br/>[serialize.ts]"]
  node_stateplugin["State responses<br/>[state-responses.ts]"]
  node_server["Core server"]
end

subgraph group_desktop["Desktop debugger"]
  node_desktopapp["Desktop app<br/>[App.tsx]"]
  node_connections["Connection state<br/>[useStandalone.ts]"]
  node_timeline["Timeline<br/>[index.tsx]"]
  node_snapshots["State snapshots<br/>[Snapshots.tsx]"]
  node_subscriptions["State subscriptions<br/>[Subscriptions.tsx]"]
  node_customcommands["Custom commands<br/>[index.tsx]"]
  node_nativeoverlay["Native overlay<br/>[Overlay.tsx]"]
  node_storybook["Storybook switch<br/>[Storybook.tsx]"]
  node_help["Help"]
  node_footer["Connection footer<br/>[Stateless.tsx]"]
end

subgraph group_integrations["Debugger integrations"]
  node_reduxplugin["Redux integration<br/>[commandHandler.ts]"]
  node_nativeplugins["React Native plugins<br/>[networking.ts]"]
  node_mcp["MCP tools<br/>[tools.ts]"]
end

node_developer(("Developer"))

node_developer -->|"runs app"| node_example
node_example -->|"configures client"| node_clientcore
node_clientcore -->|"serializes messages"| node_serialization
node_clientcore -->|"sends WebSocket messages"| node_server
node_server -.->|"delivers commands"| node_connections
node_connections -.->|"tracks connections"| node_desktopapp
node_desktopapp -->|"routes to"| node_timeline
node_desktopapp -->|"routes to"| node_snapshots
node_desktopapp -->|"routes to"| node_subscriptions
node_desktopapp -->|"routes to"| node_customcommands
node_desktopapp -->|"routes to"| node_nativeoverlay
node_desktopapp -->|"routes to"| node_storybook
node_desktopapp -->|"routes to"| node_help
node_desktopapp -->|"renders"| node_footer
node_clientcore -->|"registers plugin"| node_stateplugin
node_clientcore -.->|"supports state plugins"| node_reduxplugin
node_clientcore -.->|"supports platform plugins"| node_nativeplugins
node_clientcore -.->|"exposes MCP integration"| node_mcp
node_developer -->|"inspects telemetry"| node_desktopapp

click node_example "https://github.com/infinitered/reactotron/blob/master/apps/example-app/app/app.tsx"
click node_clientcore "https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-client/src/reactotron-core-client.ts"
click node_serialization "https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-client/src/serialize.ts"
click node_stateplugin "https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-client/src/plugins/state-responses.ts"
click node_server "https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-server/src/reactotron-core-server.ts"
click node_desktopapp "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/App.tsx"
click node_connections "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/contexts/Standalone/useStandalone.ts"
click node_timeline "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/timeline/index.tsx"
click node_snapshots "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/state/Snapshots.tsx"
click node_subscriptions "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/state/Subscriptions.tsx"
click node_customcommands "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/customCommands/index.tsx"
click node_nativeoverlay "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/reactNative/Overlay.tsx"
click node_storybook "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/reactNative/Storybook.tsx"
click node_help "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/help/components/AndroidDeviceHelp.tsx"
click node_footer "https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/components/Footer/Stateless.tsx"
click node_reduxplugin "https://github.com/infinitered/reactotron/blob/master/lib/reactotron-redux/src/commandHandler.ts"
click node_nativeplugins "https://github.com/infinitered/reactotron/blob/master/lib/reactotron-react-native/src/plugins/networking.ts"
click node_mcp "https://github.com/infinitered/reactotron/blob/master/lib/reactotron-mcp/src/tools.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_example toneBlue
class node_clientcore,node_serialization,node_stateplugin,node_server toneAmber
class node_desktopapp,node_connections,node_timeline,node_snapshots,node_subscriptions,node_customcommands,node_nativeoverlay,node_storybook,node_help,node_footer toneMint
class node_reduxplugin,node_nativeplugins,node_mcp toneRose
class node_developer toneIndigo
```

## Components

### App-side clients

- [Example app](https://github.com/infinitered/reactotron/blob/master/apps/example-app/app/app.tsx): `apps/example-app/app/app.tsx`

### Transport and protocol

- [Core client](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-client/src/reactotron-core-client.ts): `lib/reactotron-core-client/src/reactotron-core-client.ts`
- [Serialization](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-client/src/serialize.ts): `lib/reactotron-core-client/src/serialize.ts`
- [State responses](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-client/src/plugins/state-responses.ts): `lib/reactotron-core-client/src/plugins/state-responses.ts`
- [Core server](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-core-server/src/reactotron-core-server.ts): `lib/reactotron-core-server/src/reactotron-core-server.ts`

### Desktop debugger

- [Desktop app](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/App.tsx): `apps/reactotron-app/src/renderer/App.tsx`
- [Connection state](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/contexts/Standalone/useStandalone.ts): `apps/reactotron-app/src/renderer/contexts/Standalone/useStandalone.ts`
- [Timeline](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/timeline/index.tsx): `apps/reactotron-app/src/renderer/pages/timeline/index.tsx`
- [State snapshots](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/state/Snapshots.tsx): `apps/reactotron-app/src/renderer/pages/state/Snapshots.tsx`
- [State subscriptions](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/state/Subscriptions.tsx): `apps/reactotron-app/src/renderer/pages/state/Subscriptions.tsx`
- [Custom commands](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/customCommands/index.tsx): `apps/reactotron-app/src/renderer/pages/customCommands/index.tsx`
- [Native overlay](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/reactNative/Overlay.tsx): `apps/reactotron-app/src/renderer/pages/reactNative/Overlay.tsx`
- [Storybook switch](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/reactNative/Storybook.tsx): `apps/reactotron-app/src/renderer/pages/reactNative/Storybook.tsx`
- [Help](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/pages/help/components/AndroidDeviceHelp.tsx): `apps/reactotron-app/src/renderer/pages/help/components/AndroidDeviceHelp.tsx`
- [Connection footer](https://github.com/infinitered/reactotron/blob/master/apps/reactotron-app/src/renderer/components/Footer/Stateless.tsx): `apps/reactotron-app/src/renderer/components/Footer/Stateless.tsx`

### Debugger integrations

- [Redux integration](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-redux/src/commandHandler.ts): `lib/reactotron-redux/src/commandHandler.ts`
- [React Native plugins](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-react-native/src/plugins/networking.ts): `lib/reactotron-react-native/src/plugins/networking.ts`
- [MCP tools](https://github.com/infinitered/reactotron/blob/master/lib/reactotron-mcp/src/tools.ts): `lib/reactotron-mcp/src/tools.ts`

### Other components

- **Developer**

## Connections

- Developer → Example app: runs app (evidence: `README.md`)
- Example app → Core client: configures client (evidence: `apps/example-app/app/app.tsx`)
- Core client → Serialization: serializes messages (evidence: `lib/reactotron-core-client/src/reactotron-core-client.ts`)
- Core client → Core server: sends WebSocket messages (evidence: `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 (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Desktop app → State snapshots: routes to (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Desktop app → State subscriptions: routes to (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Desktop app → Custom commands: routes to (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Desktop app → Native overlay: routes to (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Desktop app → Storybook switch: routes to (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Desktop app → Help: routes to (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Desktop app → Connection footer: renders (evidence: `apps/reactotron-app/src/renderer/App.tsx`)
- Core client → State responses: registers plugin (evidence: `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 (evidence: `README.md`)
