# pronexsteam/deviload architecture

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

- Interactive diagram: https://gitdiagram.com/pronexsteam/deviload
- Repository: https://github.com/pronexsteam/deviload

## Overview

Deviload is a Tauri desktop downloader and media manager. Users add links, choose download options, and manage queued tasks and finished files; separate workflows cover watched channels, phone sharing, conversion, and video editing. The frontend is centered on `src/main.js`, with Rust command and task logic in `src-tauri/src/lib.rs` and supporting modules. Several README-described features are represented at their documented implementation area because their detailed source was not sampled; dashed edges mark relationships not verified in excerpts.

Main entry points: [`src/main.js`](https://github.com/pronexsteam/deviload/blob/main/src/main.js) (Main interface), [`src-tauri/src/lib.rs`](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/lib.rs) (Download queue), [`src/converter.js`](https://github.com/pronexsteam/deviload/blob/main/src/converter.js) (File converter), [`src-tauri/src/watch.rs`](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/watch.rs) (Watched lists)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_app["Main interface<br/>[main.js]"]
  node_viewmodel["Queue presentation<br/>[view-model.js]"]
  node_localization["Localization<br/>[i18n.js]"]
  node_download_ui["Download controls<br/>[main.js]"]
end

subgraph group_download["Download workflows"]
  node_healing["Download recovery<br/>[heal.rs]"]
  node_watching["Watched lists<br/>[watch.rs]"]
  node_library["Media library<br/>[main.js]"]
end

subgraph group_media["Media tools"]
  node_editor_ui["Devil Cut editor<br/>[devil-cut.js]"]
  node_conversion["File converter<br/>[converter.js]"]
end

subgraph group_integrations["Sharing and integrations"]
  node_phone["Phone sharing<br/>[share.rs]"]
  node_media_server["Media server scan<br/>[media_server.rs]"]
end

subgraph group_runtime["Rust runtime"]
  node_queue["Download queue<br/>[lib.rs]"]
  node_job_model["Options and jobs<br/>[model.rs]"]
  node_conversion_runtime["Conversion engine<br/>[convert.rs]"]
end

node_user(("Desktop user"))
node_external_sites(("Video and music sites"))
node_local_media["Local media files"]
node_phone_user(("Phone user"))

node_user -->|"uses"| node_app
node_app -->|"presents"| node_download_ui
node_app -->|"uses"| node_viewmodel
node_app -->|"translates"| node_localization
node_download_ui -.->|"submits tasks"| node_queue
node_external_sites -->|"provides links"| node_download_ui
node_queue -->|"uses options"| node_job_model
node_queue -->|"delegates recovery"| node_healing
node_watching -->|"queues new entries"| node_queue
node_app -.->|"manages watched lists"| node_watching
node_app -->|"manages files"| node_library
node_app -->|"opens editor"| node_editor_ui
node_editor_ui -->|"requests media operations"| node_conversion_runtime
node_app -.->|"opens converter"| node_conversion
node_conversion -.->|"requests conversion"| node_conversion_runtime
node_local_media -->|"provides files"| node_conversion
node_app -.->|"manages phone link"| node_phone
node_phone_user -->|"exchanges media"| node_phone
node_queue -.->|"requests library scan"| node_media_server

click node_app "https://github.com/pronexsteam/deviload/blob/main/src/main.js"
click node_viewmodel "https://github.com/pronexsteam/deviload/blob/main/src/view-model.js"
click node_localization "https://github.com/pronexsteam/deviload/blob/main/src/i18n.js"
click node_download_ui "https://github.com/pronexsteam/deviload/blob/main/src/main.js"
click node_queue "https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/lib.rs"
click node_job_model "https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/model.rs"
click node_healing "https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/heal.rs"
click node_watching "https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/watch.rs"
click node_library "https://github.com/pronexsteam/deviload/blob/main/src/main.js"
click node_editor_ui "https://github.com/pronexsteam/deviload/blob/main/src/devil-cut.js"
click node_conversion "https://github.com/pronexsteam/deviload/blob/main/src/converter.js"
click node_conversion_runtime "https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/convert.rs"
click node_phone "https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/share.rs"
click node_media_server "https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/media_server.rs"

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_viewmodel,node_localization,node_download_ui,node_user,node_phone_user toneBlue
class node_healing,node_watching,node_library toneAmber
class node_editor_ui,node_conversion toneMint
class node_phone,node_media_server toneRose
class node_queue,node_job_model,node_conversion_runtime,node_external_sites,node_local_media toneIndigo
```

## Components

### Desktop interface

- [Main interface](https://github.com/pronexsteam/deviload/blob/main/src/main.js): `src/main.js`
- [Queue presentation](https://github.com/pronexsteam/deviload/blob/main/src/view-model.js): `src/view-model.js`
- [Localization](https://github.com/pronexsteam/deviload/blob/main/src/i18n.js): `src/i18n.js`
- [Download controls](https://github.com/pronexsteam/deviload/blob/main/src/main.js): `src/main.js`

### Download workflows

- [Download recovery](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/heal.rs): `src-tauri/src/heal.rs`
- [Watched lists](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/watch.rs): `src-tauri/src/watch.rs`
- [Media library](https://github.com/pronexsteam/deviload/blob/main/src/main.js): `src/main.js`

### Media tools

- [Devil Cut editor](https://github.com/pronexsteam/deviload/blob/main/src/devil-cut.js): `src/devil-cut.js`
- [File converter](https://github.com/pronexsteam/deviload/blob/main/src/converter.js): `src/converter.js`

### Sharing and integrations

- [Phone sharing](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/share.rs): `src-tauri/src/share.rs`
- [Media server scan](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/media_server.rs): `src-tauri/src/media_server.rs`

### Rust runtime

- [Download queue](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/lib.rs): `src-tauri/src/lib.rs`
- [Options and jobs](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/model.rs): `src-tauri/src/model.rs`
- [Conversion engine](https://github.com/pronexsteam/deviload/blob/main/src-tauri/src/convert.rs): `src-tauri/src/convert.rs`

### Other components

- **Desktop user**
- **Video and music sites**
- **Local media files**
- **Phone user**

## Connections

- Desktop user → Main interface: uses (evidence: `README.md`)
- Main interface → Download controls: presents (evidence: `src/main.js`)
- Main interface → Queue presentation: uses (evidence: `src/main.js`)
- Main interface → Localization: translates (evidence: `src/main.js`)
- Download controls → Download queue: submits tasks
- Video and music sites → Download controls: provides links (evidence: `README.md`)
- Download queue → Options and jobs: uses options (evidence: `src-tauri/src/lib.rs`)
- Download queue → Download recovery: delegates recovery (evidence: `src-tauri/src/lib.rs`)
- Watched lists → Download queue: queues new entries (evidence: `src-tauri/src/watch.rs`)
- Main interface → Watched lists: manages watched lists
- Main interface → Media library: manages files (evidence: `README.md`)
- Main interface → Devil Cut editor: opens editor (evidence: `src/main.js`)
- Devil Cut editor → Conversion engine: requests media operations (evidence: `src/devil-cut.js`)
- Main interface → File converter: opens converter
- File converter → Conversion engine: requests conversion
- Local media files → File converter: provides files (evidence: `README.md`)
- Main interface → Phone sharing: manages phone link
- Phone user → Phone sharing: exchanges media (evidence: `README.md`)
- Download queue → Media server scan: requests library scan (evidence: `src-tauri/src/lib.rs`)
