# tny-robotics/tny-360-web architecture

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

- Interactive diagram: https://gitdiagram.com/tny-robotics/tny-360-web
- Repository: https://github.com/tny-robotics/tny-360-web

## Overview

TNY-360 Web Interface is a browser control center for operating and maintaining the TNY-360 robot. Users enter workspaces for teleoperation, animation, block coding, or diagnostics; the dashboard also exposes telemetry, joint controls, movement editing, and robot files. The sampled code shows SDK-backed robot access, Blockly initialization, calibration operations, and HTTP-based user-data access. Some workspace wiring and the animation implementation were not sampled, so those documented capabilities are represented without speculative internal call edges.

Main entry points: [`app/composables/TNY360.ts`](https://github.com/tny-robotics/tny-360-web/blob/main/app/composables/TNY360.ts) (Robot connection), [`app/pages/index.vue`](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/index.vue) (Workspace home), [`app/composables/userdata.ts`](https://github.com/tny-robotics/tny-360-web/blob/main/app/composables/userdata.ts) (User-data API), [`app/components/coder/BlocklyZone.vue`](https://github.com/tny-robotics/tny-360-web/blob/main/app/components/coder/BlocklyZone.vue) (Blockly workspace)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_home["Workspace home<br/>[index.vue]"]
end

subgraph group_drive["Robot operation"]
  node_teleop["Teleoperation<br/>[teleop.vue]"]
  node_joystick["Joystick controls<br/>[Joystick.vue]"]
  node_animator["Animation studio<br/>[movements.vue]"]
end

subgraph group_dash["Dashboard and tools"]
  node_calibration["Robot calibration<br/>[calibration.vue]"]
  node_dashboard["Telemetry dashboard<br/>[index.vue]"]
  node_robotview["Live 3D view<br/>[TNY360View.vue]"]
  node_joints["Joint controls<br/>[joints.vue]"]
  node_jointcal["Joint calibration"]
  node_diagnostic["Diagnostic mode<br/>[diagnostic.vue]"]
  node_errors["Error review<br/>[errors.vue]"]
  node_explorer["Robot file explorer<br/>[FileExplorer.vue]"]
  node_editor["Text editor<br/>[TextEditor.vue]"]
end

subgraph group_code["Block coding"]
  node_coderpage["Coder workspace<br/>[coder.vue]"]
  node_blockly["Blockly workspace<br/>[BlocklyZone.vue]"]
  node_coderengine["Coder engine<br/>[coder.main.ts]"]
end

subgraph group_shared["Robot and data access"]
  node_sdk["TNY-360 SDK"]
  node_connection["Robot connection<br/>[TNY360.ts]"]
  node_userdata["User-data API<br/>[userdata.ts]"]
end

node_user(("Robot owner"))
node_robot["TNY-360 robot"]

node_user -->|"opens app"| node_home
node_home -->|"offers drive"| node_teleop
node_home -->|"offers animation"| node_animator
node_home -->|"offers coding"| node_coderpage
node_home -->|"offers toolkit"| node_dashboard
node_user -->|"calibrates robot"| node_calibration
node_user -->|"runs diagnostics"| node_diagnostic
node_user -->|"manages files"| node_explorer
node_blockly -->|"initializes"| node_coderengine
node_blockly -->|"exposes robot API"| node_connection
node_dashboard -->|"requests statistics"| node_connection
node_robotview -->|"requests joint data"| node_connection
node_connection -->|"creates client"| node_sdk
node_connection -->|"connects"| node_robot
node_explorer -->|"lists and edits files"| node_userdata
node_userdata -->|"gets robot address"| node_connection
node_userdata -->|"reads and writes files"| node_robot
node_calibration -->|"calibrates joints"| node_robot
node_jointcal -->|"sets calibration"| node_robot

click node_home "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/index.vue"
click node_teleop "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/teleop.vue"
click node_joystick "https://github.com/tny-robotics/tny-360-web/blob/main/app/components/teleop/Joystick.vue"
click node_animator "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/dash/movements.vue"
click node_calibration "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/calibration.vue"
click node_dashboard "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/dash/index.vue"
click node_robotview "https://github.com/tny-robotics/tny-360-web/blob/main/app/components/dash/TNY360View.vue"
click node_joints "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/dash/joints.vue"
click node_jointcal "https://github.com/tny-robotics/tny-360-web/blob/main/app/components/dash/joint/CalibrationModal.vue"
click node_diagnostic "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/diagnostic.vue"
click node_errors "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/errors.vue"
click node_explorer "https://github.com/tny-robotics/tny-360-web/blob/main/app/components/FileExplorer.vue"
click node_editor "https://github.com/tny-robotics/tny-360-web/blob/main/app/components/TextEditor.vue"
click node_coderpage "https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/coder.vue"
click node_blockly "https://github.com/tny-robotics/tny-360-web/blob/main/app/components/coder/BlocklyZone.vue"
click node_coderengine "https://github.com/tny-robotics/tny-360-web/blob/main/app/assets/scripts/coder.main.ts"
click node_connection "https://github.com/tny-robotics/tny-360-web/blob/main/app/composables/TNY360.ts"
click node_userdata "https://github.com/tny-robotics/tny-360-web/blob/main/app/composables/userdata.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_home toneBlue
class node_teleop,node_joystick,node_animator toneAmber
class node_calibration,node_dashboard,node_robotview,node_joints,node_jointcal,node_diagnostic,node_errors,node_explorer,node_editor toneMint
class node_coderpage,node_blockly,node_coderengine toneRose
class node_sdk,node_connection,node_userdata,node_user,node_robot toneIndigo
```

## Components

### App entry

- [Workspace home](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/index.vue): `app/pages/index.vue`

### Robot operation

- [Teleoperation](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/teleop.vue): `app/pages/teleop.vue`
- [Joystick controls](https://github.com/tny-robotics/tny-360-web/blob/main/app/components/teleop/Joystick.vue): `app/components/teleop/Joystick.vue`
- [Animation studio](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/dash/movements.vue): `app/pages/dash/movements.vue`

### Dashboard and tools

- [Robot calibration](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/calibration.vue): `app/pages/calibration.vue`
- [Telemetry dashboard](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/dash/index.vue): `app/pages/dash/index.vue`
- [Live 3D view](https://github.com/tny-robotics/tny-360-web/blob/main/app/components/dash/TNY360View.vue): `app/components/dash/TNY360View.vue`
- [Joint controls](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/dash/joints.vue): `app/pages/dash/joints.vue`
- [Joint calibration](https://github.com/tny-robotics/tny-360-web/blob/main/app/components/dash/joint/CalibrationModal.vue): `app/components/dash/joint/CalibrationModal.vue`
- [Diagnostic mode](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/diagnostic.vue): `app/pages/diagnostic.vue`
- [Error review](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/errors.vue): `app/pages/errors.vue`
- [Robot file explorer](https://github.com/tny-robotics/tny-360-web/blob/main/app/components/FileExplorer.vue): `app/components/FileExplorer.vue`
- [Text editor](https://github.com/tny-robotics/tny-360-web/blob/main/app/components/TextEditor.vue): `app/components/TextEditor.vue`

### Block coding

- [Coder workspace](https://github.com/tny-robotics/tny-360-web/blob/main/app/pages/coder.vue): `app/pages/coder.vue`
- [Blockly workspace](https://github.com/tny-robotics/tny-360-web/blob/main/app/components/coder/BlocklyZone.vue): `app/components/coder/BlocklyZone.vue`
- [Coder engine](https://github.com/tny-robotics/tny-360-web/blob/main/app/assets/scripts/coder.main.ts): `app/assets/scripts/coder.main.ts`

### Robot and data access

- **TNY-360 SDK**
- [Robot connection](https://github.com/tny-robotics/tny-360-web/blob/main/app/composables/TNY360.ts): `app/composables/TNY360.ts`
- [User-data API](https://github.com/tny-robotics/tny-360-web/blob/main/app/composables/userdata.ts): `app/composables/userdata.ts`

### Other components

- **Robot owner**
- **TNY-360 robot**

## Connections

- Robot owner → Workspace home: opens app (evidence: `README.md`)
- Workspace home → Teleoperation: offers drive (evidence: `README.md`)
- Workspace home → Animation studio: offers animation (evidence: `README.md`)
- Workspace home → Coder workspace: offers coding (evidence: `README.md`)
- Workspace home → Telemetry dashboard: offers toolkit (evidence: `README.md`)
- Robot owner → Robot calibration: calibrates robot (evidence: `README.md`)
- Robot owner → Diagnostic mode: runs diagnostics (evidence: `README.md`)
- Robot owner → Robot file explorer: manages files (evidence: `README.md`)
- Blockly workspace → Coder engine: initializes (evidence: `app/components/coder/BlocklyZone.vue`)
- Blockly workspace → Robot connection: exposes robot API (evidence: `app/components/coder/BlocklyZone.vue`)
- Telemetry dashboard → Robot connection: requests statistics (evidence: `app/pages/dash/index.vue`)
- Live 3D view → Robot connection: requests joint data (evidence: `app/components/dash/TNY360View.vue`)
- Robot connection → TNY-360 SDK: creates client (evidence: `app/composables/TNY360.ts`)
- Robot connection → TNY-360 robot: connects (evidence: `app/composables/TNY360.ts`)
- Robot file explorer → User-data API: lists and edits files (evidence: `app/components/FileExplorer.vue`)
- User-data API → Robot connection: gets robot address (evidence: `app/composables/userdata.ts`)
- User-data API → TNY-360 robot: reads and writes files (evidence: `app/composables/userdata.ts`)
- Robot calibration → TNY-360 robot: calibrates joints (evidence: `app/pages/calibration.vue`)
- Joint calibration → TNY-360 robot: sets calibration (evidence: `app/components/dash/joint/CalibrationModal.vue`)
