# gibbed/steamachievementmanager architecture

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

- Interactive diagram: https://gitdiagram.com/gibbed/steamachievementmanager
- Repository: https://github.com/gibbed/steamachievementmanager

## Overview

### Overview

Steam Achievement Manager (SAM) is a portable desktop application for managing Steam achievements and statistics. The README documents a runtime dependency on the Steam client, a logged-in Steam account, and network access.

#### Core components

- **Steam API surface and client coordination — `SAM.API/Client.cs`**
Provides the API project’s client-facing coordination area, alongside `SAM.API/Steam.cs`, initialization failures, callbacks, and callback-related types.

- **Native Steam integration — `SAM.API/NativeWrapper.cs`**
Contains the native-wrapper boundary and supporting native classes/strings. Versioned interfaces under `SAM.API/Interfaces` and corresponding implementations under `SAM.API/Wrappers` represent Steam service contracts and alternative version-specific wrappers.

- **API callbacks and data types — `SAM.API/Callbacks`**
Defines callback implementations such as achievement/statistics-related notifications, with shared messages and result structures under `SAM.API/Types`. This is the event/data exchange area between Steam integration and application code.

- **Game management UI and domain model — `SAM.Game/Manager.cs`**
Owns the main game-management screen and its desktop interaction surface. Supporting achievement and statistic definitions, values, flags, and validation types are grouped under `SAM.Game/Stats`.

- **Game selection UI — `SAM.Picker/GamePicker.cs`**
Provides the separate game-picker screen and related game/logo presentation types, allowing the application to represent and select Steam games before management.

#### Entry points and public surface

`SAM.Game/Program.cs` and `SAM.Picker/Program.cs` are the two application startup areas indicated by the project layout. `SAM.API/Steam.cs` and `SAM.API/Client.cs` are the principal API-facing classes; consumers of the library-facing project can also work through its callback, interface, wrapper, and type areas.

#### Relationships

`SAM.API` owns communication with the external Steam client and exposes Steam-facing data/events. `SAM.Game` owns achievement/statistics management and its presentation model, while `SAM.Picker` owns game selection. The project organization indicates that the two application projects are separate consumers of the API area; the supplied evidence does not establish their exact import or call order.

#### External boundary

The Steam client, Steam account, and network are external actors and prerequisites, not repository components. The versioned interface/wrapper organization marks the principal integration boundary for Steam services. No repository-backed database or other persistent storage subsystem is identified by the supplied tree.

