# deohyunpark/robot-ops-platform architecture

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

- Interactive diagram: https://gitdiagram.com/deohyunpark/robot-ops-platform
- Repository: https://github.com/deohyunpark/robot-ops-platform

## Overview

Robot Ops Platform monitors a robot fleet, detects and prioritizes anomalies, and supports operator response through a React dashboard. Its documented backend flow ingests simulator telemetry through MQTT and Kafka, updates real-time and historical state, and produces events and AI insights; the frontend presents fleet, KPI, and insight views and supports event actions and Daisy assistance. Backend implementation files are not present in the supplied tree, so those documented stages use the existing `backend/` directory path; their relationships are cited to the README.

Main entry points: [`frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx) (Fleet dashboard), [`backend`](https://github.com/deohyunpark/robot-ops-platform/tree/main/backend) (Event detection), [`frontend/src/components/robotics-monitoring/EventDetailModal.tsx`](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/EventDetailModal.tsx) (Event details), [`simulator/robot_sim.py`](https://github.com/deohyunpark/robot-ops-platform/blob/main/simulator/robot_sim.py) (Robot simulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Telemetry ingestion"]
  node_sim["Robot simulator<br/>[robot_sim.py]"]
  node_mqtt(("MQTT broker"))
  node_ingestor["MQTT ingestor"]
  node_kafka["Telemetry streams"]
  node_state["State consumer"]
  node_redis[("Live state")]
  node_postgres[("History store")]
end

subgraph group_analysis["Detection and analysis"]
  node_eventengine["Event detection"]
  node_insight["Insight analysis"]
  node_openai(("OpenAI"))
  node_websocket["WebSocket updates"]
end

subgraph group_frontend["Fleet dashboard"]
  node_app["Dashboard entry<br/>[App.tsx]"]
  node_dashboard["Fleet dashboard"]
  node_adapter["Telemetry adapter"]
  node_deviceview["Device table"]
  node_feed["Insight feed"]
  node_kpis["Operations KPIs<br/>[DashboardParts.tsx]"]
end

subgraph group_operations["Operator workflows"]
  node_eventdetail["Event details"]
  node_eventapi["Event actions API<br/>[eventAction.ts]"]
end

subgraph group_assistant["Daisy assistant"]
  node_assistantui["Daisy chat UI"]
  node_chatservice["Daisy chat service<br/>[daisyChat.ts]"]
  node_report["Daily PDF report"]
end

node_sim -->|"publishes telemetry"| node_mqtt
node_mqtt -->|"delivers telemetry"| node_ingestor
node_ingestor -->|"publishes telemetry"| node_kafka
node_kafka -->|"dispatches stream"| node_state
node_state -->|"writes live state"| node_redis
node_state -->|"stores history"| node_postgres
node_kafka -->|"dispatches events"| node_eventengine
node_eventengine -->|"feeds analysis"| node_insight
node_insight -->|"requests analysis"| node_openai
node_eventengine -->|"stores events"| node_postgres
node_insight -->|"stores analysis"| node_postgres
node_redis -->|"pushes state"| node_websocket
node_eventengine -->|"pushes events"| node_websocket
node_insight -->|"pushes insights"| node_websocket
node_websocket -->|"streams updates"| node_dashboard
node_app -->|"renders"| node_dashboard
node_dashboard -->|"normalizes payloads"| node_adapter
node_dashboard -->|"renders fleet view"| node_deviceview
node_dashboard -->|"renders insights"| node_feed
node_dashboard -->|"renders metrics"| node_kpis
node_dashboard -->|"opens event details"| node_eventdetail
node_eventdetail -.->|"requests actions"| node_eventapi
node_dashboard -->|"renders chat"| node_assistantui
node_dashboard -->|"sends chat requests"| node_chatservice
node_dashboard -->|"offers daily report"| node_report

click node_sim "https://github.com/deohyunpark/robot-ops-platform/blob/main/simulator/robot_sim.py"
click node_ingestor "https://github.com/deohyunpark/robot-ops-platform/tree/main/backend"
click node_state "https://github.com/deohyunpark/robot-ops-platform/tree/main/backend"
click node_eventengine "https://github.com/deohyunpark/robot-ops-platform/tree/main/backend"
click node_insight "https://github.com/deohyunpark/robot-ops-platform/tree/main/backend"
click node_websocket "https://github.com/deohyunpark/robot-ops-platform/tree/main/backend"
click node_app "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/App.tsx"
click node_dashboard "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx"
click node_adapter "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/telemetryAdapter.ts"
click node_deviceview "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DashboardDeviceTable.tsx"
click node_feed "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/InsightFeedPanel.tsx"
click node_kpis "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DashboardParts.tsx"
click node_eventdetail "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/EventDetailModal.tsx"
click node_eventapi "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/services/eventAction.ts"
click node_assistantui "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DaisyChatMessageBody.tsx"
click node_chatservice "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/services/daisyChat.ts"
click node_report "https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DaisyChatDailyReportPdfButton.tsx"

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_sim,node_mqtt,node_ingestor,node_kafka,node_state,node_redis,node_postgres toneBlue
class node_eventengine,node_insight,node_openai,node_websocket toneAmber
class node_app,node_dashboard,node_adapter,node_deviceview,node_feed,node_kpis toneMint
class node_eventdetail,node_eventapi toneRose
class node_assistantui,node_chatservice,node_report toneIndigo
```

## Components

### Telemetry ingestion

- [Robot simulator](https://github.com/deohyunpark/robot-ops-platform/blob/main/simulator/robot_sim.py): `simulator/robot_sim.py`
- **MQTT broker**
- [MQTT ingestor](https://github.com/deohyunpark/robot-ops-platform/tree/main/backend): `backend`
- **Telemetry streams**
- [State consumer](https://github.com/deohyunpark/robot-ops-platform/tree/main/backend): `backend`
- **Live state**
- **History store**

### Detection and analysis

- [Event detection](https://github.com/deohyunpark/robot-ops-platform/tree/main/backend): `backend`
- [Insight analysis](https://github.com/deohyunpark/robot-ops-platform/tree/main/backend): `backend`
- **OpenAI**
- [WebSocket updates](https://github.com/deohyunpark/robot-ops-platform/tree/main/backend): `backend`

### Fleet dashboard

- [Dashboard entry](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Fleet dashboard](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx): `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`
- [Telemetry adapter](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/telemetryAdapter.ts): `frontend/src/components/robotics-monitoring/telemetryAdapter.ts`
- [Device table](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DashboardDeviceTable.tsx): `frontend/src/components/robotics-monitoring/DashboardDeviceTable.tsx`
- [Insight feed](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/InsightFeedPanel.tsx): `frontend/src/components/robotics-monitoring/InsightFeedPanel.tsx`
- [Operations KPIs](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DashboardParts.tsx): `frontend/src/components/robotics-monitoring/DashboardParts.tsx`

### Operator workflows

- [Event details](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/EventDetailModal.tsx): `frontend/src/components/robotics-monitoring/EventDetailModal.tsx`
- [Event actions API](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/services/eventAction.ts): `frontend/src/services/eventAction.ts`

### Daisy assistant

- [Daisy chat UI](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DaisyChatMessageBody.tsx): `frontend/src/components/robotics-monitoring/DaisyChatMessageBody.tsx`
- [Daisy chat service](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/services/daisyChat.ts): `frontend/src/services/daisyChat.ts`
- [Daily PDF report](https://github.com/deohyunpark/robot-ops-platform/blob/main/frontend/src/components/robotics-monitoring/DaisyChatDailyReportPdfButton.tsx): `frontend/src/components/robotics-monitoring/DaisyChatDailyReportPdfButton.tsx`

## Connections

- Robot simulator → MQTT broker: publishes telemetry
- MQTT broker → MQTT ingestor: delivers telemetry
- MQTT ingestor → Telemetry streams: publishes telemetry
- Telemetry streams → State consumer: dispatches stream
- State consumer → Live state: writes live state
- State consumer → History store: stores history
- Telemetry streams → Event detection: dispatches events
- Event detection → Insight analysis: feeds analysis
- Insight analysis → OpenAI: requests analysis
- Event detection → History store: stores events
- Insight analysis → History store: stores analysis
- Live state → WebSocket updates: pushes state
- Event detection → WebSocket updates: pushes events
- Insight analysis → WebSocket updates: pushes insights
- WebSocket updates → Fleet dashboard: streams updates
- Dashboard entry → Fleet dashboard: renders (evidence: `frontend/src/App.tsx`)
- Fleet dashboard → Telemetry adapter: normalizes payloads (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
- Fleet dashboard → Device table: renders fleet view (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
- Fleet dashboard → Insight feed: renders insights (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
- Fleet dashboard → Operations KPIs: renders metrics (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
- Fleet dashboard → Event details: opens event details (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
- Event details → Event actions API: requests actions
- Fleet dashboard → Daisy chat UI: renders chat (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
- Fleet dashboard → Daisy chat service: sends chat requests (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
- Fleet dashboard → Daily PDF report: offers daily report (evidence: `frontend/src/components/robotics-monitoring/RoboticsMonitoringDashboard.tsx`)
