# djlorenzouasset/athena architecture

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

- Interactive diagram: https://gitdiagram.com/djlorenzouasset/athena
- Repository: https://github.com/djlorenzouasset/athena

## Overview

Athena is a console application that generates Fortnite profiles and item-shop catalogs for private servers, using Fortnite-Live manifests to surface update leaks. The main workflow is user configuration and authentication, asset/manifest parsing, selection and conversion into profile or catalog models, then JSON output. The repository also includes backup-based archive handling, update/news and Discord features. Some service wiring and generation branches are only partially shown; unsupported connections are omitted or marked unverified.

Main entry points: [`Athena/Core/Services.cs`](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/Services.cs) (Service registry), [`Athena/Core/Generator.cs`](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/Generator.cs) (Generation flow), [`Athena/Services/DataminerService.cs`](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/DataminerService.cs) (Manifest parser), [`Athena/Core/AthenaCore.cs`](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/AthenaCore.cs) (Application core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application workflow"]
  node_entry["Console entry<br/>[Program.cs]"]
  node_core["Application core<br/>[AthenaCore.cs]"]
  node_generator["Generation flow<br/>[Generator.cs]"]
  node_backup_parser["Backup parser<br/>[BackupParser.cs]"]
end

subgraph group_data["Asset discovery"]
  node_dataminer["Manifest parser"]
  node_manifest["Manifest service<br/>[ManifestService.cs]"]
  node_asset_rules["Asset type rules<br/>[AssetsService.cs]"]
  node_directories["Mappings and paths"]
end

subgraph group_generation["Generation and models"]
  node_profile_builder["Profile builder<br/>[ProfileBuilder.cs]"]
  node_shop_builder["Shop builder<br/>[ShopBuilder.cs]"]
  node_profile_model["Profile model<br/>[ProfileAthena.cs]"]
  node_catalog_model["Shop catalog model<br/>[ItemShopCatalog.cs]"]
  node_catalog_settings["Catalog options<br/>[CatalogSettings.cs]"]
end

subgraph group_support["Configuration and services"]
  node_services["Service registry<br/>[Services.cs]"]
  node_settings["Settings and auth<br/>[SettingsService.cs]"]
  node_settings_model["User settings<br/>[UserSettings.cs]"]
  node_api_service["API service<br/>[APIService.cs]"]
  node_epic_api["Epic Games API<br/>[EpicGamesAPI.cs]"]
  node_updater["Application updater<br/>[UpdaterService.cs]"]
  node_discord["Discord presence<br/>[DiscordService.cs]"]
  node_messages["User messaging<br/>[MessageService.cs]"]
end

node_user(("Operator"))
node_external_api(("Epic services"))
node_output["Generated JSON files"]

node_user -.->|"starts"| node_entry
node_entry -->|"starts"| node_core
node_core -->|"uses"| node_services
node_services -->|"creates"| node_settings
node_services -->|"creates"| node_dataminer
node_services -->|"creates"| node_api_service
node_services -->|"creates"| node_directories
node_services -->|"creates"| node_updater
node_services -->|"creates"| node_discord
node_services -->|"creates"| node_messages
node_settings -->|"loads and saves"| node_settings_model
node_settings -->|"requests auth"| node_epic_api
node_api_service -->|"exposes"| node_epic_api
node_epic_api -.->|"calls"| node_external_api
node_dataminer -->|"uses"| node_manifest
node_dataminer -->|"requests manifest"| node_api_service
node_dataminer -->|"loads mappings"| node_directories
node_dataminer -.->|"loads item rules"| node_asset_rules
node_core -->|"runs"| node_generator
node_generator -->|"loads parsed assets"| node_dataminer
node_generator -->|"selects for profiles"| node_profile_builder
node_generator -->|"selects for shops"| node_shop_builder
node_profile_builder -->|"builds"| node_profile_model
node_shop_builder -->|"builds"| node_catalog_model
node_shop_builder -->|"reads options"| node_catalog_settings
node_generator -->|"parses backups"| node_backup_parser
node_generator -->|"writes JSON"| node_output
node_core -.->|"checks updates"| node_updater
node_core -.->|"enables presence"| node_discord

click node_entry "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Program.cs"
click node_core "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/AthenaCore.cs"
click node_generator "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/Generator.cs"
click node_services "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/Services.cs"
click node_settings "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/SettingsService.cs"
click node_settings_model "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Settings/UserSettings.cs"
click node_api_service "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/APIService.cs"
click node_epic_api "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/API/EpicGamesAPI.cs"
click node_dataminer "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/DataminerService.cs"
click node_manifest "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/ManifestService.cs"
click node_asset_rules "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/AssetsService.cs"
click node_directories "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/DirectoriesService.cs"
click node_profile_builder "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Builders/ProfileBuilder.cs"
click node_shop_builder "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Builders/ShopBuilder.cs"
click node_profile_model "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Profiles/ProfileAthena.cs"
click node_catalog_model "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Catalog/ItemShopCatalog.cs"
click node_catalog_settings "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Settings/CatalogSettings.cs"
click node_backup_parser "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Utils/BackupParser.cs"
click node_updater "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/UpdaterService.cs"
click node_discord "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/DiscordService.cs"
click node_messages "https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/MessageService.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_entry,node_core,node_generator,node_backup_parser toneBlue
class node_dataminer,node_manifest,node_asset_rules,node_directories toneAmber
class node_profile_builder,node_shop_builder,node_profile_model,node_catalog_model,node_catalog_settings toneMint
class node_services,node_settings,node_settings_model,node_api_service,node_epic_api,node_updater,node_discord,node_messages toneRose
class node_user,node_external_api,node_output toneIndigo
```

## Components

### Application workflow

- [Console entry](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Program.cs): `Athena/Program.cs`
- [Application core](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/AthenaCore.cs): `Athena/Core/AthenaCore.cs`
- [Generation flow](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/Generator.cs): `Athena/Core/Generator.cs`
- [Backup parser](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Utils/BackupParser.cs): `Athena/Utils/BackupParser.cs`

### Asset discovery

- [Manifest parser](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/DataminerService.cs): `Athena/Services/DataminerService.cs`
- [Manifest service](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/ManifestService.cs): `Athena/Services/ManifestService.cs`
- [Asset type rules](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/AssetsService.cs): `Athena/Services/AssetsService.cs`
- [Mappings and paths](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/DirectoriesService.cs): `Athena/Services/DirectoriesService.cs`

### Generation and models

- [Profile builder](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Builders/ProfileBuilder.cs): `Athena/Builders/ProfileBuilder.cs`
- [Shop builder](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Builders/ShopBuilder.cs): `Athena/Builders/ShopBuilder.cs`
- [Profile model](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Profiles/ProfileAthena.cs): `Athena/Models/Profiles/ProfileAthena.cs`
- [Shop catalog model](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Catalog/ItemShopCatalog.cs): `Athena/Models/Catalog/ItemShopCatalog.cs`
- [Catalog options](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Settings/CatalogSettings.cs): `Athena/Models/Settings/CatalogSettings.cs`

### Configuration and services

- [Service registry](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Core/Services.cs): `Athena/Core/Services.cs`
- [Settings and auth](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/SettingsService.cs): `Athena/Services/SettingsService.cs`
- [User settings](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/Settings/UserSettings.cs): `Athena/Models/Settings/UserSettings.cs`
- [API service](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/APIService.cs): `Athena/Services/APIService.cs`
- [Epic Games API](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Models/API/EpicGamesAPI.cs): `Athena/Models/API/EpicGamesAPI.cs`
- [Application updater](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/UpdaterService.cs): `Athena/Services/UpdaterService.cs`
- [Discord presence](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/DiscordService.cs): `Athena/Services/DiscordService.cs`
- [User messaging](https://github.com/djlorenzouasset/athena/blob/v2/Athena/Services/MessageService.cs): `Athena/Services/MessageService.cs`

### Other components

- **Operator**
- **Epic services**
- **Generated JSON files**

## Connections

- Operator → Console entry: starts
- Console entry → Application core: starts (evidence: `Athena/Program.cs`)
- Application core → Service registry: uses (evidence: `Athena/Core/AthenaCore.cs`)
- Service registry → Settings and auth: creates (evidence: `Athena/Core/Services.cs`)
- Service registry → Manifest parser: creates (evidence: `Athena/Core/Services.cs`)
- Service registry → API service: creates (evidence: `Athena/Core/Services.cs`)
- Service registry → Mappings and paths: creates (evidence: `Athena/Core/Services.cs`)
- Service registry → Application updater: creates (evidence: `Athena/Core/Services.cs`)
- Service registry → Discord presence: creates (evidence: `Athena/Core/Services.cs`)
- Service registry → User messaging: creates (evidence: `Athena/Core/Services.cs`)
- Settings and auth → User settings: loads and saves (evidence: `Athena/Services/SettingsService.cs`)
- Settings and auth → Epic Games API: requests auth (evidence: `Athena/Services/SettingsService.cs`)
- API service → Epic Games API: exposes (evidence: `Athena/Services/APIService.cs`)
- Epic Games API → Epic services: calls (evidence: `Athena/Models/API/EpicGamesAPI.cs`)
- Manifest parser → Manifest service: uses (evidence: `Athena/Services/DataminerService.cs`)
- Manifest parser → API service: requests manifest (evidence: `Athena/Services/DataminerService.cs`)
- Manifest parser → Mappings and paths: loads mappings (evidence: `Athena/Services/DataminerService.cs`)
- Manifest parser → Asset type rules: loads item rules
- Application core → Generation flow: runs (evidence: `Athena/Core/AthenaCore.cs`)
- Generation flow → Manifest parser: loads parsed assets (evidence: `Athena/Core/Generator.cs`)
- Generation flow → Profile builder: selects for profiles (evidence: `Athena/Core/Generator.cs`)
- Generation flow → Shop builder: selects for shops (evidence: `Athena/Core/Generator.cs`)
- Profile builder → Profile model: builds (evidence: `Athena/Builders/ProfileBuilder.cs`)
- Shop builder → Shop catalog model: builds (evidence: `Athena/Builders/ShopBuilder.cs`)
- Shop builder → Catalog options: reads options (evidence: `Athena/Builders/ShopBuilder.cs`)
- Generation flow → Backup parser: parses backups (evidence: `Athena/Core/Generator.cs`)
- Generation flow → Generated JSON files: writes JSON (evidence: `Athena/Core/Generator.cs`)
- Application core → Application updater: checks updates
- Application core → Discord presence: enables presence
