# gkartist75/wan2gp-desktop-tauri architecture

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

- Interactive diagram: https://gitdiagram.com/gkartist75/wan2gp-desktop-tauri
- Repository: https://github.com/gkartist75/wan2gp-desktop-tauri

## Overview

Wan2GP Desktop Launcher is a Windows Tauri application for installing and operating the separate Wan2GP generative-media toolkit. Its main workflow is choosing install locations and an environment, installing the GPU-appropriate runtime, then launching Wan2GP in an embedded desktop view, browser, or terminal. The README also documents monitoring, remote access through Deepy, plugins, DLSS5, guidance, troubleshooting, updates, and migration. Several backend and UI modules are unsampled; their presence is preserved, while relationships not shown by the excerpts or README are omitted.

Main entry points: [`src/app.js`](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/app.js) (Dashboard controls), [`src-tauri/src/install.rs`](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/install.rs) (Install and sync), [`src-tauri/src/launch.rs`](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/launch.rs) (Server lifecycle), [`src/installer-tab.js`](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/installer-tab.js) (Install flow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and hardware"]
  node_installer_ui["Install flow<br/>[installer-tab.js]"]
  node_install_engine["Install and sync<br/>[install.rs]"]
  node_hardware["GPU and metrics<br/>[hw.rs]"]
  node_amd_support["AMD support<br/>[amd.rs]"]
  node_configuration["Configuration<br/>[config.rs]"]
end

subgraph group_runtime["Launch and monitoring"]
  node_launch_ui["Dashboard controls<br/>[app.js]"]
  node_launch_engine["Server lifecycle<br/>[launch.rs]"]
  node_status["Environment status<br/>[status.rs]"]
  node_system["System services<br/>[system.rs]"]
  node_log_server["Log service<br/>[log_server.rs]"]
end

subgraph group_deepy["Deepy and integrations"]
  node_deepy_ui["Deepy controls<br/>[deepy-web-tab.js]"]
  node_deepy_service["Deepy lifecycle<br/>[deepy_web.rs]"]
  node_features["Feature services<br/>[features.rs]"]
  node_plugins["Plugin manager<br/>[plugins.rs]"]
end

subgraph group_guidance["Guidance and library"]
  node_guide["Model guide<br/>[guide-catalog.js]"]
  node_prompt_tools["Prompt tools<br/>[prompt-tools.js]"]
  node_library["Model library<br/>[library-tab.js]"]
end

subgraph group_management["Launcher management"]
  node_troubleshooting["Troubleshooting<br/>[troubleshoot.rs]"]
  node_updates["Updates<br/>[updates.rs]"]
  node_migration["Location migration<br/>[migration-tab.js]"]
  node_dlss["DLSS5 installer<br/>[dlss5-tab.js]"]
end

node_user(("Launcher user"))

node_user -->|"chooses setup"| node_installer_ui
node_installer_ui -->|"starts install"| node_install_engine
node_install_engine -->|"checks hardware"| node_hardware
node_install_engine -->|"uses AMD helpers"| node_amd_support
node_install_engine -->|"loads configuration"| node_configuration
node_user -->|"chooses launch"| node_launch_ui
node_launch_ui -->|"starts or stops"| node_launch_engine
node_launch_engine -->|"resolves environment"| node_status
node_launch_ui -.->|"views metrics"| node_hardware
node_launch_ui -.->|"views logs"| node_log_server
node_user -->|"opens remote access"| node_deepy_ui
node_deepy_ui -->|"controls server"| node_deepy_service
node_deepy_service -->|"shares app lifecycle"| node_launch_engine
node_user -.->|"manages plugins"| node_plugins
node_user -.->|"uses launcher features"| node_features
node_user -->|"browses recommendations"| node_guide
node_user -.->|"uses prompt tools"| node_prompt_tools
node_user -->|"browses models"| node_library
node_user -->|"opens troubleshooting"| node_troubleshooting
node_user -->|"checks updates"| node_updates
node_user -->|"moves installation"| node_migration
node_user -->|"installs optional DLSS"| node_dlss
node_launch_ui -.->|"uses system controls"| node_system

click node_installer_ui "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/installer-tab.js"
click node_install_engine "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/install.rs"
click node_hardware "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/hw.rs"
click node_amd_support "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/amd.rs"
click node_configuration "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/config.rs"
click node_launch_ui "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/app.js"
click node_launch_engine "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/launch.rs"
click node_status "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/status.rs"
click node_system "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/system.rs"
click node_log_server "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/log_server.rs"
click node_deepy_ui "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/deepy-web-tab.js"
click node_deepy_service "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/deepy_web.rs"
click node_features "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/features.rs"
click node_plugins "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/plugins.rs"
click node_guide "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/services/guide-catalog.js"
click node_prompt_tools "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/services/prompt-tools.js"
click node_troubleshooting "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/troubleshoot.rs"
click node_updates "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/updates.rs"
click node_migration "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/migration-tab.js"
click node_dlss "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/dlss5-tab.js"
click node_library "https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/library-tab.js"

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_installer_ui,node_install_engine,node_hardware,node_amd_support,node_configuration,node_user toneBlue
class node_launch_ui,node_launch_engine,node_status,node_system,node_log_server toneAmber
class node_deepy_ui,node_deepy_service,node_features,node_plugins toneMint
class node_guide,node_prompt_tools,node_library toneRose
class node_troubleshooting,node_updates,node_migration,node_dlss toneIndigo
```

## Components

### Setup and hardware

- [Install flow](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/installer-tab.js): `src/installer-tab.js`
- [Install and sync](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/install.rs): `src-tauri/src/install.rs`
- [GPU and metrics](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/hw.rs): `src-tauri/src/hw.rs`
- [AMD support](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/amd.rs): `src-tauri/src/amd.rs`
- [Configuration](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/config.rs): `src-tauri/src/config.rs`

### Launch and monitoring

- [Dashboard controls](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/app.js): `src/app.js`
- [Server lifecycle](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/launch.rs): `src-tauri/src/launch.rs`
- [Environment status](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/status.rs): `src-tauri/src/status.rs`
- [System services](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/system.rs): `src-tauri/src/system.rs`
- [Log service](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/log_server.rs): `src-tauri/src/log_server.rs`

### Deepy and integrations

- [Deepy controls](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/deepy-web-tab.js): `src/deepy-web-tab.js`
- [Deepy lifecycle](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/deepy_web.rs): `src-tauri/src/deepy_web.rs`
- [Feature services](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/features.rs): `src-tauri/src/features.rs`
- [Plugin manager](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/plugins.rs): `src-tauri/src/plugins.rs`

### Guidance and library

- [Model guide](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/services/guide-catalog.js): `src/services/guide-catalog.js`
- [Prompt tools](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/services/prompt-tools.js): `src/services/prompt-tools.js`
- [Model library](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/library-tab.js): `src/library-tab.js`

### Launcher management

- [Troubleshooting](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/troubleshoot.rs): `src-tauri/src/troubleshoot.rs`
- [Updates](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src-tauri/src/updates.rs): `src-tauri/src/updates.rs`
- [Location migration](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/migration-tab.js): `src/migration-tab.js`
- [DLSS5 installer](https://github.com/gkartist75/wan2gp-desktop-tauri/blob/master/src/dlss5-tab.js): `src/dlss5-tab.js`

### Other components

- **Launcher user**

## Connections

- Launcher user → Install flow: chooses setup
- Install flow → Install and sync: starts install
- Install and sync → GPU and metrics: checks hardware (evidence: `src-tauri/src/install.rs`)
- Install and sync → AMD support: uses AMD helpers (evidence: `src-tauri/src/install.rs`)
- Install and sync → Configuration: loads configuration (evidence: `src-tauri/src/install.rs`)
- Launcher user → Dashboard controls: chooses launch
- Dashboard controls → Server lifecycle: starts or stops (evidence: `src/app.js`)
- Server lifecycle → Environment status: resolves environment (evidence: `src-tauri/src/launch.rs`)
- Dashboard controls → GPU and metrics: views metrics
- Dashboard controls → Log service: views logs
- Launcher user → Deepy controls: opens remote access
- Deepy controls → Deepy lifecycle: controls server
- Deepy lifecycle → Server lifecycle: shares app lifecycle (evidence: `src-tauri/src/launch.rs`)
- Launcher user → Plugin manager: manages plugins
- Launcher user → Feature services: uses launcher features
- Launcher user → Model guide: browses recommendations
- Launcher user → Prompt tools: uses prompt tools
- Launcher user → Model library: browses models
- Launcher user → Troubleshooting: opens troubleshooting
- Launcher user → Updates: checks updates
- Launcher user → Location migration: moves installation
- Launcher user → DLSS5 installer: installs optional DLSS
- Dashboard controls → System services: uses system controls
