# aniruddha76/sudosync architecture

> Architecture diagram of the GitHub repository aniruddha76/sudosync, 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/aniruddha76/sudosync
- Repository: https://github.com/aniruddha76/sudosync

## Overview

SudoSync is a Flutter client for administering Linux hosts over SSH. The documented user flow is to enter a server address and credentials, connect, then use focused screens for monitoring and administration. The README describes the capabilities, but no Dart source excerpts were provided, so screen-to-service calls and internal routing are shown only as unverified dashed relationships; platform runner and build files are not part of the product map.

Main entry points: [`lib/screens/home_page.dart`](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/home_page.dart) (Dashboard), [`lib/service/ssh_service.dart`](https://github.com/aniruddha76/sudosync/blob/master/lib/service/ssh_service.dart) (SSH service), [`lib/screens/file_explorer.dart`](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/file_explorer.dart) (File explorer), [`lib/screens/server_list_page.dart`](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/server_list_page.dart) (Saved servers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_onboarding["Connection setup"]
  node_app["Flutter app<br/>[main.dart]"]
  node_login["Server login<br/>[login_page.dart]"]
  node_server_list["Saved servers"]
end

subgraph group_ssh["SSH access"]
  node_ssh["SSH service<br/>[ssh_service.dart]"]
  node_terminal["SSH terminal"]
end

subgraph group_admin["System administration"]
  node_home["Dashboard<br/>[home_page.dart]"]
  node_monitor["System monitor"]
  node_control["Control panel<br/>[control_panel.dart]"]
  node_services["Service manager<br/>[services_page.dart]"]
  node_network["Network monitor<br/>[network_page.dart]"]
  node_profile["Host profile<br/>[profile_page.dart]"]
  node_updates["System updates"]
end

subgraph group_files["Files and media"]
  node_explorer["File explorer<br/>[file_explorer.dart]"]
  node_image["Image viewer<br/>[image_viewer.dart]"]
  node_video["Video player"]
end

subgraph group_state["App state"]
  node_server_model["Server model<br/>[server.dart]"]
  node_storage["Server storage"]
end

node_user(("Administrator"))
node_linux_host(("Linux host"))

node_user -->|"opens"| node_app
node_app -.->|"starts setup"| node_login
node_user -->|"enters credentials"| node_login
node_login -.->|"connects via"| node_ssh
node_ssh -->|"opens SSH"| node_linux_host
node_user -.->|"selects host"| node_server_list
node_server_list -.->|"uses"| node_server_model
node_server_list -.->|"loads saved hosts"| node_storage
node_user -->|"manages host"| node_home
node_home -.->|"views metrics"| node_monitor
node_home -.->|"opens controls"| node_control
node_home -.->|"manages services"| node_services
node_home -.->|"views network"| node_network
node_home -.->|"views profile"| node_profile
node_home -.->|"opens updates"| node_updates
node_home -.->|"opens terminal"| node_terminal
node_home -.->|"browses files"| node_explorer
node_explorer -.->|"opens images"| node_image
node_explorer -.->|"plays video"| node_video
node_monitor -.->|"queries host"| node_ssh
node_control -.->|"sends controls"| node_ssh
node_services -.->|"queries services"| node_ssh
node_network -.->|"queries network"| node_ssh
node_profile -.->|"queries host"| node_ssh
node_updates -.->|"queries updates"| node_ssh
node_terminal -.->|"uses session"| node_ssh
node_explorer -.->|"transfers files"| node_ssh

click node_app "https://github.com/aniruddha76/sudosync/blob/master/lib/main.dart"
click node_login "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/login_page.dart"
click node_server_list "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/server_list_page.dart"
click node_server_model "https://github.com/aniruddha76/sudosync/blob/master/lib/models/server.dart"
click node_storage "https://github.com/aniruddha76/sudosync/blob/master/lib/service/server_storage.dart"
click node_ssh "https://github.com/aniruddha76/sudosync/blob/master/lib/service/ssh_service.dart"
click node_home "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/home_page.dart"
click node_monitor "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/system_monitor.dart"
click node_control "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/control_panel.dart"
click node_services "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/services_page.dart"
click node_network "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/network_page.dart"
click node_profile "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/profile_page.dart"
click node_updates "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/system_updates_page.dart"
click node_terminal "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/terminal_screen.dart"
click node_explorer "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/file_explorer.dart"
click node_image "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/image_viewer.dart"
click node_video "https://github.com/aniruddha76/sudosync/blob/master/lib/screens/video_player_page.dart"

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_app,node_login,node_server_list toneBlue
class node_ssh,node_terminal toneAmber
class node_home,node_monitor,node_control,node_services,node_network,node_profile,node_updates toneMint
class node_explorer,node_image,node_video toneRose
class node_server_model,node_storage,node_user,node_linux_host toneIndigo
```

## Components

### Connection setup

- [Flutter app](https://github.com/aniruddha76/sudosync/blob/master/lib/main.dart): `lib/main.dart`
- [Server login](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/login_page.dart): `lib/screens/login_page.dart`
- [Saved servers](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/server_list_page.dart): `lib/screens/server_list_page.dart`

### SSH access

- [SSH service](https://github.com/aniruddha76/sudosync/blob/master/lib/service/ssh_service.dart): `lib/service/ssh_service.dart`
- [SSH terminal](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/terminal_screen.dart): `lib/screens/terminal_screen.dart`

### System administration

- [Dashboard](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/home_page.dart): `lib/screens/home_page.dart`
- [System monitor](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/system_monitor.dart): `lib/screens/system_monitor.dart`
- [Control panel](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/control_panel.dart): `lib/screens/control_panel.dart`
- [Service manager](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/services_page.dart): `lib/screens/services_page.dart`
- [Network monitor](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/network_page.dart): `lib/screens/network_page.dart`
- [Host profile](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/profile_page.dart): `lib/screens/profile_page.dart`
- [System updates](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/system_updates_page.dart): `lib/screens/system_updates_page.dart`

### Files and media

- [File explorer](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/file_explorer.dart): `lib/screens/file_explorer.dart`
- [Image viewer](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/image_viewer.dart): `lib/screens/image_viewer.dart`
- [Video player](https://github.com/aniruddha76/sudosync/blob/master/lib/screens/video_player_page.dart): `lib/screens/video_player_page.dart`

### App state

- [Server model](https://github.com/aniruddha76/sudosync/blob/master/lib/models/server.dart): `lib/models/server.dart`
- [Server storage](https://github.com/aniruddha76/sudosync/blob/master/lib/service/server_storage.dart): `lib/service/server_storage.dart`

### Other components

- **Administrator**
- **Linux host**

## Connections

- Administrator → Flutter app: opens (evidence: `README.md`)
- Flutter app → Server login: starts setup
- Administrator → Server login: enters credentials (evidence: `README.md`)
- Server login → SSH service: connects via
- SSH service → Linux host: opens SSH (evidence: `README.md`)
- Administrator → Saved servers: selects host
- Saved servers → Server model: uses
- Saved servers → Server storage: loads saved hosts
- Administrator → Dashboard: manages host (evidence: `README.md`)
- Dashboard → System monitor: views metrics
- Dashboard → Control panel: opens controls
- Dashboard → Service manager: manages services
- Dashboard → Network monitor: views network
- Dashboard → Host profile: views profile
- Dashboard → System updates: opens updates
- Dashboard → SSH terminal: opens terminal
- Dashboard → File explorer: browses files
- File explorer → Image viewer: opens images
- File explorer → Video player: plays video
- System monitor → SSH service: queries host
- Control panel → SSH service: sends controls
- Service manager → SSH service: queries services
- Network monitor → SSH service: queries network
- Host profile → SSH service: queries host
- System updates → SSH service: queries updates
- SSH terminal → SSH service: uses session
- File explorer → SSH service: transfers files