Main entry points: [`SAM.API/Client.cs`](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.API/Client.cs) (API Client Coordination), [`SAM.API/NativeWrapper.cs`](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.API/NativeWrapper.cs) (Native Steam Integration), [`SAM.API/Callbacks`](https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Callbacks) (API Callbacks), [`SAM.API/Wrappers`](https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Wrappers) (Steam Wrappers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["SAM.API"]
  node_api_client["API Client Coordination<br/>API coordination<br/>[Client.cs]"]
  node_native_integration{{"Native Steam Integration<br/>native integration<br/>[NativeWrapper.cs]"}}
  node_steam_contracts["Steam Contracts<br/>versioned interfaces<br/>[Interfaces]"]
  node_steam_wrappers["Steam Wrappers<br/>versioned implementations<br/>[Wrappers]"]
  node_callbacks["API Callbacks<br/>callback implementations<br/>[Callbacks]"]
  node_api_types["API Types<br/>messages and result structures<br/>[Types]"]
end

subgraph group_game["SAM.Game"]
  node_game_manager["Game Manager<br/>desktop management UI<br/>[Manager.cs]"]
  node_game_program["Game Startup<br/>application entry point<br/>[Program.cs]"]
end

subgraph group_picker["SAM.Picker"]
  node_game_picker["Game Picker<br/>desktop selection UI<br/>[GamePicker.cs]"]
  node_picker_program["Picker Startup<br/>application entry point<br/>[Program.cs]"]
end

node_steam_client(("Steam Client<br/>external system"))
node_steam_account(("Steam Account<br/>external actor"))
node_network(("Network<br/>external system"))

node_steam_client -->|"provides Steam services"| node_native_integration
node_steam_account -->|"enables access"| node_api_client
node_network -->|"enables access"| node_api_client
node_api_client -->|"coordinates"| node_native_integration
node_steam_wrappers -->|"implements"| node_steam_contracts
node_native_integration -->|"delivers callbacks"| node_callbacks
node_callbacks -->|"uses data types"| node_api_types
node_api_client -->|"serves"| node_game_manager
node_api_client -->|"serves"| node_game_picker

click node_api_client "https://github.com/gibbed/steamachievementmanager/blob/master/SAM.API/Client.cs"
click node_native_integration "https://github.com/gibbed/steamachievementmanager/blob/master/SAM.API/NativeWrapper.cs"
click node_steam_contracts "https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Interfaces"
click node_steam_wrappers "https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Wrappers"
click node_callbacks "https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Callbacks"
click node_api_types "https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Types"
click node_game_manager "https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Game/Manager.cs"
click node_game_program "https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Game/Program.cs"
click node_game_picker "https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Picker/GamePicker.cs"
click node_picker_program "https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Picker/Program.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_api_client,node_native_integration,node_steam_contracts,node_steam_wrappers,node_callbacks,node_api_types toneBlue
class node_game_manager,node_game_program toneAmber
class node_game_picker,node_picker_program toneMint
class node_steam_client,node_steam_account,node_network toneNeutral
```

## Components

### SAM.API

Steam integration and API-facing data exchange.

- [API Client Coordination](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.API/Client.cs): API coordination · Coordinates client-facing Steam API behavior and callbacks. · `SAM.API/Client.cs`
- [Native Steam Integration](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.API/NativeWrapper.cs): native integration · Boundary for native Steam services. · `SAM.API/NativeWrapper.cs`
- [Steam Contracts](https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Interfaces): versioned interfaces · Versioned Steam service contracts. · `SAM.API/Interfaces`
- [Steam Wrappers](https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Wrappers): versioned implementations · Alternative version-specific Steam wrappers. · `SAM.API/Wrappers`
- [API Callbacks](https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Callbacks): callback implementations · Achievement and statistics-related notifications. · `SAM.API/Callbacks`
- [API Types](https://github.com/gibbed/steamachievementmanager/tree/master/SAM.API/Types): messages and result structures · Shared callback messages and result data. · `SAM.API/Types`

### SAM.Game

Achievement and statistics management application.

- [Game Manager](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Game/Manager.cs): desktop management UI · Main game-management screen and domain model. · `SAM.Game/Manager.cs`
- [Game Startup](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Game/Program.cs): application entry point · `SAM.Game/Program.cs`

### SAM.Picker

Game selection application.

- [Game Picker](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Picker/GamePicker.cs): desktop selection UI · Selects Steam games before management. · `SAM.Picker/GamePicker.cs`
- [Picker Startup](https://github.com/gibbed/steamachievementmanager/blob/master/SAM.Picker/Program.cs): application entry point · `SAM.Picker/Program.cs`

### Other components

- **Steam Client**: external system · Required logged-in Steam client.
- **Steam Account**: external actor · Required logged-in account.
- **Network**: external system · Required for Steam access.

## Connections

- Steam Client → Native Steam Integration: provides Steam services
- Steam Account → API Client Coordination: enables access
- Network → API Client Coordination: enables access
- API Client Coordination → Native Steam Integration: coordinates
- Steam Wrappers → Steam Contracts: implements
- Native Steam Integration → API Callbacks: delivers callbacks
- API Callbacks → API Types: uses data types
- API Client Coordination → Game Manager: serves · SAM.Game is a consumer of the API area.
- API Client Coordination → Game Picker: serves · SAM.Picker is a consumer of the API area.
