# divudon21/downlist architecture

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

- Interactive diagram: https://gitdiagram.com/divudon21/downlist
- Repository: https://github.com/divudon21/downlist

## Overview

DownList is a Flutter Android client for a user-configured compatible server. Users configure the server, initiate remote downloads or GoFile transfers, upload device files, and monitor progress; they can also browse history and stream media through installed players. The native Android bridge handles file selection, notifications, and player launching, while a foreground transfer service performs uploads and polls remote-task status. Flutter-side module details were not sampled, so those capability nodes and connections are limited to README documentation and exact paths from the tree.

Main entry points: [`lib/main.dart`](https://github.com/divudon21/downlist/blob/main/lib/main.dart) (App navigation), [`lib/services/api_service.dart`](https://github.com/divudon21/downlist/blob/main/lib/services/api_service.dart) (Server API), [`lib/screens/settings_screen.dart`](https://github.com/divudon21/downlist/blob/main/lib/screens/settings_screen.dart) (Settings screens), [`android/app/src/main/kotlin/com/dowlist/com/MainActivity.kt`](https://github.com/divudon21/downlist/blob/main/android/app/src/main/kotlin/com/dowlist/com/MainActivity.kt) (Android bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_flutter["Flutter app"]
  node_app["App navigation<br/>[main.dart]"]
  node_home["Download home<br/>[home_screen.dart]"]
  node_task["Task progress<br/>[task_screen.dart]"]
  node_history["History browser"]
  node_upload["File uploads<br/>[upload_screen.dart]"]
  node_settings["Settings screens"]
  node_taskmodel["Task model<br/>[task_model.dart]"]
end

subgraph group_services["App services"]
  node_api["Server API<br/>[api_service.dart]"]
  node_preferences["Local preferences"]
  node_uploadmgr["Upload manager"]
  node_platform["Platform bridge"]
  node_updates["Update preferences"]
end

subgraph group_android["Android integration"]
  node_androidbridge["Android bridge<br/>[MainActivity.kt]"]
end

subgraph group_transfer["Transfer runtime"]
  node_transfer["Transfer service<br/>[TransferService.kt]"]
end

node_user(("App user"))
node_server[("Compatible server")]
node_device["Device file picker"]
node_player["Installed media player"]

node_user -->|"uses"| node_app
node_app -.->|"opens"| node_home
node_app -.->|"opens"| node_history
node_app -.->|"opens"| node_upload
node_app -.->|"opens"| node_settings
node_home -.->|"requests tasks"| node_api
node_api -.->|"sends requests"| node_server
node_server -.->|"returns status"| node_api
node_api -.->|"maps tasks"| node_taskmodel
node_home -.->|"shows progress"| node_task
node_history -.->|"loads history"| node_api
node_upload -.->|"starts uploads"| node_uploadmgr
node_uploadmgr -.->|"requests native actions"| node_platform
node_platform -.->|"invokes channel"| node_androidbridge
node_androidbridge -->|"opens picker"| node_device
node_androidbridge -->|"forwards upload events"| node_transfer
node_transfer -->|"polls task status"| node_server
node_transfer -->|"uploads files"| node_server
node_settings -.->|"configures"| node_preferences
node_settings -.->|"configures updates"| node_updates
node_history -.->|"streams media"| node_player
node_settings -.->|"sets notification options"| node_androidbridge

click node_app "https://github.com/divudon21/downlist/blob/main/lib/main.dart"
click node_home "https://github.com/divudon21/downlist/blob/main/lib/screens/home_screen.dart"
click node_task "https://github.com/divudon21/downlist/blob/main/lib/screens/task_screen.dart"
click node_history "https://github.com/divudon21/downlist/blob/main/lib/screens/history_screen.dart"
click node_upload "https://github.com/divudon21/downlist/blob/main/lib/screens/upload_screen.dart"
click node_settings "https://github.com/divudon21/downlist/blob/main/lib/screens/settings_screen.dart"
click node_taskmodel "https://github.com/divudon21/downlist/blob/main/lib/models/task_model.dart"
click node_api "https://github.com/divudon21/downlist/blob/main/lib/services/api_service.dart"
click node_preferences "https://github.com/divudon21/downlist/blob/main/lib/services/settings_service.dart"
click node_uploadmgr "https://github.com/divudon21/downlist/blob/main/lib/services/upload_manager.dart"
click node_platform "https://github.com/divudon21/downlist/blob/main/lib/services/platform_service.dart"
click node_updates "https://github.com/divudon21/downlist/blob/main/lib/services/update_service.dart"
click node_androidbridge "https://github.com/divudon21/downlist/blob/main/android/app/src/main/kotlin/com/dowlist/com/MainActivity.kt"
click node_transfer "https://github.com/divudon21/downlist/blob/main/android/app/src/main/kotlin/com/dowlist/com/TransferService.kt"

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_home,node_task,node_history,node_upload,node_settings,node_taskmodel,node_user toneBlue
class node_api,node_preferences,node_uploadmgr,node_platform,node_updates,node_server toneAmber
class node_androidbridge toneMint
class node_transfer toneRose
class node_device,node_player toneIndigo
```

## Components

### Flutter app

- [App navigation](https://github.com/divudon21/downlist/blob/main/lib/main.dart): `lib/main.dart`
- [Download home](https://github.com/divudon21/downlist/blob/main/lib/screens/home_screen.dart): `lib/screens/home_screen.dart`
- [Task progress](https://github.com/divudon21/downlist/blob/main/lib/screens/task_screen.dart): `lib/screens/task_screen.dart`
- [History browser](https://github.com/divudon21/downlist/blob/main/lib/screens/history_screen.dart): `lib/screens/history_screen.dart`
- [File uploads](https://github.com/divudon21/downlist/blob/main/lib/screens/upload_screen.dart): `lib/screens/upload_screen.dart`
- [Settings screens](https://github.com/divudon21/downlist/blob/main/lib/screens/settings_screen.dart): `lib/screens/settings_screen.dart`
- [Task model](https://github.com/divudon21/downlist/blob/main/lib/models/task_model.dart): `lib/models/task_model.dart`

### App services

- [Server API](https://github.com/divudon21/downlist/blob/main/lib/services/api_service.dart): `lib/services/api_service.dart`
- [Local preferences](https://github.com/divudon21/downlist/blob/main/lib/services/settings_service.dart): `lib/services/settings_service.dart`
- [Upload manager](https://github.com/divudon21/downlist/blob/main/lib/services/upload_manager.dart): `lib/services/upload_manager.dart`
- [Platform bridge](https://github.com/divudon21/downlist/blob/main/lib/services/platform_service.dart): `lib/services/platform_service.dart`
- [Update preferences](https://github.com/divudon21/downlist/blob/main/lib/services/update_service.dart): `lib/services/update_service.dart`

### Android integration

- [Android bridge](https://github.com/divudon21/downlist/blob/main/android/app/src/main/kotlin/com/dowlist/com/MainActivity.kt): `android/app/src/main/kotlin/com/dowlist/com/MainActivity.kt`

### Transfer runtime

- [Transfer service](https://github.com/divudon21/downlist/blob/main/android/app/src/main/kotlin/com/dowlist/com/TransferService.kt): `android/app/src/main/kotlin/com/dowlist/com/TransferService.kt`

### Other components

- **App user**
- **Compatible server**
- **Device file picker**
- **Installed media player**

## Connections

- App user → App navigation: uses (evidence: `README.md`)
- App navigation → Download home: opens
- App navigation → History browser: opens
- App navigation → File uploads: opens
- App navigation → Settings screens: opens
- Download home → Server API: requests tasks
- Server API → Compatible server: sends requests
- Compatible server → Server API: returns status
- Server API → Task model: maps tasks
- Download home → Task progress: shows progress
- History browser → Server API: loads history
- File uploads → Upload manager: starts uploads
- Upload manager → Platform bridge: requests native actions
- Platform bridge → Android bridge: invokes channel
- Android bridge → Device file picker: opens picker (evidence: `android/app/src/main/kotlin/com/dowlist/com/MainActivity.kt`)
- Android bridge → Transfer service: forwards upload events (evidence: `android/app/src/main/kotlin/com/dowlist/com/MainActivity.kt`)
- Transfer service → Compatible server: polls task status (evidence: `android/app/src/main/kotlin/com/dowlist/com/TransferService.kt`)
- Transfer service → Compatible server: uploads files (evidence: `android/app/src/main/kotlin/com/dowlist/com/TransferService.kt`)
- Settings screens → Local preferences: configures
- Settings screens → Update preferences: configures updates
- History browser → Installed media player: streams media (evidence: `README.md`)
- Settings screens → Android bridge: sets notification options
