# construktdev/noriskclient-launcher architecture

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

- Interactive diagram: https://gitdiagram.com/construktdev/noriskclient-launcher
- Repository: https://github.com/construktdev/noriskclient-launcher

## Overview

NoRisk Client is a desktop Minecraft launcher with profile and mod management, launcher-instance import, synchronized content packs, social/game services, and clip capture/editing. Users navigate the launcher UI to manage or launch profiles, browse and install content, or record and edit clips. The Rust/Tauri backend provides domain operations and state; a dedicated capture engine handles recording. The supplied README focuses on contribution and compilation rather than product capabilities, so the feature map follows the source tree and excerpts. Relationships are limited to excerpted imports/calls and router declarations; unsampled feature wiring is not inferred.

Main entry points: [`src/lib/router.tsx`](https://github.com/construktdev/noriskclient-launcher/blob/v3/src/lib/router.tsx) (Feature routes), [`src-tauri/src/state/state_manager.rs`](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/state_manager.rs) (Shared state), [`src-tauri/src/state/profile_state.rs`](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/profile_state.rs) (Profile management), [`src-tauri/src/sync/engine.rs`](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/sync/engine.rs) (Pack synchronization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Launcher UI"]
  node_app["Application shell<br/>[App.tsx]"]
  node_router["Feature routes<br/>[router.tsx]"]
  node_profile_ui["Profile screens"]
  node_content_ui["Mod browser"]
  node_clip_ui["Clip editor"]
  node_capture_ui["Capture controls"]
end

subgraph group_profiles["Profiles and Content"]
  node_launcher_import["Instance import<br/>[pipeline.rs]"]
  node_profile_state["Profile management<br/>[profile_state.rs]"]
  node_content_ops["Content integrations"]
  node_sync_engine["Pack synchronization<br/>[engine.rs]"]
  node_sync_state["Sync pack state<br/>[sync_pack_state.rs]"]
end

subgraph group_runtime["Minecraft Runtime"]
  node_minecraft["Minecraft services"]
  node_process_state["Game process state<br/>[process_state.rs]"]
end

subgraph group_capture["Clip Capture"]
  node_capture_engine["Capture pipeline<br/>[pipeline.rs]"]
  node_capture_sources["Screen and window sources"]
  node_video_encoder["Video encoding<br/>[video.rs]"]
  node_audio_engine["Audio processing<br/>[audio.rs]"]
  node_clip_library["Clip storage utilities<br/>[clip_library.rs]"]
end

subgraph group_platform["Desktop Platform"]
  node_state_manager["Shared state<br/>[state_manager.rs]"]
  node_db[("Launcher database<br/>[db.rs]")]
  node_event_state["Event state<br/>[event_state.rs]"]
  node_main["Tauri application<br/>[main.rs]"]
end

node_user(("Launcher user"))
node_external_services(("Game and content services"))

node_user -->|"uses"| node_app
node_app -->|"hosts routes"| node_router
node_router -->|"routes to"| node_profile_ui
node_router -->|"routes to"| node_content_ui
node_router -->|"routes to"| node_clip_ui
node_launcher_import -->|"creates profile"| node_profile_state
node_launcher_import -->|"emits progress"| node_event_state
node_profile_state -->|"uses integrations"| node_content_ops
node_sync_engine -->|"loads profile"| node_profile_state
node_sync_engine -->|"checks availability"| node_sync_state
node_sync_engine -->|"gets state"| node_state_manager
node_state_manager -->|"owns state"| node_event_state
node_state_manager -->|"initializes manager"| node_profile_state
node_state_manager -->|"initializes manager"| node_process_state
node_main -->|"registers commands"| node_process_state
node_capture_engine -->|"starts capture"| node_capture_sources
node_capture_engine -->|"selects encoder"| node_video_encoder
node_capture_engine -->|"uses audio"| node_audio_engine
node_capture_ui -->|"uses clip service"| node_clip_ui
node_external_services -.->|"serves catalog data"| node_content_ops

click node_app "https://github.com/construktdev/noriskclient-launcher/blob/v3/src/App.tsx"
click node_router "https://github.com/construktdev/noriskclient-launcher/blob/v3/src/lib/router.tsx"
click node_profile_ui "https://github.com/construktdev/noriskclient-launcher/tree/v3/src/components/profiles"
click node_content_ui "https://github.com/construktdev/noriskclient-launcher/tree/v3/src/components/modrinth/v2"
click node_clip_ui "https://github.com/construktdev/noriskclient-launcher/tree/v3/src/components/clips"
click node_launcher_import "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/integrations/launcher_import/pipeline.rs"
click node_profile_state "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/profile_state.rs"
click node_content_ops "https://github.com/construktdev/noriskclient-launcher/tree/v3/src-tauri/src/integrations"
click node_sync_engine "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/sync/engine.rs"
click node_sync_state "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/sync_pack_state.rs"
click node_state_manager "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/state_manager.rs"
click node_db "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/db.rs"
click node_event_state "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/event_state.rs"
click node_main "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/main.rs"
click node_minecraft "https://github.com/construktdev/noriskclient-launcher/tree/v3/src-tauri/src/minecraft"
click node_process_state "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/process_state.rs"
click node_capture_ui "https://github.com/construktdev/noriskclient-launcher/blob/v3/src/components/clips/useClipEngineEvents.ts"
click node_capture_engine "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/crates/norisk-capture/src/engine/pipeline.rs"
click node_capture_sources "https://github.com/construktdev/noriskclient-launcher/tree/v3/src-tauri/crates/norisk-capture/src/capture"
click node_video_encoder "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/crates/norisk-capture/src/encoder/video.rs"
click node_audio_engine "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/crates/norisk-capture/src/engine/audio.rs"
click node_clip_library "https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/utils/clip_library.rs"

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_router,node_profile_ui,node_content_ui,node_clip_ui,node_capture_ui,node_user toneBlue
class node_launcher_import,node_profile_state,node_content_ops,node_sync_engine,node_sync_state toneAmber
class node_minecraft,node_process_state toneMint
class node_capture_engine,node_capture_sources,node_video_encoder,node_audio_engine,node_clip_library toneRose
class node_state_manager,node_db,node_event_state,node_main,node_external_services toneIndigo
```

## Components

### Launcher UI

- [Application shell](https://github.com/construktdev/noriskclient-launcher/blob/v3/src/App.tsx): `src/App.tsx`
- [Feature routes](https://github.com/construktdev/noriskclient-launcher/blob/v3/src/lib/router.tsx): `src/lib/router.tsx`
- [Profile screens](https://github.com/construktdev/noriskclient-launcher/tree/v3/src/components/profiles): `src/components/profiles`
- [Mod browser](https://github.com/construktdev/noriskclient-launcher/tree/v3/src/components/modrinth/v2): `src/components/modrinth/v2`
- [Clip editor](https://github.com/construktdev/noriskclient-launcher/tree/v3/src/components/clips): `src/components/clips`
- [Capture controls](https://github.com/construktdev/noriskclient-launcher/blob/v3/src/components/clips/useClipEngineEvents.ts): `src/components/clips/useClipEngineEvents.ts`

### Profiles and Content

- [Instance import](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/integrations/launcher_import/pipeline.rs): `src-tauri/src/integrations/launcher_import/pipeline.rs`
- [Profile management](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/profile_state.rs): `src-tauri/src/state/profile_state.rs`
- [Content integrations](https://github.com/construktdev/noriskclient-launcher/tree/v3/src-tauri/src/integrations): `src-tauri/src/integrations`
- [Pack synchronization](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/sync/engine.rs): `src-tauri/src/sync/engine.rs`
- [Sync pack state](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/sync_pack_state.rs): `src-tauri/src/state/sync_pack_state.rs`

### Minecraft Runtime

- [Minecraft services](https://github.com/construktdev/noriskclient-launcher/tree/v3/src-tauri/src/minecraft): `src-tauri/src/minecraft`
- [Game process state](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/process_state.rs): `src-tauri/src/state/process_state.rs`

### Clip Capture

- [Capture pipeline](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/crates/norisk-capture/src/engine/pipeline.rs): `src-tauri/crates/norisk-capture/src/engine/pipeline.rs`
- [Screen and window sources](https://github.com/construktdev/noriskclient-launcher/tree/v3/src-tauri/crates/norisk-capture/src/capture): `src-tauri/crates/norisk-capture/src/capture`
- [Video encoding](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/crates/norisk-capture/src/encoder/video.rs): `src-tauri/crates/norisk-capture/src/encoder/video.rs`
- [Audio processing](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/crates/norisk-capture/src/engine/audio.rs): `src-tauri/crates/norisk-capture/src/engine/audio.rs`
- [Clip storage utilities](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/utils/clip_library.rs): `src-tauri/src/utils/clip_library.rs`

### Desktop Platform

- [Shared state](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/state_manager.rs): `src-tauri/src/state/state_manager.rs`
- [Launcher database](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/db.rs): `src-tauri/src/state/db.rs`
- [Event state](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/state/event_state.rs): `src-tauri/src/state/event_state.rs`
- [Tauri application](https://github.com/construktdev/noriskclient-launcher/blob/v3/src-tauri/src/main.rs): `src-tauri/src/main.rs`

### Other components

- **Launcher user**
- **Game and content services**

## Connections

- Launcher user → Application shell: uses
- Application shell → Feature routes: hosts routes (evidence: `src/lib/router.tsx`)
- Feature routes → Profile screens: routes to (evidence: `src/lib/router.tsx`)
- Feature routes → Mod browser: routes to (evidence: `src/lib/router.tsx`)
- Feature routes → Clip editor: routes to (evidence: `src/lib/router.tsx`)
- Instance import → Profile management: creates profile (evidence: `src-tauri/src/integrations/launcher_import/pipeline.rs`)
- Instance import → Event state: emits progress (evidence: `src-tauri/src/integrations/launcher_import/pipeline.rs`)
- Profile management → Content integrations: uses integrations (evidence: `src-tauri/src/state/profile_state.rs`)
- Pack synchronization → Profile management: loads profile (evidence: `src-tauri/src/sync/engine.rs`)
- Pack synchronization → Sync pack state: checks availability (evidence: `src-tauri/src/sync/engine.rs`)
- Pack synchronization → Shared state: gets state (evidence: `src-tauri/src/sync/engine.rs`)
- Shared state → Event state: owns state (evidence: `src-tauri/src/state/state_manager.rs`)
- Shared state → Profile management: initializes manager (evidence: `src-tauri/src/state/state_manager.rs`)
- Shared state → Game process state: initializes manager (evidence: `src-tauri/src/state/state_manager.rs`)
- Tauri application → Game process state: registers commands (evidence: `src-tauri/src/main.rs`)
- Capture pipeline → Screen and window sources: starts capture (evidence: `src-tauri/crates/norisk-capture/src/engine/pipeline.rs`)
- Capture pipeline → Video encoding: selects encoder (evidence: `src-tauri/crates/norisk-capture/src/engine/pipeline.rs`)
- Capture pipeline → Audio processing: uses audio (evidence: `src-tauri/crates/norisk-capture/src/engine/pipeline.rs`)
- Capture controls → Clip editor: uses clip service (evidence: `src/components/clips/useClipEngineEvents.ts`)
- Game and content services → Content integrations: serves catalog data
