# arean-max/synchro-nova architecture

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

- Interactive diagram: https://gitdiagram.com/arean-max/synchro-nova
- Repository: https://github.com/arean-max/synchro-nova

## Overview

Synchro Nova is a Windows desktop utility for monitor vibrance, per-game color behavior, and responsiveness tweaks. The user workflow runs from the desktop UI through Tauri commands to Windows-facing logic; backups and restore support protect system changes. The README also documents automatic game-profile switching, while the sampled source confirms hotkey and platform watcher modules exist. Several backend commands and UI pages were not sampled, so links involving them are shown only where documented or are omitted; dashed links indicate documented but unsampled behavior.

Main entry points: [`src/app/main.js`](https://github.com/arean-max/synchro-nova/blob/main/src/app/main.js) (UI coordinator), [`src-tauri/src/domain/tweaks/engine.rs`](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/tweaks/engine.rs) (Tweak engine), [`src-tauri/src/app/state.rs`](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/app/state.rs) (Runtime state), [`src/app/features/tweaks/page.js`](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/tweaks/page.js) (Tweaks page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Desktop interface"]
  node_ui_main["UI coordinator<br/>[main.js]"]
  node_ui_color["Color controls<br/>[page.js]"]
  node_ui_tweaks["Tweaks catalog<br/>[catalog.js]"]
  node_ui_tweakspage["Tweaks page<br/>[page.js]"]
  node_ui_storage["Backup page<br/>[page.js]"]
  node_ui_binds["Keybind page<br/>[page.js]"]
  node_ui_characteristics["System details<br/>[page.js]"]
  node_ui_settings["Settings page<br/>[page.js]"]
  node_ui_state["UI state<br/>[state.js]"]
  node_ui_i18n["Localization<br/>[i18n.js]"]
end

subgraph group_runtime["Application runtime"]
  node_bridge["Tauri bridge<br/>[bridge.js]"]
  node_tauri["Tauri runtime<br/>[lib.rs]"]
  node_commands_app["App commands<br/>[app.rs]"]
  node_commands_storage["Storage commands<br/>[storage.rs]"]
  node_runtime_state[("Runtime state<br/>[state.rs]")]
  node_workers["Runtime workers<br/>[workers.rs]"]
  node_updater["Update client<br/>[client.rs]"]
end

subgraph group_color["Color and profiles"]
  node_color_page["Color settings<br/>[black_holo.rs]"]
  node_color_transform["Color transform<br/>[transform.rs]"]
  node_hotkeys["Hotkey profiles<br/>[mod.rs]"]
end

subgraph group_system["Windows optimization"]
  node_tweak_commands["Tweak commands<br/>[tweaks.rs]"]
  node_tweak_engine["Tweak engine<br/>[engine.rs]"]
  node_tweak_runner["Tweak runner<br/>[runner.rs]"]
  node_tweak_categories["Tweak categories"]
  node_registry["Registry access<br/>[registry.rs]"]
  node_restore["Restore points<br/>[restore_point.rs]"]
  node_platform["Windows APIs<br/>[winapi.rs]"]
end

node_user(("Desktop user"))
node_windows{{"Windows system"}}

node_user -->|"uses"| node_ui_main
node_ui_main -->|"invokes commands"| node_bridge
node_ui_main -->|"renders"| node_ui_color
node_ui_main -->|"renders"| node_ui_tweakspage
node_ui_main -->|"renders"| node_ui_storage
node_ui_main -->|"imports"| node_ui_binds
node_ui_main -->|"imports"| node_ui_characteristics
node_ui_main -->|"imports"| node_ui_settings
node_ui_tweakspage -->|"uses catalog"| node_ui_tweaks
node_ui_color -->|"reads state"| node_ui_state
node_ui_binds -->|"reads state"| node_ui_state
node_ui_settings -->|"reads state"| node_ui_state
node_ui_settings -->|"uses translations"| node_ui_i18n
node_bridge -.->|"dispatches commands"| node_tauri
node_tauri -->|"registers handlers"| node_commands_app
node_commands_app -->|"uses state"| node_runtime_state
node_commands_app -->|"applies settings"| node_color_transform
node_commands_storage -->|"reads and writes"| node_runtime_state
node_commands_storage -->|"applies restored color"| node_color_transform
node_tauri -->|"loads"| node_runtime_state
node_runtime_state -->|"starts worker"| node_workers
node_ui_tweakspage -.->|"requests tweaks"| node_tweak_commands
node_tweak_commands -.->|"dispatches operations"| node_tweak_engine
node_tweak_engine -->|"selects category handlers"| node_tweak_categories
node_tweak_engine -->|"runs operations"| node_tweak_runner
node_tweak_runner -->|"accesses registry"| node_registry
node_tweak_engine -->|"creates restore point"| node_restore
node_tweak_runner -->|"uses Windows APIs"| node_platform
node_tweak_categories -.->|"changes settings"| node_windows
node_color_transform -.->|"adjusts display output"| node_platform
node_hotkeys -->|"uses platform APIs"| node_platform
node_hotkeys -->|"selects profiles"| node_color_page
node_windows -.->|"game profile triggers"| node_hotkeys
node_ui_main -->|"installs updates"| node_updater

click node_ui_main "https://github.com/arean-max/synchro-nova/blob/main/src/app/main.js"
click node_ui_color "https://github.com/arean-max/synchro-nova/blob/main/src/app/features/color/page.js"
click node_ui_tweaks "https://github.com/arean-max/synchro-nova/blob/main/src/app/features/tweaks/catalog.js"
click node_ui_tweakspage "https://github.com/arean-max/synchro-nova/blob/main/src/app/features/tweaks/page.js"
click node_ui_storage "https://github.com/arean-max/synchro-nova/blob/main/src/app/features/storage/page.js"
click node_ui_binds "https://github.com/arean-max/synchro-nova/blob/main/src/app/features/binds/page.js"
click node_ui_characteristics "https://github.com/arean-max/synchro-nova/blob/main/src/app/features/characteristics/page.js"
click node_ui_settings "https://github.com/arean-max/synchro-nova/blob/main/src/app/features/settings/page.js"
click node_ui_state "https://github.com/arean-max/synchro-nova/blob/main/src/app/core/state.js"
click node_ui_i18n "https://github.com/arean-max/synchro-nova/blob/main/src/app/core/i18n.js"
click node_bridge "https://github.com/arean-max/synchro-nova/blob/main/src/app/core/bridge.js"
click node_tauri "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/lib.rs"
click node_commands_app "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/commands/app.rs"
click node_commands_storage "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/commands/storage.rs"
click node_runtime_state "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/app/state.rs"
click node_color_page "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/color/black_holo.rs"
click node_color_transform "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/color/transform.rs"
click node_hotkeys "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/hotkeys/mod.rs"
click node_workers "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/app/workers.rs"
click node_tweak_commands "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/commands/tweaks.rs"
click node_tweak_engine "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/tweaks/engine.rs"
click node_tweak_runner "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/tweaks/runner.rs"
click node_tweak_categories "https://github.com/arean-max/synchro-nova/tree/main/src-tauri/src/domain/tweaks"
click node_registry "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/infra/registry.rs"
click node_restore "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/infra/restore_point.rs"
click node_platform "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/platform/ffi/winapi.rs"
click node_updater "https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/updater/client.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_ui_main,node_ui_color,node_ui_tweaks,node_ui_tweakspage,node_ui_storage,node_ui_binds,node_ui_characteristics,node_ui_settings,node_ui_state,node_ui_i18n,node_user toneBlue
class node_bridge,node_tauri,node_commands_app,node_commands_storage,node_runtime_state,node_workers,node_updater toneAmber
class node_color_page,node_color_transform,node_hotkeys toneMint
class node_tweak_commands,node_tweak_engine,node_tweak_runner,node_tweak_categories,node_registry,node_restore,node_platform toneRose
class node_windows toneIndigo
```

## Components

### Desktop interface

- [UI coordinator](https://github.com/arean-max/synchro-nova/blob/main/src/app/main.js): `src/app/main.js`
- [Color controls](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/color/page.js): `src/app/features/color/page.js`
- [Tweaks catalog](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/tweaks/catalog.js): `src/app/features/tweaks/catalog.js`
- [Tweaks page](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/tweaks/page.js): `src/app/features/tweaks/page.js`
- [Backup page](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/storage/page.js): `src/app/features/storage/page.js`
- [Keybind page](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/binds/page.js): `src/app/features/binds/page.js`
- [System details](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/characteristics/page.js): `src/app/features/characteristics/page.js`
- [Settings page](https://github.com/arean-max/synchro-nova/blob/main/src/app/features/settings/page.js): `src/app/features/settings/page.js`
- [UI state](https://github.com/arean-max/synchro-nova/blob/main/src/app/core/state.js): `src/app/core/state.js`
- [Localization](https://github.com/arean-max/synchro-nova/blob/main/src/app/core/i18n.js): `src/app/core/i18n.js`

### Application runtime

- [Tauri bridge](https://github.com/arean-max/synchro-nova/blob/main/src/app/core/bridge.js): `src/app/core/bridge.js`
- [Tauri runtime](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/lib.rs): `src-tauri/src/lib.rs`
- [App commands](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/commands/app.rs): `src-tauri/src/commands/app.rs`
- [Storage commands](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/commands/storage.rs): `src-tauri/src/commands/storage.rs`
- [Runtime state](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/app/state.rs): `src-tauri/src/app/state.rs`
- [Runtime workers](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/app/workers.rs): `src-tauri/src/app/workers.rs`
- [Update client](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/updater/client.rs): `src-tauri/src/domain/updater/client.rs`

### Color and profiles

- [Color settings](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/color/black_holo.rs): `src-tauri/src/domain/color/black_holo.rs`
- [Color transform](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/color/transform.rs): `src-tauri/src/domain/color/transform.rs`
- [Hotkey profiles](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/hotkeys/mod.rs): `src-tauri/src/domain/hotkeys/mod.rs`

### Windows optimization

- [Tweak commands](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/commands/tweaks.rs): `src-tauri/src/commands/tweaks.rs`
- [Tweak engine](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/tweaks/engine.rs): `src-tauri/src/domain/tweaks/engine.rs`
- [Tweak runner](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/domain/tweaks/runner.rs): `src-tauri/src/domain/tweaks/runner.rs`
- [Tweak categories](https://github.com/arean-max/synchro-nova/tree/main/src-tauri/src/domain/tweaks): `src-tauri/src/domain/tweaks`
- [Registry access](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/infra/registry.rs): `src-tauri/src/infra/registry.rs`
- [Restore points](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/infra/restore_point.rs): `src-tauri/src/infra/restore_point.rs`
- [Windows APIs](https://github.com/arean-max/synchro-nova/blob/main/src-tauri/src/platform/ffi/winapi.rs): `src-tauri/src/platform/ffi/winapi.rs`

### Other components

- **Desktop user**
- **Windows system**

## Connections

- Desktop user → UI coordinator: uses (evidence: `README.md`)
- UI coordinator → Tauri bridge: invokes commands (evidence: `src/app/main.js`)
- UI coordinator → Color controls: renders (evidence: `src/app/main.js`)
- UI coordinator → Tweaks page: renders (evidence: `src/app/main.js`)
- UI coordinator → Backup page: renders (evidence: `src/app/main.js`)
- UI coordinator → Keybind page: imports (evidence: `src/app/main.js`)
- UI coordinator → System details: imports (evidence: `src/app/main.js`)
- UI coordinator → Settings page: imports (evidence: `src/app/main.js`)
- Tweaks page → Tweaks catalog: uses catalog (evidence: `src/app/main.js`)
- Color controls → UI state: reads state (evidence: `src/app/features/color/page.js`)
- Keybind page → UI state: reads state (evidence: `src/app/features/binds/page.js`)
- Settings page → UI state: reads state (evidence: `src/app/features/settings/page.js`)
- Settings page → Localization: uses translations (evidence: `src/app/features/settings/page.js`)
- Tauri bridge → Tauri runtime: dispatches commands
- Tauri runtime → App commands: registers handlers (evidence: `src-tauri/src/lib.rs`)
- App commands → Runtime state: uses state (evidence: `src-tauri/src/commands/app.rs`)
- App commands → Color transform: applies settings (evidence: `src-tauri/src/commands/app.rs`)
- Storage commands → Runtime state: reads and writes (evidence: `src-tauri/src/commands/storage.rs`)
- Storage commands → Color transform: applies restored color (evidence: `src-tauri/src/commands/storage.rs`)
- Tauri runtime → Runtime state: loads (evidence: `src-tauri/src/lib.rs`)
- Runtime state → Runtime workers: starts worker (evidence: `src-tauri/src/app/workers.rs`)
- Tweaks page → Tweak commands: requests tweaks
- Tweak commands → Tweak engine: dispatches operations
- Tweak engine → Tweak categories: selects category handlers (evidence: `src-tauri/src/domain/tweaks/engine.rs`)
- Tweak engine → Tweak runner: runs operations (evidence: `src-tauri/src/domain/tweaks/engine.rs`)
- Tweak runner → Registry access: accesses registry (evidence: `src-tauri/src/domain/tweaks/runner.rs`)
- Tweak engine → Restore points: creates restore point (evidence: `src-tauri/src/domain/tweaks/engine.rs`)
- Tweak runner → Windows APIs: uses Windows APIs (evidence: `src-tauri/src/domain/tweaks/runner.rs`)
- Tweak categories → Windows system: changes settings
- Color transform → Windows APIs: adjusts display output
- Hotkey profiles → Windows APIs: uses platform APIs (evidence: `src-tauri/src/domain/hotkeys/mod.rs`)
- Hotkey profiles → Color settings: selects profiles (evidence: `src-tauri/src/domain/hotkeys/mod.rs`)
- Windows system → Hotkey profiles: game profile triggers (evidence: `README.md`)
- UI coordinator → Update client: installs updates (evidence: `src/app/main.js`)
