# joaopedrogabriel/minecraft-mod-solver architecture

> Architecture diagram of the GitHub repository joaopedrogabriel/minecraft-mod-solver, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joaopedrogabriel/minecraft-mod-solver
- Repository: https://github.com/joaopedrogabriel/minecraft-mod-solver

## Overview

MMS is a desktop GUI for scanning a selected Minecraft mod folder, checking mod hashes against Modrinth and optionally CurseForge, sorting files into server-side, client-side, and unverified folders, and writing a JSON report. The main workflow is implemented by MainViewModel; the README documents the dual-provider behavior and user-facing capabilities. The sampled sources establish the UI, configuration, verification, and file-output calls. The graph does not infer runtime behavior for unsampled XAML or other unexcerpted files.

Main entry points: [`ViewModels/MainViewModel.cs`](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/ViewModels/MainViewModel.cs) (Main workflow), [`Services/ModVerifierService.cs`](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Services/ModVerifierService.cs) (Hash and verification), [`Services/ConfigService.cs`](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Services/ConfigService.cs) (Config handling), [`App.axaml.cs`](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/App.axaml.cs) (App startup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_app["App startup<br/>[App.axaml.cs]"]
  node_window["Main window<br/>[MainWindow.axaml]"]
  node_folder_picker["Folder picker"]
end

subgraph group_workflow["Mod processing"]
  node_main_vm["Main workflow<br/>[MainViewModel.cs]"]
  node_mod_model["Mod file state<br/>[ModFileModel.cs]"]
end

subgraph group_integrations["Metadata providers"]
  node_verifier["Hash and verification"]
end

subgraph group_persistence["Local files"]
  node_config_service["Config handling<br/>[ConfigService.cs]"]
  node_config_file["API key config"]
  node_output_folders["Sorted mod folders"]
  node_report["modslist.json"]
end

node_user(("Modpack user"))
node_modrinth{{"Modrinth API"}}
node_curseforge{{"CurseForge API"}}
node_source_mods[("Selected mod folder")]

node_user -->|"uses"| node_window
node_app -->|"creates"| node_window
node_app -->|"sets context"| node_main_vm
node_user -->|"selects folder"| node_folder_picker
node_folder_picker -->|"sets path"| node_main_vm
node_main_vm -->|"loads JARs"| node_source_mods
node_main_vm -->|"creates entries"| node_mod_model
node_main_vm -->|"loads and saves"| node_config_service
node_config_service -->|"reads and writes"| node_config_file
node_main_vm -->|"checks each mod"| node_verifier
node_verifier -->|"queries SHA-1"| node_modrinth
node_verifier -->|"queries Murmur2"| node_curseforge
node_main_vm -->|"copies by side"| node_output_folders
node_main_vm -->|"writes manifest"| node_report
node_user -->|"provides API key"| node_config_service

click node_app "https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/App.axaml.cs"
click node_window "https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Views/MainWindow.axaml"
click node_folder_picker "https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Views/MainWindow.axaml.cs"
click node_main_vm "https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/ViewModels/MainViewModel.cs"
click node_mod_model "https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Models/ModFileModel.cs"
click node_verifier "https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Services/ModVerifierService.cs"
click node_config_service "https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Services/ConfigService.cs"

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_window,node_folder_picker,node_user toneBlue
class node_main_vm,node_mod_model,node_source_mods toneAmber
class node_verifier,node_modrinth,node_curseforge toneMint
class node_config_service,node_config_file,node_output_folders,node_report toneRose
```

## Components

### Desktop interface

- [App startup](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/App.axaml.cs): `App.axaml.cs`
- [Main window](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Views/MainWindow.axaml): `Views/MainWindow.axaml`
- [Folder picker](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Views/MainWindow.axaml.cs): `Views/MainWindow.axaml.cs`

### Mod processing

- [Main workflow](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/ViewModels/MainViewModel.cs): `ViewModels/MainViewModel.cs`
- [Mod file state](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Models/ModFileModel.cs): `Models/ModFileModel.cs`

### Metadata providers

- [Hash and verification](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Services/ModVerifierService.cs): `Services/ModVerifierService.cs`

### Local files

- [Config handling](https://github.com/joaopedrogabriel/minecraft-mod-solver/blob/main/Services/ConfigService.cs): `Services/ConfigService.cs`
- **API key config**
- **Sorted mod folders**
- **modslist.json**

### Other components

- **Modpack user**
- **Modrinth API**
- **CurseForge API**
- **Selected mod folder**

## Connections

- Modpack user → Main window: uses (evidence: `README.md`)
- App startup → Main window: creates (evidence: `App.axaml.cs`)
- App startup → Main workflow: sets context (evidence: `App.axaml.cs`)
- Modpack user → Folder picker: selects folder (evidence: `README.md`)
- Folder picker → Main workflow: sets path (evidence: `Views/MainWindow.axaml.cs`)
- Main workflow → Selected mod folder: loads JARs (evidence: `ViewModels/MainViewModel.cs`)
- Main workflow → Mod file state: creates entries (evidence: `ViewModels/MainViewModel.cs`)
- Main workflow → Config handling: loads and saves (evidence: `ViewModels/MainViewModel.cs`)
- Config handling → API key config: reads and writes (evidence: `Services/ConfigService.cs`)
- Main workflow → Hash and verification: checks each mod (evidence: `ViewModels/MainViewModel.cs`)
- Hash and verification → Modrinth API: queries SHA-1 (evidence: `Services/ModVerifierService.cs`)
- Hash and verification → CurseForge API: queries Murmur2 (evidence: `Services/ModVerifierService.cs`)
- Main workflow → Sorted mod folders: copies by side (evidence: `ViewModels/MainViewModel.cs`)
- Main workflow → modslist.json: writes manifest (evidence: `ViewModels/MainViewModel.cs`)
- Modpack user → Config handling: provides API key (evidence: `README.md`)
