# northmind/crucible architecture

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

- Interactive diagram: https://gitdiagram.com/northmind/crucible
- Repository: https://github.com/northmind/crucible

## Overview

Crucible is a Linux launcher for Windows games using UMU and Proton. The main workflow is adding a game through the desktop UI, saving its per-game configuration, then launching it with resolved settings and a prepared environment. Separate branches cover Proton runner management, artwork lookup, desktop shortcuts, and application appearance/preferences. The README documents capabilities such as wrappers, environment variables, DLL overrides, and Steam artwork. Some backend connections are supported by the SOURCE INDEX rather than full excerpts; uncertain UI-to-JavaScript wiring is omitted.

Main entry points: [`python/crucible/ui/main_window.py`](https://github.com/northmind/crucible/blob/main/python/crucible/ui/main_window.py) (Desktop window), [`python/crucible/core/managers.py`](https://github.com/northmind/crucible/blob/main/python/crucible/core/managers.py) (Game manager), [`python/crucible/ui/web_bridge.py`](https://github.com/northmind/crucible/blob/main/python/crucible/ui/web_bridge.py) (Web bridge), [`python/crucible/core/proton_manager.py`](https://github.com/northmind/crucible/blob/main/python/crucible/core/proton_manager.py) (Proton manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop interface"]
  node_entry["Application entry<br/>[__main__.py]"]
  node_window["Desktop window<br/>[main_window.py]"]
  node_bridge["Web bridge<br/>[web_bridge.py]"]
  node_bridge_settings["Settings bridge"]
  node_bridge_ui["UI bridge<br/>[web_bridge_ui.py]"]
end

subgraph group_library["Game library"]
  node_game_manager["Game manager<br/>[managers.py]"]
  node_game_records[("Game records<br/>[managers.py]")]
  node_shortcuts["Desktop shortcuts"]
end

subgraph group_launch["Launch runtime"]
  node_launcher["Game launcher<br/>[launcher.py]"]
  node_environment["Launch environment<br/>[launch_env.py]"]
  node_process["Process control<br/>[process_control.py]"]
end

subgraph group_runners["Runner management"]
  node_proton["Proton manager<br/>[proton_manager.py]"]
  node_workers["Background workers<br/>[workers.py]"]
  node_archive["Archive utilities<br/>[tar_utils.py]"]
end

subgraph group_extras["Artwork and preferences"]
  node_art_manager["Artwork manager<br/>[artwork_manager.py]"]
  node_art_fetcher["Artwork fetcher<br/>[artwork_fetcher.py]"]
  node_steam_api["Steam lookup<br/>[steam_api.py]"]
  node_app_settings["App preferences<br/>[app_settings.py]"]
  node_theme["Theme system<br/>[theme_system.py]"]
end

node_user(("User"))

node_user -->|"uses"| node_window
node_user -->|"launches"| node_entry
node_entry -->|"opens"| node_window
node_window -->|"registers"| node_bridge
node_window -->|"adds dropped games"| node_bridge
node_bridge -->|"adds games"| node_game_manager
node_bridge -->|"requests artwork"| node_art_manager
node_bridge -->|"manages runners"| node_proton
node_bridge_settings -->|"updates settings"| node_game_manager
node_bridge_settings -->|"manages runners"| node_proton
node_bridge_ui -->|"reads game data"| node_game_manager
node_bridge_ui -->|"updates theme"| node_theme
node_game_manager -->|"reads and writes"| node_game_records
node_entry -->|"scans and launches"| node_game_manager
node_game_manager -->|"delegates launch"| node_launcher
node_launcher -->|"prepares environment"| node_environment
node_launcher -->|"controls process"| node_process
node_launcher -->|"uses shortcuts"| node_shortcuts
node_proton -->|"downloads with"| node_workers
node_proton -->|"uses archive tools"| node_archive
node_art_manager -->|"fetches artwork"| node_art_fetcher
node_art_fetcher -->|"looks up Steam data"| node_steam_api
node_window -->|"initializes runners"| node_proton
node_window -->|"reads preferences"| node_app_settings
node_app_settings -->|"uses settings store"| node_theme

click node_entry "https://github.com/northmind/crucible/blob/main/python/crucible/__main__.py"
click node_window "https://github.com/northmind/crucible/blob/main/python/crucible/ui/main_window.py"
click node_bridge "https://github.com/northmind/crucible/blob/main/python/crucible/ui/web_bridge.py"
click node_bridge_settings "https://github.com/northmind/crucible/blob/main/python/crucible/ui/web_bridge_settings.py"
click node_bridge_ui "https://github.com/northmind/crucible/blob/main/python/crucible/ui/web_bridge_ui.py"
click node_game_manager "https://github.com/northmind/crucible/blob/main/python/crucible/core/managers.py"
click node_game_records "https://github.com/northmind/crucible/blob/main/python/crucible/core/managers.py"
click node_launcher "https://github.com/northmind/crucible/blob/main/python/crucible/core/launcher.py"
click node_environment "https://github.com/northmind/crucible/blob/main/python/crucible/core/launch_env.py"
click node_process "https://github.com/northmind/crucible/blob/main/python/crucible/core/process_control.py"
click node_proton "https://github.com/northmind/crucible/blob/main/python/crucible/core/proton_manager.py"
click node_workers "https://github.com/northmind/crucible/blob/main/python/crucible/core/workers.py"
click node_archive "https://github.com/northmind/crucible/blob/main/python/crucible/core/tar_utils.py"
click node_shortcuts "https://github.com/northmind/crucible/blob/main/python/crucible/core/desktop_shortcuts.py"
click node_art_manager "https://github.com/northmind/crucible/blob/main/python/crucible/ui/artwork_manager.py"
click node_art_fetcher "https://github.com/northmind/crucible/blob/main/python/crucible/ui/artwork_fetcher.py"
click node_steam_api "https://github.com/northmind/crucible/blob/main/python/crucible/ui/steam_api.py"
click node_app_settings "https://github.com/northmind/crucible/blob/main/python/crucible/ui/app_settings.py"
click node_theme "https://github.com/northmind/crucible/blob/main/python/crucible/ui/theme_system.py"

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_entry,node_window,node_bridge,node_bridge_settings,node_bridge_ui,node_user toneBlue
class node_game_manager,node_game_records,node_shortcuts toneAmber
class node_launcher,node_environment,node_process toneMint
class node_proton,node_workers,node_archive toneRose
class node_art_manager,node_art_fetcher,node_steam_api,node_app_settings,node_theme toneIndigo
```

## Components

### Desktop interface

- [Application entry](https://github.com/northmind/crucible/blob/main/python/crucible/__main__.py): `python/crucible/__main__.py`
- [Desktop window](https://github.com/northmind/crucible/blob/main/python/crucible/ui/main_window.py): `python/crucible/ui/main_window.py`
- [Web bridge](https://github.com/northmind/crucible/blob/main/python/crucible/ui/web_bridge.py): `python/crucible/ui/web_bridge.py`
- [Settings bridge](https://github.com/northmind/crucible/blob/main/python/crucible/ui/web_bridge_settings.py): `python/crucible/ui/web_bridge_settings.py`
- [UI bridge](https://github.com/northmind/crucible/blob/main/python/crucible/ui/web_bridge_ui.py): `python/crucible/ui/web_bridge_ui.py`

### Game library

- [Game manager](https://github.com/northmind/crucible/blob/main/python/crucible/core/managers.py): `python/crucible/core/managers.py`
- [Game records](https://github.com/northmind/crucible/blob/main/python/crucible/core/managers.py): `python/crucible/core/managers.py`
- [Desktop shortcuts](https://github.com/northmind/crucible/blob/main/python/crucible/core/desktop_shortcuts.py): `python/crucible/core/desktop_shortcuts.py`

### Launch runtime

- [Game launcher](https://github.com/northmind/crucible/blob/main/python/crucible/core/launcher.py): `python/crucible/core/launcher.py`
- [Launch environment](https://github.com/northmind/crucible/blob/main/python/crucible/core/launch_env.py): `python/crucible/core/launch_env.py`
- [Process control](https://github.com/northmind/crucible/blob/main/python/crucible/core/process_control.py): `python/crucible/core/process_control.py`

### Runner management

- [Proton manager](https://github.com/northmind/crucible/blob/main/python/crucible/core/proton_manager.py): `python/crucible/core/proton_manager.py`
- [Background workers](https://github.com/northmind/crucible/blob/main/python/crucible/core/workers.py): `python/crucible/core/workers.py`
- [Archive utilities](https://github.com/northmind/crucible/blob/main/python/crucible/core/tar_utils.py): `python/crucible/core/tar_utils.py`

### Artwork and preferences

- [Artwork manager](https://github.com/northmind/crucible/blob/main/python/crucible/ui/artwork_manager.py): `python/crucible/ui/artwork_manager.py`
- [Artwork fetcher](https://github.com/northmind/crucible/blob/main/python/crucible/ui/artwork_fetcher.py): `python/crucible/ui/artwork_fetcher.py`
- [Steam lookup](https://github.com/northmind/crucible/blob/main/python/crucible/ui/steam_api.py): `python/crucible/ui/steam_api.py`
- [App preferences](https://github.com/northmind/crucible/blob/main/python/crucible/ui/app_settings.py): `python/crucible/ui/app_settings.py`
- [Theme system](https://github.com/northmind/crucible/blob/main/python/crucible/ui/theme_system.py): `python/crucible/ui/theme_system.py`

### Other components

- **User**

## Connections

- User → Desktop window: uses
- User → Application entry: launches (evidence: `python/crucible/__main__.py`)
- Application entry → Desktop window: opens (evidence: `python/crucible/__main__.py`)
- Desktop window → Web bridge: registers (evidence: `python/crucible/ui/main_window.py`)
- Desktop window → Web bridge: adds dropped games (evidence: `python/crucible/ui/main_window.py`)
- Web bridge → Game manager: adds games (evidence: `python/crucible/ui/web_bridge.py`)
- Web bridge → Artwork manager: requests artwork (evidence: `python/crucible/ui/web_bridge.py`)
- Web bridge → Proton manager: manages runners (evidence: `python/crucible/ui/web_bridge.py`)
- Settings bridge → Game manager: updates settings (evidence: `python/crucible/ui/web_bridge_settings.py`)
- Settings bridge → Proton manager: manages runners (evidence: `python/crucible/ui/web_bridge_settings.py`)
- UI bridge → Game manager: reads game data (evidence: `python/crucible/ui/web_bridge_ui.py`)
- UI bridge → Theme system: updates theme (evidence: `python/crucible/ui/web_bridge_ui.py`)
- Game manager → Game records: reads and writes (evidence: `python/crucible/core/managers.py`)
- Application entry → Game manager: scans and launches (evidence: `python/crucible/__main__.py`)
- Game manager → Game launcher: delegates launch (evidence: `python/crucible/core/managers.py`)
- Game launcher → Launch environment: prepares environment (evidence: `python/crucible/core/launcher.py`)
- Game launcher → Process control: controls process (evidence: `python/crucible/core/launcher.py`)
- Game launcher → Desktop shortcuts: uses shortcuts (evidence: `python/crucible/core/launcher.py`)
- Proton manager → Background workers: downloads with (evidence: `python/crucible/core/proton_manager.py`)
- Proton manager → Archive utilities: uses archive tools (evidence: `python/crucible/core/proton_manager.py`)
- Artwork manager → Artwork fetcher: fetches artwork (evidence: `python/crucible/ui/artwork_manager.py`)
- Artwork fetcher → Steam lookup: looks up Steam data (evidence: `python/crucible/ui/artwork_fetcher.py`)
- Desktop window → Proton manager: initializes runners (evidence: `python/crucible/ui/main_window.py`)
- Desktop window → App preferences: reads preferences (evidence: `python/crucible/ui/main_window.py`)
- App preferences → Theme system: uses settings store (evidence: `python/crucible/ui/app_settings.py`)
