# storytold/craft-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/storytold/craft-launcher
- Repository: https://github.com/storytold/craft-launcher

## Overview

ArtCraft Launcher presents the Craft App Suite catalog, detects installed apps and compatible builds, fetches release information, and lets users install, update, or open apps. The native backend owns platform operations; the shared egui interface also serves a browser catalog. README-documented features include checksum verification, self-updates, tray use, and localization. Some internal wiring is unsampled, so edges rely on excerpts, the SOURCE INDEX, or documented relationships rather than inferred module proximity.

Main entry points: [`crates/native/src/backend.rs`](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/backend.rs) (Native backend), [`crates/native/src/install.rs`](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/install.rs) (Install and update), [`crates/ui-egui/src/app.rs`](https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/app.rs) (Launcher UI), [`crates/core/src/feed.rs`](https://github.com/storytold/craft-launcher/blob/main/crates/core/src/feed.rs) (Release feed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interfaces"]
  node_desktop["Desktop launcher<br/>[main.rs]"]
  node_web["Web catalog<br/>[web.rs]"]
end

subgraph group_domain["Catalog and releases"]
  node_catalog["App catalog<br/>[catalog.rs]"]
  node_platform_pick["Build selection<br/>[platform.rs]"]
  node_release_feed["Release feed<br/>[feed.rs]"]
  node_release["Release data<br/>[release.rs]"]
  node_time["Release timing<br/>[time.rs]"]
end

subgraph group_runtime["Native runtime"]
  node_backend["Native backend<br/>[backend.rs]"]
  node_detection["App detection<br/>[detect.rs]"]
  node_installer["Install and update<br/>[install.rs]"]
  node_manifest["Install manifest<br/>[manifest.rs]"]
  node_self_update["Launcher self-update<br/>[self_update.rs]"]
end

subgraph group_presentation["UI presentation"]
  node_ui["Launcher UI<br/>[app.rs]"]
  node_views["Catalog views<br/>[views.rs]"]
  node_settings["UI settings<br/>[settings.rs]"]
  node_localization["Localization<br/>[lang.rs]"]
  node_theme["Theme and fonts<br/>[theme.rs]"]
  node_widgets["UI widgets<br/>[widgets.rs]"]
end

subgraph group_platform["Platform integration"]
  node_http["HTTP and downloads<br/>[http.rs]"]
  node_paths["Install paths<br/>[paths.rs]"]
  node_process["Process launching<br/>[process.rs]"]
end

node_user(("Launcher user"))
node_github{{"GitHub releases"}}
node_operating_system{{"Operating system"}}
node_installed_apps[("Installed apps")]

node_user -->|"opens"| node_desktop
node_user -->|"views catalog"| node_web
node_desktop -->|"hosts"| node_ui
node_ui -->|"sends commands"| node_backend
node_ui -->|"renders"| node_views
node_views -->|"uses"| node_widgets
node_ui -->|"reads settings"| node_settings
node_ui -->|"selects language"| node_localization
node_ui -->|"configures appearance"| node_theme
node_backend -->|"detects installs"| node_detection
node_backend -->|"fetches feed"| node_release_feed
node_backend -->|"dispatches installs"| node_installer
node_backend -->|"uses requests"| node_http
node_backend -->|"uses manifest"| node_manifest
node_backend -->|"uses paths"| node_paths
node_backend -->|"launches processes"| node_process
node_backend -->|"dispatches self-update"| node_self_update
node_release_feed -->|"checks releases"| node_github
node_release_feed -->|"uses app catalog"| node_catalog
node_release_feed -->|"uses release data"| node_release
node_release_feed -->|"uses timestamps"| node_time
node_installer -->|"downloads packages"| node_http
node_installer -->|"reads metadata"| node_manifest
node_installer -->|"chooses destinations"| node_paths
node_installer -->|"starts apps"| node_process
node_installer -->|"installs packages"| node_operating_system
node_installer -->|"writes installs"| node_installed_apps
node_detection -->|"discovers apps"| node_installed_apps
node_detection -.->|"selects compatible build"| node_platform_pick
node_self_update -->|"checks launcher release"| node_github
node_web -->|"shows catalog"| node_catalog
node_web -->|"shows latest downloads"| node_release_feed

click node_desktop "https://github.com/storytold/craft-launcher/blob/main/apps/artcraft-launcher/src/main.rs"
click node_web "https://github.com/storytold/craft-launcher/blob/main/apps/artcraft-launcher-web/src/web.rs"
click node_ui "https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/app.rs"
click node_views "https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/views.rs"
click node_settings "https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/settings.rs"
click node_localization "https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/i18n/lang.rs"
click node_theme "https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/theme.rs"
click node_widgets "https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/widgets.rs"
click node_catalog "https://github.com/storytold/craft-launcher/blob/main/crates/core/src/catalog.rs"
click node_platform_pick "https://github.com/storytold/craft-launcher/blob/main/crates/core/src/platform.rs"
click node_release_feed "https://github.com/storytold/craft-launcher/blob/main/crates/core/src/feed.rs"
click node_release "https://github.com/storytold/craft-launcher/blob/main/crates/core/src/release.rs"
click node_time "https://github.com/storytold/craft-launcher/blob/main/crates/core/src/time.rs"
click node_backend "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/backend.rs"
click node_detection "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/detect.rs"
click node_installer "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/install.rs"
click node_manifest "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/manifest.rs"
click node_self_update "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/self_update.rs"
click node_http "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/http.rs"
click node_paths "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/paths.rs"
click node_process "https://github.com/storytold/craft-launcher/blob/main/crates/native/src/process.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_desktop,node_web,node_user toneBlue
class node_catalog,node_platform_pick,node_release_feed,node_release,node_time,node_installed_apps toneAmber
class node_backend,node_detection,node_installer,node_manifest,node_self_update toneMint
class node_ui,node_views,node_settings,node_localization,node_theme,node_widgets toneRose
class node_http,node_paths,node_process,node_github,node_operating_system toneIndigo
```

## Components

### User interfaces

- [Desktop launcher](https://github.com/storytold/craft-launcher/blob/main/apps/artcraft-launcher/src/main.rs): `apps/artcraft-launcher/src/main.rs`
- [Web catalog](https://github.com/storytold/craft-launcher/blob/main/apps/artcraft-launcher-web/src/web.rs): `apps/artcraft-launcher-web/src/web.rs`

### Catalog and releases

- [App catalog](https://github.com/storytold/craft-launcher/blob/main/crates/core/src/catalog.rs): `crates/core/src/catalog.rs`
- [Build selection](https://github.com/storytold/craft-launcher/blob/main/crates/core/src/platform.rs): `crates/core/src/platform.rs`
- [Release feed](https://github.com/storytold/craft-launcher/blob/main/crates/core/src/feed.rs): `crates/core/src/feed.rs`
- [Release data](https://github.com/storytold/craft-launcher/blob/main/crates/core/src/release.rs): `crates/core/src/release.rs`
- [Release timing](https://github.com/storytold/craft-launcher/blob/main/crates/core/src/time.rs): `crates/core/src/time.rs`

### Native runtime

- [Native backend](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/backend.rs): `crates/native/src/backend.rs`
- [App detection](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/detect.rs): `crates/native/src/detect.rs`
- [Install and update](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/install.rs): `crates/native/src/install.rs`
- [Install manifest](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/manifest.rs): `crates/native/src/manifest.rs`
- [Launcher self-update](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/self_update.rs): `crates/native/src/self_update.rs`

### UI presentation

- [Launcher UI](https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/app.rs): `crates/ui-egui/src/app.rs`
- [Catalog views](https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/views.rs): `crates/ui-egui/src/views.rs`
- [UI settings](https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/settings.rs): `crates/ui-egui/src/settings.rs`
- [Localization](https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/i18n/lang.rs): `crates/ui-egui/src/i18n/lang.rs`
- [Theme and fonts](https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/theme.rs): `crates/ui-egui/src/theme.rs`
- [UI widgets](https://github.com/storytold/craft-launcher/blob/main/crates/ui-egui/src/widgets.rs): `crates/ui-egui/src/widgets.rs`

### Platform integration

- [HTTP and downloads](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/http.rs): `crates/native/src/http.rs`
- [Install paths](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/paths.rs): `crates/native/src/paths.rs`
- [Process launching](https://github.com/storytold/craft-launcher/blob/main/crates/native/src/process.rs): `crates/native/src/process.rs`

### Other components

- **Launcher user**
- **GitHub releases**
- **Operating system**
- **Installed apps**

## Connections

- Launcher user → Desktop launcher: opens (evidence: `README.md`)
- Launcher user → Web catalog: views catalog (evidence: `README.md`)
- Desktop launcher → Launcher UI: hosts (evidence: `apps/artcraft-launcher/src/main.rs`)
- Launcher UI → Native backend: sends commands (evidence: `crates/ui-egui/src/app.rs`)
- Launcher UI → Catalog views: renders (evidence: `crates/ui-egui/src/app.rs`)
- Catalog views → UI widgets: uses (evidence: `crates/ui-egui/src/views.rs`)
- Launcher UI → UI settings: reads settings (evidence: `crates/ui-egui/src/app.rs`)
- Launcher UI → Localization: selects language (evidence: `crates/ui-egui/src/app.rs`)
- Launcher UI → Theme and fonts: configures appearance (evidence: `crates/ui-egui/src/app.rs`)
- Native backend → App detection: detects installs (evidence: `crates/native/src/backend.rs`)
- Native backend → Release feed: fetches feed (evidence: `crates/native/src/backend.rs`)
- Native backend → Install and update: dispatches installs (evidence: `crates/native/src/backend.rs`)
- Native backend → HTTP and downloads: uses requests (evidence: `crates/native/src/backend.rs`)
- Native backend → Install manifest: uses manifest (evidence: `crates/native/src/backend.rs`)
- Native backend → Install paths: uses paths (evidence: `crates/native/src/backend.rs`)
- Native backend → Process launching: launches processes (evidence: `crates/native/src/backend.rs`)
- Native backend → Launcher self-update: dispatches self-update (evidence: `crates/native/src/backend.rs`)
- Release feed → GitHub releases: checks releases (evidence: `README.md`)
- Release feed → App catalog: uses app catalog (evidence: `crates/core/src/feed.rs`)
- Release feed → Release data: uses release data (evidence: `crates/core/src/feed.rs`)
- Release feed → Release timing: uses timestamps (evidence: `crates/core/src/feed.rs`)
- Install and update → HTTP and downloads: downloads packages (evidence: `crates/native/src/install.rs`)
- Install and update → Install manifest: reads metadata (evidence: `crates/native/src/install.rs`)
- Install and update → Install paths: chooses destinations (evidence: `crates/native/src/install.rs`)
- Install and update → Process launching: starts apps (evidence: `crates/native/src/install.rs`)
- Install and update → Operating system: installs packages (evidence: `README.md`)
- Install and update → Installed apps: writes installs (evidence: `README.md`)
- App detection → Installed apps: discovers apps (evidence: `README.md`)
- App detection → Build selection: selects compatible build
- Launcher self-update → GitHub releases: checks launcher release (evidence: `README.md`)
- Web catalog → App catalog: shows catalog (evidence: `README.md`)
- Web catalog → Release feed: shows latest downloads (evidence: `README.md`)
