How hazardos1/csam- works
CS2 Account Manager is an Electron desktop app for managing a user's Steam accounts, encrypted credentials and authenticators, CS2 status scans, and launching accounts in Steam. The main workflow is to unlock or import accounts, manage their credentials/authenticator, scan account status through Steam and the CS2 Game Coordinator, then review results in the interface. The graph also includes authenticator creation/removal, confirmations, backup, and account launch. Relationships reflect the shown main-process dispatch and documented workflows; renderer-to-main IPC details and several unsampled subsystem internals are not fully visible, so those links are marked unverified.
Main entry points: main.js Electron coordinator · scanner.js Scan engine · renderer.js Account UI · authenticator.js Authenticator flow
Components 18
Desktop interface
- Account UI
src/renderer/renderer.js - Translations
src/renderer/i18n.js - IPC bridge
src/main/preload.js - Electron coordinator
src/main/main.js
Account and vault
- Encrypted vault
src/main/vault.js - Vault encryption
src/main/crypto.js - SDA import/export
src/main/sda.js
Steam account operations
- Authenticator flow
src/main/authenticator.js - Steam Guard codes
src/main/main.js - Mobile confirmations
src/main/confirmations.js - Confirmation autofill
src/main/autofill.js - Steam account launch
src/main/launcher.js - Secret redaction
src/main/redact.js
CS2 status scanning
- Scan engine
src/main/scanner.js - Status normalization
src/main/cs2data.js
Other components
- Account owner
- Steam services
- CS2 Game Coordinator
Connections 22
- Account owner → Account UI: uses
README.md - Account UI → Translations: localizes
README.md - Account UI → IPC bridge: invokes IPC
- IPC bridge → Electron coordinator: forwards IPC
- Electron coordinator → Encrypted vault: manages accounts
src/main/main.js - Encrypted vault → Vault encryption: encrypts data
src/main/vault.js - Electron coordinator → SDA import/export: imports and exports
src/main/main.js - Electron coordinator → Authenticator flow: dispatches flow
src/main/main.js - Authenticator flow → Steam services: requests authenticator
README.md - Electron coordinator → Mobile confirmations: handles responses
src/main/main.js - Electron coordinator → Confirmation autofill: dispatches
src/main/main.js - Electron coordinator → Steam account launch: launches account
src/main/main.js - Electron coordinator → Scan engine: controls scans
src/main/main.js - Scan engine → Steam services: logs in
README.md - Scan engine → CS2 Game Coordinator: requests CS2 data
README.md - Scan engine → Status normalization: normalizes results
src/main/scanner.js - Electron coordinator → Steam Guard codes: generates codes
src/main/main.js - Authenticator flow → Secret redaction: redacts logs
src/main/authenticator.js - Scan engine → Secret redaction: redacts logs
src/main/scanner.js - Mobile confirmations → Secret redaction: redacts logs
src/main/confirmations.js - Electron coordinator → Encrypted vault: backs up vault
README.md - Steam account launch → Steam services: starts client
src/main/launcher.js