# ciensprog/aerial-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/ciensprog/aerial-launcher
- Repository: https://github.com/ciensprog/aerial-launcher

## Overview

Aerial Launcher is a Windows desktop client for managing Fortnite: Save the World accounts and automating account and game operations. The renderer loads local settings and account data, presents routed workflows, and sends actions through Electron’s main process to game, Epic-service, and automation logic. Documented capabilities include multiple account-add methods, game launching, account settings, and STW operations such as XP boosts. The graph follows shown imports, calls, and README claims; unsampled implementations and IPC wiring are not inferred.

Main entry points: [`src/kernel/main.ts`](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/main.ts) (IPC action router), [`src/app.tsx`](https://github.com/ciensprog/aerial-launcher/blob/main/src/app.tsx) (Renderer bootstrap), [`src/routes/__root.tsx`](https://github.com/ciensprog/aerial-launcher/blob/main/src/routes/__root.tsx) (Route shell), [`src/routes/accounts`](https://github.com/ciensprog/aerial-launcher/tree/main/src/routes/accounts) (Account workflows)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_renderer["Desktop interface"]
  node_app["Renderer bootstrap<br/>[app.tsx]"]
  node_root["Route shell<br/>[__root.tsx]"]
  node_layout["Main layout<br/>[main.tsx]"]
end

subgraph group_accounts["Account management"]
  node_account_routes["Account workflows"]
  node_account_hooks["Account hooks<br/>[accounts.ts]"]
  node_account_state["Account state"]
  node_settings["Settings workflows"]
  node_game_route["Game launcher UI<br/>[route.tsx]"]
end

subgraph group_operations["STW operations"]
  node_stw_routes["STW operation UI"]
  node_xpboost_route["XP boost UI<br/>[route.tsx]"]
  node_xp_parser["Profile parsing<br/>[query-profile.ts]"]
end

subgraph group_runtime["Electron runtime"]
  node_kernel["IPC action router<br/>[main.ts]"]
  node_preload["Preload bridge<br/>[preload.ts]"]
  node_startup["Application startup<br/>[application.ts]"]
  node_window_lifecycle["Window lifecycle<br/>[main.ts]"]
end

subgraph group_integrations["Game and services"]
  node_account_auth["Authentication<br/>[authentication.ts]"]
  node_fortnite_launcher["Fortnite launcher<br/>[launcher.ts]"]
  node_automation["Account automation<br/>[automation.ts]"]
  node_mcp["MCP operations"]
end

node_user(("Launcher user"))
node_epic{{"Epic Games services"}}
node_local_data[("Local application data")]
node_fortnite{{"Fortnite game"}}

node_user -->|"uses"| node_app
node_app -->|"mounts routes"| node_root
node_root -->|"renders"| node_layout
node_user -->|"manages accounts"| node_account_routes
node_account_routes -->|"uses account actions"| node_account_hooks
node_account_hooks -->|"uses state"| node_account_state
node_user -->|"configures app"| node_settings
node_user -->|"launches game"| node_game_route
node_user -->|"runs operations"| node_stw_routes
node_stw_routes -->|"includes"| node_xpboost_route
node_xpboost_route -->|"parses profile"| node_xp_parser
node_startup -->|"starts window"| node_window_lifecycle
node_window_lifecycle -->|"cleans up"| node_automation
node_kernel -->|"launches account"| node_fortnite_launcher
node_kernel -->|"dispatches operations"| node_mcp
node_kernel -->|"starts automation"| node_automation
node_account_auth -.->|"authenticates"| node_epic
node_fortnite_launcher -.->|"starts game"| node_fortnite
node_app -.->|"loads local state"| node_local_data
node_preload -.->|"bridges IPC"| node_kernel
node_mcp -.->|"requests game data"| node_epic

click node_app "https://github.com/ciensprog/aerial-launcher/blob/main/src/app.tsx"
click node_root "https://github.com/ciensprog/aerial-launcher/blob/main/src/routes/__root.tsx"
click node_layout "https://github.com/ciensprog/aerial-launcher/blob/main/src/layouts/main.tsx"
click node_account_routes "https://github.com/ciensprog/aerial-launcher/tree/main/src/routes/accounts"
click node_account_hooks "https://github.com/ciensprog/aerial-launcher/blob/main/src/hooks/accounts.ts"
click node_account_state "https://github.com/ciensprog/aerial-launcher/tree/main/src/state/accounts"
click node_settings "https://github.com/ciensprog/aerial-launcher/tree/main/src/routes/settings"
click node_game_route "https://github.com/ciensprog/aerial-launcher/blob/main/src/routes/games-launcher/route.tsx"
click node_stw_routes "https://github.com/ciensprog/aerial-launcher/tree/main/src/routes/stw-operations"
click node_xpboost_route "https://github.com/ciensprog/aerial-launcher/blob/main/src/routes/stw-operations/xpboosts/route.tsx"
click node_xp_parser "https://github.com/ciensprog/aerial-launcher/blob/main/src/lib/parsers/query-profile.ts"
click node_kernel "https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/main.ts"
click node_preload "https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/preload.ts"
click node_startup "https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/startup/application.ts"
click node_window_lifecycle "https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/startup/windows/main.ts"
click node_account_auth "https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/core/authentication.ts"
click node_fortnite_launcher "https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/core/launcher.ts"
click node_automation "https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/startup/automation.ts"
click node_mcp "https://github.com/ciensprog/aerial-launcher/tree/main/src/kernel/core/mcp"

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_root,node_layout,node_user toneBlue
class node_account_routes,node_account_hooks,node_account_state,node_settings,node_game_route,node_local_data toneAmber
class node_stw_routes,node_xpboost_route,node_xp_parser toneMint
class node_kernel,node_preload,node_startup,node_window_lifecycle toneRose
class node_account_auth,node_fortnite_launcher,node_automation,node_mcp,node_epic,node_fortnite toneIndigo
```

## Components

### Desktop interface

- [Renderer bootstrap](https://github.com/ciensprog/aerial-launcher/blob/main/src/app.tsx): `src/app.tsx`
- [Route shell](https://github.com/ciensprog/aerial-launcher/blob/main/src/routes/__root.tsx): `src/routes/__root.tsx`
- [Main layout](https://github.com/ciensprog/aerial-launcher/blob/main/src/layouts/main.tsx): `src/layouts/main.tsx`

### Account management

- [Account workflows](https://github.com/ciensprog/aerial-launcher/tree/main/src/routes/accounts): `src/routes/accounts`
- [Account hooks](https://github.com/ciensprog/aerial-launcher/blob/main/src/hooks/accounts.ts): `src/hooks/accounts.ts`
- [Account state](https://github.com/ciensprog/aerial-launcher/tree/main/src/state/accounts): `src/state/accounts`
- [Settings workflows](https://github.com/ciensprog/aerial-launcher/tree/main/src/routes/settings): `src/routes/settings`
- [Game launcher UI](https://github.com/ciensprog/aerial-launcher/blob/main/src/routes/games-launcher/route.tsx): `src/routes/games-launcher/route.tsx`

### STW operations

- [STW operation UI](https://github.com/ciensprog/aerial-launcher/tree/main/src/routes/stw-operations): `src/routes/stw-operations`
- [XP boost UI](https://github.com/ciensprog/aerial-launcher/blob/main/src/routes/stw-operations/xpboosts/route.tsx): `src/routes/stw-operations/xpboosts/route.tsx`
- [Profile parsing](https://github.com/ciensprog/aerial-launcher/blob/main/src/lib/parsers/query-profile.ts): `src/lib/parsers/query-profile.ts`

### Electron runtime

- [IPC action router](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/main.ts): `src/kernel/main.ts`
- [Preload bridge](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/preload.ts): `src/kernel/preload.ts`
- [Application startup](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/startup/application.ts): `src/kernel/startup/application.ts`
- [Window lifecycle](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/startup/windows/main.ts): `src/kernel/startup/windows/main.ts`

### Game and services

- [Authentication](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/core/authentication.ts): `src/kernel/core/authentication.ts`
- [Fortnite launcher](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/core/launcher.ts): `src/kernel/core/launcher.ts`
- [Account automation](https://github.com/ciensprog/aerial-launcher/blob/main/src/kernel/startup/automation.ts): `src/kernel/startup/automation.ts`
- [MCP operations](https://github.com/ciensprog/aerial-launcher/tree/main/src/kernel/core/mcp): `src/kernel/core/mcp`

### Other components

- **Launcher user**
- **Epic Games services**
- **Local application data**
- **Fortnite game**

## Connections

- Launcher user → Renderer bootstrap: uses (evidence: `README.md`)
- Renderer bootstrap → Route shell: mounts routes (evidence: `src/app.tsx`)
- Route shell → Main layout: renders (evidence: `src/routes/__root.tsx`)
- Launcher user → Account workflows: manages accounts (evidence: `README.md`)
- Account workflows → Account hooks: uses account actions
- Account hooks → Account state: uses state (evidence: `src/hooks/accounts.ts`)
- Launcher user → Settings workflows: configures app (evidence: `README.md`)
- Launcher user → Game launcher UI: launches game (evidence: `README.md`)
- Launcher user → STW operation UI: runs operations (evidence: `README.md`)
- STW operation UI → XP boost UI: includes (evidence: `src/routes/stw-operations/xpboosts/route.tsx`)
- XP boost UI → Profile parsing: parses profile (evidence: `src/routes/stw-operations/xpboosts/route.tsx`)
- Application startup → Window lifecycle: starts window (evidence: `src/kernel/startup/application.ts`)
- Window lifecycle → Account automation: cleans up (evidence: `src/kernel/startup/windows/main.ts`)
- IPC action router → Fortnite launcher: launches account (evidence: `src/kernel/main.ts`)
- IPC action router → MCP operations: dispatches operations (evidence: `src/kernel/main.ts`)
- IPC action router → Account automation: starts automation (evidence: `src/kernel/main.ts`)
- Authentication → Epic Games services: authenticates
- Fortnite launcher → Fortnite game: starts game
- Renderer bootstrap → Local application data: loads local state
- Preload bridge → IPC action router: bridges IPC
- MCP operations → Epic Games services: requests game data
