# iringil/gamepreset-peek architecture

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

- Interactive diagram: https://gitdiagram.com/iringil/gamepreset-peek
- Repository: https://github.com/iringil/gamepreset-peek

## Overview

GamePresetPeek is a Python runtime library for inspecting NVIDIA game recommendations without NVIDIA App. Its visible workflow gathers Windows hardware details, represents that hardware in shared models, and uses an HTTP-backed NVIDIA OPS client to retrieve compatibility results and game preset data, including files and translations. Supporting capabilities include game-name lookup, saved language/GPU preferences, and logging. No README or UI/entry-point implementation was provided, so the initiating application workflow is not shown; the graph focuses on evidenced runtime components and relationships.

Main entry points: [`src/app/config.py`](https://github.com/iringil/gamepreset-peek/blob/master/src/app/config.py) (Application Config), [`src/app/core/user_settings.py`](https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/user_settings.py) (User Settings Store), [`src/app/infra/http_client.py`](https://github.com/iringil/gamepreset-peek/blob/master/src/app/infra/http_client.py) (HTTP Client), [`src/app/core/models.py`](https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/models.py) (Domain Models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hardware["Hardware"]
  node_hardware_detect["Hardware Detection<br/>[hardware.py]"]
  node_domain_models["Domain Models<br/>[models.py]"]
  node_windows_registry{{"Windows Registry"}}
end

subgraph group_nvidia["NVIDIA OPS"]
  node_ops_api["OPS API<br/>[ops_api.py]"]
  node_nvidia_ops{{"NVIDIA OPS"}}
end

subgraph group_support["Local Support"]
  node_app_config["Application Config<br/>[config.py]"]
  node_game_names["Game Name Lookup<br/>[game_names.py]"]
  node_game_name_data["Game Name Catalog<br/>[game_names.json]"]
  node_settings_store["User Settings Store<br/>[user_settings.py]"]
  node_settings_file[("Saved Settings")]
end

subgraph group_infra["Infrastructure"]
  node_http_client["HTTP Client<br/>[http_client.py]"]
  node_logging["Logging Manager<br/>[logger.py]"]
end

node_hardware_detect -->|"reads hardware"| node_windows_registry
node_hardware_detect -->|"uses models"| node_domain_models
node_ops_api -->|"parses into"| node_domain_models
node_ops_api -->|"requests through"| node_http_client
node_http_client -->|"sends requests"| node_nvidia_ops
node_game_names -->|"gets catalog path"| node_app_config
node_app_config -->|"sets catalog path"| node_game_name_data
node_settings_store -->|"gets settings path"| node_app_config
node_settings_store -->|"loads and saves"| node_domain_models
node_settings_store -->|"reads and writes"| node_settings_file
node_http_client -->|"uses HTTP settings"| node_app_config
node_logging -->|"gets log path"| node_app_config

click node_hardware_detect "https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/hardware.py"
click node_domain_models "https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/models.py"
click node_ops_api "https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/ops_api.py"
click node_http_client "https://github.com/iringil/gamepreset-peek/blob/master/src/app/infra/http_client.py"
click node_app_config "https://github.com/iringil/gamepreset-peek/blob/master/src/app/config.py"
click node_game_names "https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/game_names.py"
click node_game_name_data "https://github.com/iringil/gamepreset-peek/blob/master/src/app/data/game_names.json"
click node_settings_store "https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/user_settings.py"
click node_logging "https://github.com/iringil/gamepreset-peek/blob/master/src/app/infra/logger.py"

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_hardware_detect,node_domain_models,node_windows_registry toneBlue
class node_ops_api,node_nvidia_ops toneAmber
class node_app_config,node_game_names,node_game_name_data,node_settings_store,node_settings_file toneMint
class node_http_client,node_logging toneRose
```

## Components

### Hardware

- [Hardware Detection](https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/hardware.py): `src/app/core/hardware.py`
- [Domain Models](https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/models.py): `src/app/core/models.py`
- **Windows Registry**

### NVIDIA OPS

- [OPS API](https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/ops_api.py): `src/app/core/ops_api.py`
- **NVIDIA OPS**

### Local Support

- [Application Config](https://github.com/iringil/gamepreset-peek/blob/master/src/app/config.py): `src/app/config.py`
- [Game Name Lookup](https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/game_names.py): `src/app/core/game_names.py`
- [Game Name Catalog](https://github.com/iringil/gamepreset-peek/blob/master/src/app/data/game_names.json): `src/app/data/game_names.json`
- [User Settings Store](https://github.com/iringil/gamepreset-peek/blob/master/src/app/core/user_settings.py): `src/app/core/user_settings.py`
- **Saved Settings**

### Infrastructure

- [HTTP Client](https://github.com/iringil/gamepreset-peek/blob/master/src/app/infra/http_client.py): `src/app/infra/http_client.py`
- [Logging Manager](https://github.com/iringil/gamepreset-peek/blob/master/src/app/infra/logger.py): `src/app/infra/logger.py`

## Connections

- Hardware Detection → Windows Registry: reads hardware (evidence: `src/app/core/hardware.py`)
- Hardware Detection → Domain Models: uses models (evidence: `src/app/core/hardware.py`)
- OPS API → Domain Models: parses into (evidence: `src/app/core/ops_api.py`)
- OPS API → HTTP Client: requests through (evidence: `src/app/core/ops_api.py`)
- HTTP Client → NVIDIA OPS: sends requests (evidence: `src/app/infra/http_client.py`)
- Game Name Lookup → Application Config: gets catalog path (evidence: `src/app/core/game_names.py`)
- Application Config → Game Name Catalog: sets catalog path (evidence: `src/app/config.py`)
- User Settings Store → Application Config: gets settings path (evidence: `src/app/core/user_settings.py`)
- User Settings Store → Domain Models: loads and saves (evidence: `src/app/core/user_settings.py`)
- User Settings Store → Saved Settings: reads and writes (evidence: `src/app/core/user_settings.py`)
- HTTP Client → Application Config: uses HTTP settings (evidence: `src/app/infra/http_client.py`)
- Logging Manager → Application Config: gets log path (evidence: `src/app/infra/logger.py`)
