# regataos/game-access architecture

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

- Interactive diagram: https://gitdiagram.com/regataos/game-access
- Repository: https://github.com/regataos/game-access

## Overview

Regata OS Game Access is a desktop game discovery and installation application, aimed especially at users moving from Windows. The main user workflow is to search or browse a game, inspect its details, choose installation options, confirm installation, and monitor progress; installed games can also be launched or removed. The tree shows catalog, launcher, account, and settings capabilities, but most of their implementations were not sampled, so their connections are omitted. The graph includes the sampled GOG tools and tray interface as distinct product-support branches.

Main entry points: [`opt/regataos-gcs/www/js/search.js`](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/search.js) (Search entry), [`opt/regataos-gcs/tools/gogdl/gogdl_helper.py`](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/gogdl/gogdl_helper.py) (GOG library helper), [`opt/regataos-gcs/tools/csv-to-json-converter/csv-to-json-converter.py`](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/csv-to-json-converter/csv-to-json-converter.py) (CSV converter), [`opt/regataos-gcs/www/js/js-pages/dynamic-search.js`](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/dynamic-search.js) (Search results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Discovery and UI"]
  node_search_entry["Search entry<br/>[search.js]"]
  node_search_page["Search results<br/>[dynamic-search.js]"]
  node_catalog_views["Catalog views<br/>[games-list.js]"]
  node_game_details["Game details"]
  node_launcher_views["Launcher views<br/>[launchers-list.js]"]
  node_steam_games["Steam games"]
  node_gog_games["GOG games<br/>[gog-games-list.js]"]
  node_amazon_games["Amazon games"]
end

subgraph group_accounts["Launcher accounts"]
  node_launcher_login["Launcher sign-in<br/>[gog-login.js]"]
  node_epic_login["Epic sign-in<br/>[epicstore-login.js]"]
  node_amazon_login["Amazon sign-in<br/>[amazon-login.js]"]
end

subgraph group_lifecycle["Game lifecycle"]
  node_install_confirm["Install confirmation"]
  node_install_scripts["Install scripts"]
  node_progress["Download progress<br/>[progress-bar.js]"]
  node_installed_games["Installed games"]
  node_game_actions["Game actions"]
end

subgraph group_support["Catalog and desktop support"]
  node_gog_helper["GOG library helper<br/>[gogdl_helper.py]"]
  node_galaxy_export["Galaxy export"]
  node_csv_convert["CSV converter"]
  node_tray["System tray<br/>[gcs-icontray.py]"]
end

node_user(("Player"))
node_gog_service{{"GOG services"}}
node_search_file["Search keyword file"]
node_gog_tokens["GOG token file"]
node_gog_library_api{{"GOG library API"}}
node_games_database[("GOG Galaxy database")]
node_csv_file["CSV input"]
node_json_file["JSON output"]
node_tray_commands{{"Tray commands"}}

node_user -->|"searches"| node_search_entry
node_search_entry -->|"writes keyword"| node_search_file
node_search_entry -->|"opens results"| node_search_page
node_search_page -->|"reads keyword"| node_search_file
node_user -.->|"browses games"| node_catalog_views
node_user -.->|"chooses install"| node_install_confirm
node_install_confirm -->|"runs installer"| node_install_scripts
node_install_scripts -.->|"reports progress"| node_progress
node_user -.->|"manages games"| node_game_actions
node_gog_helper -->|"reads and saves"| node_gog_tokens
node_gog_helper -->|"fetches library"| node_gog_library_api
node_galaxy_export -->|"queries database"| node_games_database
node_csv_convert -->|"reads CSV"| node_csv_file
node_csv_convert -->|"writes JSON"| node_json_file
node_tray -->|"runs commands"| node_tray_commands

click node_search_entry "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/search.js"
click node_search_page "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/dynamic-search.js"
click node_catalog_views "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/games-list.js"
click node_game_details "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gcs/apply-game-content.js"
click node_launcher_views "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/launchers-list.js"
click node_steam_games "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/steam-games-list.js"
click node_gog_games "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gog-games-list.js"
click node_amazon_games "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/amazon-games-list.js"
click node_launcher_login "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gog-login.js"
click node_epic_login "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/epicstore-login.js"
click node_amazon_login "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/amazon-login.js"
click node_install_confirm "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/confirm-installation.js"
click node_install_scripts "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/confirm-installation.js"
click node_progress "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/progress-bar/progress-bar.js"
click node_installed_games "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/check-installed-games.js"
click node_game_actions "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gcs/game-button-actions.js"
click node_gog_helper "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/gogdl/gogdl_helper.py"
click node_galaxy_export "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/gog-galaxy-export-script/galaxy_library_export.py"
click node_csv_convert "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/csv-to-json-converter/csv-to-json-converter.py"
click node_tray "https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tray-icon/gcs-icontray.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_search_entry,node_search_page,node_catalog_views,node_game_details,node_launcher_views,node_steam_games,node_gog_games,node_amazon_games toneBlue
class node_launcher_login,node_epic_login,node_amazon_login,node_games_database toneAmber
class node_install_confirm,node_install_scripts,node_progress,node_installed_games,node_game_actions,node_gog_library_api toneMint
class node_gog_helper,node_galaxy_export,node_csv_convert,node_tray toneRose
class node_user,node_gog_service,node_search_file,node_gog_tokens,node_csv_file,node_json_file,node_tray_commands toneIndigo
```

## Components

### Discovery and UI

- [Search entry](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/search.js): `opt/regataos-gcs/www/js/search.js`
- [Search results](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/dynamic-search.js): `opt/regataos-gcs/www/js/js-pages/dynamic-search.js`
- [Catalog views](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/games-list.js): `opt/regataos-gcs/www/js/js-pages/games-list.js`
- [Game details](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gcs/apply-game-content.js): `opt/regataos-gcs/www/js/js-pages/gcs/apply-game-content.js`
- [Launcher views](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/launchers-list.js): `opt/regataos-gcs/www/js/js-pages/launchers-list.js`
- [Steam games](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/steam-games-list.js): `opt/regataos-gcs/www/js/js-pages/steam-games-list.js`
- [GOG games](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gog-games-list.js): `opt/regataos-gcs/www/js/js-pages/gog-games-list.js`
- [Amazon games](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/amazon-games-list.js): `opt/regataos-gcs/www/js/js-pages/amazon-games-list.js`

### Launcher accounts

- [Launcher sign-in](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gog-login.js): `opt/regataos-gcs/www/js/js-pages/gog-login.js`
- [Epic sign-in](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/epicstore-login.js): `opt/regataos-gcs/www/js/js-pages/epicstore-login.js`
- [Amazon sign-in](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/amazon-login.js): `opt/regataos-gcs/www/js/js-pages/amazon-login.js`

### Game lifecycle

- [Install confirmation](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/confirm-installation.js): `opt/regataos-gcs/www/js/confirm-installation.js`
- [Install scripts](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/confirm-installation.js): `opt/regataos-gcs/www/js/confirm-installation.js`
- [Download progress](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/progress-bar/progress-bar.js): `opt/regataos-gcs/www/js/progress-bar/progress-bar.js`
- [Installed games](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/check-installed-games.js): `opt/regataos-gcs/www/js/js-pages/check-installed-games.js`
- [Game actions](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/www/js/js-pages/gcs/game-button-actions.js): `opt/regataos-gcs/www/js/js-pages/gcs/game-button-actions.js`

### Catalog and desktop support

- [GOG library helper](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/gogdl/gogdl_helper.py): `opt/regataos-gcs/tools/gogdl/gogdl_helper.py`
- [Galaxy export](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/gog-galaxy-export-script/galaxy_library_export.py): `opt/regataos-gcs/tools/gog-galaxy-export-script/galaxy_library_export.py`
- [CSV converter](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tools/csv-to-json-converter/csv-to-json-converter.py): `opt/regataos-gcs/tools/csv-to-json-converter/csv-to-json-converter.py`
- [System tray](https://github.com/regataos/game-access/blob/main/opt/regataos-gcs/tray-icon/gcs-icontray.py): `opt/regataos-gcs/tray-icon/gcs-icontray.py`

### Other components

- **Player**
- **GOG services**
- **Search keyword file**
- **GOG token file**
- **GOG library API**
- **GOG Galaxy database**
- **CSV input**
- **JSON output**
- **Tray commands**

## Connections

- Player → Search entry: searches (evidence: `opt/regataos-gcs/www/js/search.js`)
- Search entry → Search keyword file: writes keyword (evidence: `opt/regataos-gcs/www/js/search.js`)
- Search entry → Search results: opens results (evidence: `opt/regataos-gcs/www/js/search.js`)
- Search results → Search keyword file: reads keyword (evidence: `opt/regataos-gcs/www/js/js-pages/dynamic-search.js`)
- Player → Catalog views: browses games
- Player → Install confirmation: chooses install
- Install confirmation → Install scripts: runs installer (evidence: `opt/regataos-gcs/www/js/confirm-installation.js`)
- Install scripts → Download progress: reports progress
- Player → Game actions: manages games
- GOG library helper → GOG token file: reads and saves (evidence: `opt/regataos-gcs/tools/gogdl/gogdl_helper.py`)
- GOG library helper → GOG library API: fetches library (evidence: `opt/regataos-gcs/tools/gogdl/gogdl_helper.py`)
- Galaxy export → GOG Galaxy database: queries database (evidence: `opt/regataos-gcs/tools/gog-galaxy-export-script/galaxy_library_export.py`)
- CSV converter → CSV input: reads CSV (evidence: `opt/regataos-gcs/tools/csv-to-json-converter/csv-to-json-converter.py`)
- CSV converter → JSON output: writes JSON (evidence: `opt/regataos-gcs/tools/csv-to-json-converter/csv-to-json-converter.py`)
- System tray → Tray commands: runs commands (evidence: `opt/regataos-gcs/tray-icon/gcs-icontray.py`)
