# baonq0507/slay-the-spire-2-mod-loader architecture

> Architecture diagram of the GitHub repository baonq0507/slay-the-spire-2-mod-loader, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/baonq0507/slay-the-spire-2-mod-loader
- Repository: https://github.com/baonq0507/slay-the-spire-2-mod-loader

## Overview

The repository presents itself as a Windows Slay the Spire 2 mod-loader and configuration suite. Its evidenced runtime path is small: a user launches the host, which optionally checks an argument as a configuration-file path and logs that path. The README describes additional lifecycle, profile-backup, telemetry-tuning, and unattended-CLI capabilities, but the provided source excerpts do not show their implementations. Those capabilities are represented as documented subsystems, not inferred runtime call chains.

Main entry points: [`src/SlayTheSpire2ModLoaderHost.cs`](https://github.com/baonq0507/slay-the-spire-2-mod-loader/blob/main/src/SlayTheSpire2ModLoaderHost.cs) (Loader host), [`config/settings.json`](https://github.com/baonq0507/slay-the-spire-2-mod-loader/blob/main/config/settings.json) (Runtime settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime"]
  node_host["Loader host"]
  node_settings["Runtime settings<br/>[settings.json]"]
end

subgraph group_documented["Documented capabilities"]
  node_lifecycle["Portable lifecycle"]
  node_profiles["Profile snapshots"]
  node_tuner["Telemetry task tuner"]
  node_cli["Unattended CLI"]
end

node_user(("User"))

node_user -->|"launches"| node_host
node_host -->|"checks path"| node_settings
node_settings -->|"configures"| node_host

click node_host "https://github.com/baonq0507/slay-the-spire-2-mod-loader/blob/main/src/SlayTheSpire2ModLoaderHost.cs"
click node_settings "https://github.com/baonq0507/slay-the-spire-2-mod-loader/blob/main/config/settings.json"
click node_lifecycle "https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src"
click node_profiles "https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src"
click node_tuner "https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src"
click node_cli "https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src"

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_host,node_settings,node_user toneBlue
class node_lifecycle,node_profiles,node_tuner,node_cli toneAmber
```

## Components

### Runtime

- [Loader host](https://github.com/baonq0507/slay-the-spire-2-mod-loader/blob/main/src/SlayTheSpire2ModLoaderHost.cs): `src/SlayTheSpire2ModLoaderHost.cs`
- [Runtime settings](https://github.com/baonq0507/slay-the-spire-2-mod-loader/blob/main/config/settings.json): `config/settings.json`

### Documented capabilities

- [Portable lifecycle](https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src): `src`
- [Profile snapshots](https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src): `src`
- [Telemetry task tuner](https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src): `src`
- [Unattended CLI](https://github.com/baonq0507/slay-the-spire-2-mod-loader/tree/main/src): `src`

### Other components

- **User**

## Connections

- User → Loader host: launches (evidence: `README.md`)
- Loader host → Runtime settings: checks path (evidence: `src/SlayTheSpire2ModLoaderHost.cs`)
- Runtime settings → Loader host: configures (evidence: `README.md`)
