# zekdav/steampricecounter architecture

> Architecture diagram of the GitHub repository zekdav/steampricecounter, 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/zekdav/steampricecounter
- Repository: https://github.com/zekdav/steampricecounter

## Overview

This is a small console application that estimates the value of a Steam account’s game library. Its main flow fetches the owned-game list, looks up each game’s Polish price, totals paid and free games, and prints the statistics. The excerpts show the HTTP requests, JSON deserialization, and orchestration; the external Steam services are inferred from request URLs. The project file is present in the tree but is not part of the runtime map.

Main entry points: [`Program.cs`](https://github.com/zekdav/steampricecounter/blob/main/Program.cs) (Valuation workflow), [`ReceiveLibraryData.cs`](https://github.com/zekdav/steampricecounter/blob/main/ReceiveLibraryData.cs) (Library retrieval), [`ReceiveGameData.cs`](https://github.com/zekdav/steampricecounter/blob/main/ReceiveGameData.cs) (Game details retrieval), [`GetLibraryData.cs`](https://github.com/zekdav/steampricecounter/blob/main/GetLibraryData.cs) (Library response models)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Account valuation"]
  node_program["Valuation workflow<br/>[Program.cs]"]
end

subgraph group_clients["Steam API clients"]
  node_library_client["Library retrieval"]
  node_game_client["Game details retrieval<br/>[ReceiveGameData.cs]"]
end

subgraph group_models["Response models"]
  node_library_models["Library response models<br/>[GetLibraryData.cs]"]
  node_game_models["Game detail models<br/>[GetGameData.cs]"]
end

node_user(("Console user"))
node_owned_games_api{{"Steam owned-games API"}}
node_app_details_api{{"Steam app-details API"}}

node_user -->|"runs"| node_program
node_program -->|"requests library"| node_library_client
node_library_client -->|"fetches games"| node_owned_games_api
node_library_client -->|"deserializes into"| node_library_models
node_program -->|"requests details"| node_game_client
node_game_client -->|"fetches details"| node_app_details_api
node_game_client -->|"deserializes into"| node_game_models

click node_program "https://github.com/zekdav/steampricecounter/blob/main/Program.cs"
click node_library_client "https://github.com/zekdav/steampricecounter/blob/main/ReceiveLibraryData.cs"
click node_game_client "https://github.com/zekdav/steampricecounter/blob/main/ReceiveGameData.cs"
click node_library_models "https://github.com/zekdav/steampricecounter/blob/main/GetLibraryData.cs"
click node_game_models "https://github.com/zekdav/steampricecounter/blob/main/GetGameData.cs"

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_program,node_user toneBlue
class node_library_client,node_game_client toneAmber
class node_library_models,node_game_models,node_owned_games_api,node_app_details_api toneMint
```

## Components

### Account valuation

- [Valuation workflow](https://github.com/zekdav/steampricecounter/blob/main/Program.cs): `Program.cs`

### Steam API clients

- [Library retrieval](https://github.com/zekdav/steampricecounter/blob/main/ReceiveLibraryData.cs): `ReceiveLibraryData.cs`
- [Game details retrieval](https://github.com/zekdav/steampricecounter/blob/main/ReceiveGameData.cs): `ReceiveGameData.cs`

### Response models

- [Library response models](https://github.com/zekdav/steampricecounter/blob/main/GetLibraryData.cs): `GetLibraryData.cs`
- [Game detail models](https://github.com/zekdav/steampricecounter/blob/main/GetGameData.cs): `GetGameData.cs`

### Other components

- **Console user**
- **Steam owned-games API**
- **Steam app-details API**

## Connections

- Console user → Valuation workflow: runs
- Valuation workflow → Library retrieval: requests library (evidence: `Program.cs`)
- Library retrieval → Steam owned-games API: fetches games (evidence: `ReceiveLibraryData.cs`)
- Library retrieval → Library response models: deserializes into (evidence: `ReceiveLibraryData.cs`)
- Valuation workflow → Game details retrieval: requests details (evidence: `Program.cs`)
- Game details retrieval → Steam app-details API: fetches details (evidence: `ReceiveGameData.cs`)
- Game details retrieval → Game detail models: deserializes into (evidence: `ReceiveGameData.cs`)
