# andrearicci93/vetro architecture

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

- Interactive diagram: https://gitdiagram.com/andrearicci93/vetro
- Repository: https://github.com/andrearicci93/vetro

## Overview

Vetro is a Samsung Tizen TV manager with a browser dashboard and optional on-TV interfaces. A user opens the dashboard over the local network; the service exposes management features, and root-enabled operations can change TV settings and services. On the TV, the launcher and Control center provide app navigation and system controls, while the tuner overlays a live-TV guide and related screens. The README documents these capabilities; sampled code confirms selected service, platform, launcher, and tuner responsibilities, but many subsystem connections remain unsampled.

Main entry points: [`app/service/main.js`](https://github.com/andrearicci93/vetro/blob/main/app/service/main.js) (HTTP service), [`dock/src/Program.cs`](https://github.com/andrearicci93/vetro/blob/main/dock/src/Program.cs) (Launcher runtime), [`rooting/service/platform.js`](https://github.com/andrearicci93/vetro/blob/main/rooting/service/platform.js) (Platform adapter), [`tuner/src/Program.cs`](https://github.com/andrearicci93/vetro/blob/main/tuner/src/Program.cs) (Tuner runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_management["Dashboard management"]
  node_dashboard["Dashboard<br/>[dashboard.js]"]
  node_service["HTTP service<br/>[main.js]"]
  node_app_inventory["App inventory<br/>[apps.js]"]
  node_app_catalog["App classification<br/>[app-catalog.js]"]
  node_settings["Quick settings<br/>[quick-settings.js]"]
  node_remapper["Remote remapper<br/>[remap.js]"]
end

subgraph group_root["TV operations"]
  node_root_platform["Platform adapter<br/>[platform.js]"]
  node_sdb["SDB connection<br/>[sdb.js]"]
  node_root_agent["Root agent<br/>[root-agent.js]"]
end

subgraph group_launcher["Launcher and dock"]
  node_dock_program["Launcher runtime<br/>[Program.cs]"]
  node_dock_ui["Launcher and Control center<br/>[Dock.cs]"]
  node_dock_controller["Navigation controller<br/>[Controller.cs]"]
  node_task_source["Running-app snapshot<br/>[TaskSource.cs]"]
end

subgraph group_tuner["Live TV tuner"]
  node_tuner_program["Tuner runtime<br/>[Program.cs]"]
  node_tv_client["TV broadcast client<br/>[TvsClient.cs]"]
  node_guide_scene["Guide rendering<br/>[GuideScene.cs]"]
end

node_user(("TV administrator"))
node_browser(("Network browser"))
node_tv["Samsung Tizen TV"]

node_user -->|"opens dashboard"| node_browser
node_browser -->|"sends requests"| node_service
node_service -.->|"serves interface"| node_dashboard
node_service -->|"normalizes inventory"| node_app_inventory
node_app_inventory -->|"classifies apps"| node_app_catalog
node_service -->|"applies settings"| node_settings
node_browser -->|"configures keys"| node_remapper
node_service -->|"uses platform adapter"| node_root_platform
node_root_platform -->|"uses SDB"| node_sdb
node_root_platform -->|"starts agent"| node_root_agent
node_root_platform -->|"runs TV operations"| node_tv
node_dock_program -->|"runs interface"| node_dock_ui
node_dock_program -->|"creates controllers"| node_dock_controller
node_dock_ui -->|"uses controller"| node_dock_controller
node_dock_program -->|"loads task data"| node_task_source
node_dock_program -->|"runs on TV"| node_tv
node_tuner_program -->|"reads TV schedule"| node_tv_client
node_tuner_program -.->|"renders guide"| node_guide_scene
node_tuner_program -->|"overlays live TV"| node_tv

click node_dashboard "https://github.com/andrearicci93/vetro/blob/main/app/service/dashboard.js"
click node_service "https://github.com/andrearicci93/vetro/blob/main/app/service/main.js"
click node_app_inventory "https://github.com/andrearicci93/vetro/blob/main/app/service/apps.js"
click node_app_catalog "https://github.com/andrearicci93/vetro/blob/main/app/service/app-catalog.js"
click node_settings "https://github.com/andrearicci93/vetro/blob/main/app/service/quick-settings.js"
click node_remapper "https://github.com/andrearicci93/vetro/blob/main/app/service/remap.js"
click node_root_platform "https://github.com/andrearicci93/vetro/blob/main/rooting/service/platform.js"
click node_sdb "https://github.com/andrearicci93/vetro/blob/main/rooting/service/sdb.js"
click node_root_agent "https://github.com/andrearicci93/vetro/blob/main/rooting/service/root-agent.js"
click node_dock_program "https://github.com/andrearicci93/vetro/blob/main/dock/src/Program.cs"
click node_dock_ui "https://github.com/andrearicci93/vetro/blob/main/dock/src/Ui/Dock.cs"
click node_dock_controller "https://github.com/andrearicci93/vetro/blob/main/dock/src/Core/Controller.cs"
click node_task_source "https://github.com/andrearicci93/vetro/blob/main/dock/src/Ui/TaskSource.cs"
click node_tuner_program "https://github.com/andrearicci93/vetro/blob/main/tuner/src/Program.cs"
click node_tv_client "https://github.com/andrearicci93/vetro/blob/main/tuner/src/Tvs/TvsClient.cs"
click node_guide_scene "https://github.com/andrearicci93/vetro/blob/main/tuner/src/Core/GuideScene.cs"

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_dashboard,node_service,node_app_inventory,node_app_catalog,node_settings,node_remapper,node_browser toneBlue
class node_root_platform,node_sdb,node_root_agent toneAmber
class node_dock_program,node_dock_ui,node_dock_controller,node_task_source toneMint
class node_tuner_program,node_tv_client,node_guide_scene toneRose
class node_user,node_tv toneIndigo
```

## Components

### Dashboard management

- [Dashboard](https://github.com/andrearicci93/vetro/blob/main/app/service/dashboard.js): `app/service/dashboard.js`
- [HTTP service](https://github.com/andrearicci93/vetro/blob/main/app/service/main.js): `app/service/main.js`
- [App inventory](https://github.com/andrearicci93/vetro/blob/main/app/service/apps.js): `app/service/apps.js`
- [App classification](https://github.com/andrearicci93/vetro/blob/main/app/service/app-catalog.js): `app/service/app-catalog.js`
- [Quick settings](https://github.com/andrearicci93/vetro/blob/main/app/service/quick-settings.js): `app/service/quick-settings.js`
- [Remote remapper](https://github.com/andrearicci93/vetro/blob/main/app/service/remap.js): `app/service/remap.js`

### TV operations

- [Platform adapter](https://github.com/andrearicci93/vetro/blob/main/rooting/service/platform.js): `rooting/service/platform.js`
- [SDB connection](https://github.com/andrearicci93/vetro/blob/main/rooting/service/sdb.js): `rooting/service/sdb.js`
- [Root agent](https://github.com/andrearicci93/vetro/blob/main/rooting/service/root-agent.js): `rooting/service/root-agent.js`

### Launcher and dock

- [Launcher runtime](https://github.com/andrearicci93/vetro/blob/main/dock/src/Program.cs): `dock/src/Program.cs`
- [Launcher and Control center](https://github.com/andrearicci93/vetro/blob/main/dock/src/Ui/Dock.cs): `dock/src/Ui/Dock.cs`
- [Navigation controller](https://github.com/andrearicci93/vetro/blob/main/dock/src/Core/Controller.cs): `dock/src/Core/Controller.cs`
- [Running-app snapshot](https://github.com/andrearicci93/vetro/blob/main/dock/src/Ui/TaskSource.cs): `dock/src/Ui/TaskSource.cs`

### Live TV tuner

- [Tuner runtime](https://github.com/andrearicci93/vetro/blob/main/tuner/src/Program.cs): `tuner/src/Program.cs`
- [TV broadcast client](https://github.com/andrearicci93/vetro/blob/main/tuner/src/Tvs/TvsClient.cs): `tuner/src/Tvs/TvsClient.cs`
- [Guide rendering](https://github.com/andrearicci93/vetro/blob/main/tuner/src/Core/GuideScene.cs): `tuner/src/Core/GuideScene.cs`

### Other components

- **TV administrator**
- **Network browser**
- **Samsung Tizen TV**

## Connections

- TV administrator → Network browser: opens dashboard
- Network browser → HTTP service: sends requests
- HTTP service → Dashboard: serves interface (evidence: `app/service/main.js`)
- HTTP service → App inventory: normalizes inventory (evidence: `app/service/apps.js`)
- App inventory → App classification: classifies apps (evidence: `app/service/apps.js`)
- HTTP service → Quick settings: applies settings (evidence: `app/service/main.js`)
- Network browser → Remote remapper: configures keys
- HTTP service → Platform adapter: uses platform adapter (evidence: `app/service/main.js`)
- Platform adapter → SDB connection: uses SDB (evidence: `rooting/service/platform.js`)
- Platform adapter → Root agent: starts agent (evidence: `rooting/service/platform.js`)
- Platform adapter → Samsung Tizen TV: runs TV operations
- Launcher runtime → Launcher and Control center: runs interface (evidence: `dock/src/Program.cs`)
- Launcher runtime → Navigation controller: creates controllers (evidence: `dock/src/Program.cs`)
- Launcher and Control center → Navigation controller: uses controller (evidence: `dock/src/Ui/Dock.cs`)
- Launcher runtime → Running-app snapshot: loads task data (evidence: `dock/src/Program.cs`)
- Launcher runtime → Samsung Tizen TV: runs on TV
- Tuner runtime → TV broadcast client: reads TV schedule (evidence: `tuner/src/Program.cs`)
- Tuner runtime → Guide rendering: renders guide (evidence: `tuner/src/Program.cs`)
- Tuner runtime → Samsung Tizen TV: overlays live TV
