# koibito86/rtrw-net-manager architecture

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

- Interactive diagram: https://gitdiagram.com/koibito86/rtrw-net-manager
- Repository: https://github.com/koibito86/rtrw-net-manager

## Overview

RT/RW Net Manager is a Flutter Android app for small network operators. The operator uses its dashboard and customer list, can mark a payment paid, and can check a host’s connectivity; the app also supports backend URL configuration and mock customer data when the API is unavailable. The README documents the backend contract, but no source excerpts were provided, so implementation details and internal call ownership cannot be verified; edges below reflect documented capabilities and API behavior.

Main entry points: [`lib/main.dart`](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart) (App interface), [`lib/services/api_service.dart`](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/services/api_service.dart) (API and mock data), [`lib/models/customer.dart`](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/models/customer.dart) (Customer record)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Operator app"]
  node_app_ui["App interface<br/>[main.dart]"]
  node_dashboard["Dashboard<br/>[main.dart]"]
end

subgraph group_domain["Customer operations"]
  node_customer_list["Customer list<br/>[main.dart]"]
  node_customer["Customer record<br/>[customer.dart]"]
  node_payment["Payment marking<br/>[main.dart]"]
  node_connectivity["Host check<br/>[main.dart]"]
end

subgraph group_integration["Backend integration"]
  node_backend_config["Backend URL setting<br/>[main.dart]"]
  node_api_service["API and mock data<br/>[api_service.dart]"]
end

node_operator(("Network operator"))
node_backend{{"Operator backend"}}

node_operator -->|"uses"| node_app_ui
node_app_ui -->|"views"| node_dashboard
node_app_ui -->|"views"| node_customer_list
node_app_ui -->|"marks paid"| node_payment
node_app_ui -->|"checks host"| node_connectivity
node_app_ui -->|"configures"| node_backend_config
node_customer_list -->|"shows"| node_customer
node_api_service -->|"requests households"| node_backend
node_api_service -->|"posts payment"| node_backend
node_api_service -->|"checks status"| node_backend
node_backend_config -->|"sets endpoint"| node_api_service
node_api_service -->|"provides customers"| node_customer_list

click node_app_ui "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart"
click node_dashboard "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart"
click node_customer_list "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart"
click node_customer "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/models/customer.dart"
click node_payment "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart"
click node_connectivity "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart"
click node_backend_config "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart"
click node_api_service "https://github.com/koibito86/rtrw-net-manager/blob/main/lib/services/api_service.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_ui,node_dashboard toneBlue
class node_customer_list,node_customer,node_payment,node_connectivity toneAmber
class node_backend_config,node_api_service toneMint
class node_operator,node_backend toneIndigo
```

## Components

### Operator app

- [App interface](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart): `lib/main.dart`
- [Dashboard](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart): `lib/main.dart`

### Customer operations

- [Customer list](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart): `lib/main.dart`
- [Customer record](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/models/customer.dart): `lib/models/customer.dart`
- [Payment marking](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart): `lib/main.dart`
- [Host check](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart): `lib/main.dart`

### Backend integration

- [Backend URL setting](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/main.dart): `lib/main.dart`
- [API and mock data](https://github.com/koibito86/rtrw-net-manager/blob/main/lib/services/api_service.dart): `lib/services/api_service.dart`

### Other components

- **Network operator**
- **Operator backend**

## Connections

- Network operator → App interface: uses (evidence: `README.md`)
- App interface → Dashboard: views (evidence: `README.md`)
- App interface → Customer list: views (evidence: `README.md`)
- App interface → Payment marking: marks paid (evidence: `README.md`)
- App interface → Host check: checks host (evidence: `README.md`)
- App interface → Backend URL setting: configures (evidence: `README.md`)
- Customer list → Customer record: shows (evidence: `README.md`)
- API and mock data → Operator backend: requests households (evidence: `README.md`)
- API and mock data → Operator backend: posts payment (evidence: `README.md`)
- API and mock data → Operator backend: checks status (evidence: `README.md`)
- Backend URL setting → API and mock data: sets endpoint (evidence: `README.md`)
- API and mock data → Customer list: provides customers (evidence: `README.md`)
