# domsvoboda/nexus-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/domsvoboda/nexus-launcher
- Repository: https://github.com/domsvoboda/nexus-launcher

## Overview

Nexus Launcher is an Electron desktop launcher for Microsoft Store PC games on Linux. Users browse the library or Store, inspect titles, install and manage downloads, choose a runtime, then launch games; account sign-in, offline permissions, saves, diagnostics, and Xbox social features extend that journey. The renderer and main process divide interface from desktop/backend operations, with preload bridging them. The README documents capabilities beyond the sampled code, so those are represented as subsystems without speculative internal call chains; unsampled relationships are omitted.

Main entry points: [`src/renderer/App.tsx`](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/App.tsx) (Launcher interface), [`src/main/game-launch.ts`](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/game-launch.ts) (Game launch), [`src/main/runtime-families.ts`](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/runtime-families.ts) (Managed runtime families), [`src/renderer/main.tsx`](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/main.tsx) (Renderer entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_renderer["Launcher interface<br/>[App.tsx]"]
  node_renderer_entry["Renderer entry<br/>[main.tsx]"]
  node_preload["IPC bridge<br/>[index.cts]"]
  node_game_details["Game details<br/>[GameDetails.tsx]"]
  node_localization["Interface language<br/>[i18n.ts]"]
end

subgraph group_catalog["Catalog and installs"]
  node_store_ui["Store and library<br/>[App.tsx]"]
  node_catalog_backend["Store catalog<br/>[store.ts]"]
  node_backend["Nexus backend<br/>[backend.ts]"]
  node_install_queue["Install queue<br/>[install-queue.ts]"]
  node_content["Licensed content<br/>[game-content.ts]"]
  node_install_state[("Installation state")]
end

subgraph group_execution["Game execution"]
  node_runtime_settings["Runtime settings"]
  node_runtime_families["Managed runtime families"]
  node_runtime["Runtime provisioning<br/>[runtime.ts]"]
  node_proton["Proton integration<br/>[proton.ts]"]
  node_game_launch["Game launch<br/>[game-launch.ts]"]
  node_offline["Offline permissions<br/>[offline-access.ts]"]
end

subgraph group_account["Account and services"]
  node_auth["Sign-in flow<br/>[auth-protocol.ts]"]
  node_auth_browser["Browser sign-in<br/>[auth-browser.ts]"]
  node_diagnostics[("Backend diagnostics")]
  node_saves["Cloud saves<br/>[game-process.ts]"]
end

subgraph group_social["Xbox social"]
  node_social_ui["Xbox social interface<br/>[XboxSocial.tsx]"]
  node_social_service["Xbox social transport"]
  node_overlay["In-game overlay"]
end

node_player(("Player"))

node_player -->|"uses"| node_renderer
node_renderer_entry -->|"renders"| node_renderer
node_renderer -->|"opens details"| node_game_details
node_renderer_entry -->|"loads"| node_localization
node_player -->|"browses titles"| node_store_ui
node_store_ui -.->|"requests catalog"| node_catalog_backend
node_player -->|"queues installs"| node_install_queue
node_install_queue -.->|"downloads via"| node_backend
node_player -->|"manages content"| node_content
node_player -->|"chooses runtime"| node_runtime_settings
node_runtime_settings -.->|"selects family"| node_runtime_families
node_runtime_families -.->|"resolves build"| node_runtime
node_player -->|"launches game"| node_game_launch
node_game_launch -.->|"uses family"| node_runtime_families
node_game_launch -.->|"runs through"| node_proton
node_player -->|"signs in"| node_auth_browser
node_auth_browser -->|"validates URLs"| node_auth
node_player -->|"sets permissions"| node_offline
node_player -->|"opens diagnostics"| node_diagnostics
node_player -->|"uses cloud saves"| node_saves
node_player -->|"opens social"| node_social_ui
node_social_ui -.->|"communicates"| node_social_service
node_player -->|"enables overlay"| node_overlay
node_renderer -.->|"uses IPC"| node_preload

click node_renderer "https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/App.tsx"
click node_renderer_entry "https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/main.tsx"
click node_preload "https://github.com/domsvoboda/nexus-launcher/blob/main/src/preload/index.cts"
click node_game_details "https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/GameDetails.tsx"
click node_localization "https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/i18n.ts"
click node_store_ui "https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/App.tsx"
click node_catalog_backend "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/store.ts"
click node_backend "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/backend.ts"
click node_install_queue "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/install-queue.ts"
click node_content "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/game-content.ts"
click node_install_state "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/installation-state.ts"
click node_runtime_settings "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/runtime-settings.ts"
click node_runtime_families "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/runtime-families.ts"
click node_runtime "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/runtime.ts"
click node_proton "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/proton.ts"
click node_game_launch "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/game-launch.ts"
click node_offline "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/offline-access.ts"
click node_auth "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/auth-protocol.ts"
click node_auth_browser "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/auth-browser.ts"
click node_diagnostics "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/backend-diagnostics.ts"
click node_saves "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/game-process.ts"
click node_social_ui "https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/XboxSocial.tsx"
click node_social_service "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/xbox-social-transport.ts"
click node_overlay "https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/xbox-overlay-shortcut.ts"

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_renderer,node_renderer_entry,node_preload,node_game_details,node_localization toneBlue
class node_store_ui,node_catalog_backend,node_backend,node_install_queue,node_content,node_install_state toneAmber
class node_runtime_settings,node_runtime_families,node_runtime,node_proton,node_game_launch,node_offline toneMint
class node_auth,node_auth_browser,node_diagnostics,node_saves toneRose
class node_social_ui,node_social_service,node_overlay,node_player toneIndigo
```

## Components

### Desktop interface

- [Launcher interface](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/App.tsx): `src/renderer/App.tsx`
- [Renderer entry](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/main.tsx): `src/renderer/main.tsx`
- [IPC bridge](https://github.com/domsvoboda/nexus-launcher/blob/main/src/preload/index.cts): `src/preload/index.cts`
- [Game details](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/GameDetails.tsx): `src/renderer/GameDetails.tsx`
- [Interface language](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/i18n.ts): `src/renderer/i18n.ts`

### Catalog and installs

- [Store and library](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/App.tsx): `src/renderer/App.tsx`
- [Store catalog](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/store.ts): `src/main/store.ts`
- [Nexus backend](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/backend.ts): `src/main/backend.ts`
- [Install queue](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/install-queue.ts): `src/main/install-queue.ts`
- [Licensed content](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/game-content.ts): `src/main/game-content.ts`
- [Installation state](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/installation-state.ts): `src/main/installation-state.ts`

### Game execution

- [Runtime settings](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/runtime-settings.ts): `src/main/runtime-settings.ts`
- [Managed runtime families](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/runtime-families.ts): `src/main/runtime-families.ts`
- [Runtime provisioning](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/runtime.ts): `src/main/runtime.ts`
- [Proton integration](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/proton.ts): `src/main/proton.ts`
- [Game launch](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/game-launch.ts): `src/main/game-launch.ts`
- [Offline permissions](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/offline-access.ts): `src/main/offline-access.ts`

### Account and services

- [Sign-in flow](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/auth-protocol.ts): `src/main/auth-protocol.ts`
- [Browser sign-in](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/auth-browser.ts): `src/main/auth-browser.ts`
- [Backend diagnostics](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/backend-diagnostics.ts): `src/main/backend-diagnostics.ts`
- [Cloud saves](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/game-process.ts): `src/main/game-process.ts`

### Xbox social

- [Xbox social interface](https://github.com/domsvoboda/nexus-launcher/blob/main/src/renderer/XboxSocial.tsx): `src/renderer/XboxSocial.tsx`
- [Xbox social transport](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/xbox-social-transport.ts): `src/main/xbox-social-transport.ts`
- [In-game overlay](https://github.com/domsvoboda/nexus-launcher/blob/main/src/main/xbox-overlay-shortcut.ts): `src/main/xbox-overlay-shortcut.ts`

### Other components

- **Player**

## Connections

- Player → Launcher interface: uses
- Renderer entry → Launcher interface: renders (evidence: `src/renderer/main.tsx`)
- Launcher interface → Game details: opens details (evidence: `src/renderer/App.tsx`)
- Renderer entry → Interface language: loads (evidence: `src/renderer/main.tsx`)
- Player → Store and library: browses titles
- Store and library → Store catalog: requests catalog
- Player → Install queue: queues installs
- Install queue → Nexus backend: downloads via
- Player → Licensed content: manages content
- Player → Runtime settings: chooses runtime
- Runtime settings → Managed runtime families: selects family
- Managed runtime families → Runtime provisioning: resolves build
- Player → Game launch: launches game
- Game launch → Managed runtime families: uses family
- Game launch → Proton integration: runs through
- Player → Browser sign-in: signs in
- Browser sign-in → Sign-in flow: validates URLs (evidence: `src/main/auth-browser.ts`)
- Player → Offline permissions: sets permissions
- Player → Backend diagnostics: opens diagnostics
- Player → Cloud saves: uses cloud saves
- Player → Xbox social interface: opens social
- Xbox social interface → Xbox social transport: communicates
- Player → In-game overlay: enables overlay
- Launcher interface → IPC bridge: uses IPC
