# zimn09/zimn-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/zimn09/zimn-launcher
- Repository: https://github.com/zimn09/zimn-launcher

## Overview

ZimnLauncher is a desktop game-library launcher. Users add a game, browse and configure its card, then launch it with a runner selected by file type; settings and library metadata are persisted locally. The single substantial Rust source file implements the UI, persistence, tool downloads and launch runners, so distinct nodes share that exact path. README capabilities include Wine prefixes, APK via Waydroid/ADB/custom commands, and appearance/search options. Source excerpts are partial, so links for unsampled internal stages are omitted; documented external runner relationships are cited to the README.

Main entry points: [`src/main.rs`](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs) (Launch dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_library["Library and UI"]
  node_app["Desktop app<br/>[main.rs]"]
  node_library_ui["Library UI<br/>[main.rs]"]
  node_game_metadata["Game metadata<br/>[main.rs]"]
  node_local_data[("Local data files")]
end

subgraph group_launch["Launch and runners"]
  node_launch_dispatch["Launch dispatch<br/>[main.rs]"]
  node_wine_runner["Wine runner<br/>[main.rs]"]
  node_appimage_runner["AppImage runner<br/>[main.rs]"]
  node_java_runner["Java runner<br/>[main.rs]"]
  node_apk_runner["APK runners<br/>[main.rs]"]
end

subgraph group_setup["Tools and configuration"]
  node_settings_ui["Settings UI<br/>[main.rs]"]
  node_tool_setup["Tool downloads<br/>[main.rs]"]
end

node_user(("User"))
node_waydroid{{"Waydroid"}}
node_adb_emulator{{"ADB / emulator"}}
node_custom_runner{{"Custom command"}}
node_external_tools{{"Wine / Java / adb"}}

node_user -->|"uses"| node_app
node_app -->|"renders"| node_library_ui
node_library_ui -->|"edits"| node_game_metadata
node_app -->|"loads and saves"| node_local_data
node_game_metadata -->|"persists"| node_local_data
node_user -->|"launches game"| node_launch_dispatch
node_launch_dispatch -.->|"runs exe"| node_wine_runner
node_launch_dispatch -.->|"runs AppImage"| node_appimage_runner
node_launch_dispatch -.->|"runs jar"| node_java_runner
node_launch_dispatch -.->|"runs apk"| node_apk_runner
node_apk_runner -.->|"installs and starts"| node_waydroid
node_apk_runner -.->|"installs and starts"| node_adb_emulator
node_apk_runner -.->|"runs command"| node_custom_runner
node_user -->|"configures"| node_settings_ui
node_settings_ui -.->|"saves settings"| node_local_data
node_tool_setup -->|"downloads missing"| node_external_tools
node_wine_runner -.->|"uses configured tool"| node_external_tools
node_java_runner -.->|"uses configured tool"| node_external_tools
node_apk_runner -.->|"uses adb"| node_external_tools
node_user -->|"requests downloads"| node_tool_setup

click node_app "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_library_ui "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_game_metadata "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_launch_dispatch "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_wine_runner "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_appimage_runner "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_java_runner "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_apk_runner "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_settings_ui "https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs"
click node_tool_setup "https://github.com/zimn09/zimn-launcher/blob/main/src/main.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_library_ui,node_game_metadata,node_local_data,node_user toneBlue
class node_launch_dispatch,node_wine_runner,node_appimage_runner,node_java_runner,node_apk_runner toneAmber
class node_settings_ui,node_tool_setup toneMint
class node_waydroid,node_adb_emulator,node_custom_runner,node_external_tools toneIndigo
```

## Components

### Library and UI

- [Desktop app](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- [Library UI](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- [Game metadata](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- **Local data files**

### Launch and runners

- [Launch dispatch](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- [Wine runner](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- [AppImage runner](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- [Java runner](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- [APK runners](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`

### Tools and configuration

- [Settings UI](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`
- [Tool downloads](https://github.com/zimn09/zimn-launcher/blob/main/src/main.rs): `src/main.rs`

### Other components

- **User**
- **Waydroid**
- **ADB / emulator**
- **Custom command**
- **Wine / Java / adb**

## Connections

- User → Desktop app: uses (evidence: `README.md`)
- Desktop app → Library UI: renders (evidence: `src/main.rs`)
- Library UI → Game metadata: edits (evidence: `src/main.rs`)
- Desktop app → Local data files: loads and saves (evidence: `src/main.rs`)
- Game metadata → Local data files: persists (evidence: `src/main.rs`)
- User → Launch dispatch: launches game (evidence: `README.md`)
- Launch dispatch → Wine runner: runs exe (evidence: `src/main.rs`)
- Launch dispatch → AppImage runner: runs AppImage (evidence: `src/main.rs`)
- Launch dispatch → Java runner: runs jar (evidence: `src/main.rs`)
- Launch dispatch → APK runners: runs apk (evidence: `src/main.rs`)
- APK runners → Waydroid: installs and starts (evidence: `README.md`)
- APK runners → ADB / emulator: installs and starts (evidence: `README.md`)
- APK runners → Custom command: runs command (evidence: `README.md`)
- User → Settings UI: configures (evidence: `README.md`)
- Settings UI → Local data files: saves settings
- Tool downloads → Wine / Java / adb: downloads missing (evidence: `src/main.rs`)
- Wine runner → Wine / Java / adb: uses configured tool (evidence: `README.md`)
- Java runner → Wine / Java / adb: uses configured tool (evidence: `README.md`)
- APK runners → Wine / Java / adb: uses adb (evidence: `README.md`)
- User → Tool downloads: requests downloads (evidence: `README.md`)
