# shaggy2035/cheaterornot architecture

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

- Interactive diagram: https://gitdiagram.com/shaggy2035/cheaterornot
- Repository: https://github.com/shaggy2035/cheaterornot

## Overview

Cheater or Not is a Windows desktop evidence-review tool for CS2, not an anti-cheat verdict system. The main workflows are collecting and screening public player evidence, and locally importing a demo for roster, event, telemetry, and optional video review. The graph preserves those distinct stages and the optional Gemini and public API integrations. Relationships are limited to README statements and the supplied source excerpts or index; unsampled implementation details are not inferred.

Main entry points: [`src/CheaterOrNot/MainWindow.axaml.cs`](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot/MainWindow.axaml.cs) (Main window), [`src/CheaterOrNot.Core/TrackerClient.cs`](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/TrackerClient.cs) (Public data retrieval), [`src/CheaterOrNot.Core/DemoGeminiAnalysis.cs`](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoGeminiAnalysis.cs) (Demo AI workflow), [`src/CheaterOrNot.Core/GeminiReviewClient.cs`](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/GeminiReviewClient.cs) (Gemini client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop app"]
  node_mainui["Main window"]
  node_videoui["Video tools window"]
  node_settings[("Local settings<br/>[SettingsStore.cs]")]
end

subgraph group_public["Public evidence"]
  node_tracker["Public data retrieval<br/>[TrackerClient.cs]"]
  node_webparse["Website data parsing"]
  node_pageparse["Page parsing<br/>[PageParser.cs]"]
  node_stats["Player statistics<br/>[ProPlayerStats.cs]"]
  node_screen["Screening rules<br/>[ScreeningRules.cs]"]
end

subgraph group_demo["Local demo review"]
  node_demoimport["Demo import<br/>[DemoImporter.cs]"]
  node_gameplay["Gameplay telemetry<br/>[DemoGameplay.cs]"]
  node_engagements["Engagement context<br/>[DemoEngagements.cs]"]
  node_shotwindows["Shot measurements<br/>[DemoShotWindows.cs]"]
  node_sampling["Review sampling"]
  node_capture["Clip capture"]
  node_capturetools["Capture tools"]
  node_contextaudit["Video context audit"]
  node_videoreview["Video preparation<br/>[DemoVideoReview.cs]"]
end

subgraph group_ai["AI review"]
  node_demogemini["Demo AI workflow"]
  node_gemini["Gemini client"]
  node_reviewresult["Review result parsing"]
  node_websiteai["Statistics AI review"]
end

node_reviewer(("Reviewer"))
node_publicsites(("Public statistics sources"))
node_optionalapis(("Optional APIs"))
node_google(("Google Gemini"))

node_reviewer -->|"uses"| node_mainui
node_mainui -->|"checks profiles"| node_tracker
node_tracker -->|"requests samples"| node_publicsites
node_tracker -.->|"queries optionally"| node_optionalapis
node_tracker -->|"parses responses"| node_webparse
node_tracker -->|"parses pages"| node_pageparse
node_webparse -->|"applies checks"| node_screen
node_webparse -->|"uses"| node_pageparse
node_mainui -->|"shows thresholds"| node_screen
node_mainui -->|"loads settings"| node_settings
node_mainui -->|"imports demo"| node_demoimport
node_reviewer -->|"opens tools"| node_videoui
node_videoui -->|"captures clips"| node_capture
node_capture -->|"uses tools"| node_capturetools
node_mainui -->|"starts review"| node_demogemini
node_demogemini -->|"captures clips"| node_capture
node_demogemini -->|"prepares batches"| node_videoreview
node_videoreview -->|"reuses clips"| node_capture
node_videoreview -->|"checks context"| node_contextaudit
node_demogemini -->|"sends batches"| node_gemini
node_gemini -->|"sends requests"| node_google
node_gemini -->|"parses response"| node_reviewresult
node_mainui -->|"requests AI review"| node_websiteai
node_websiteai -.->|"builds review request"| node_gemini
node_mainui -->|"shows measurements"| node_stats

click node_mainui "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot/MainWindow.axaml.cs"
click node_videoui "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot/VideoReviewWindow.cs"
click node_tracker "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/TrackerClient.cs"
click node_webparse "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/WebsiteDataParser.cs"
click node_pageparse "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/PageParser.cs"
click node_stats "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/ProPlayerStats.cs"
click node_screen "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/ScreeningRules.cs"
click node_settings "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/SettingsStore.cs"
click node_demoimport "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoImporter.cs"
click node_gameplay "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoGameplay.cs"
click node_engagements "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoEngagements.cs"
click node_shotwindows "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoShotWindows.cs"
click node_sampling "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoReviewSampling.cs"
click node_capture "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoVideoCapture.cs"
click node_capturetools "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/PortableCaptureTools.cs"
click node_contextaudit "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoVideoContextAudit.cs"
click node_videoreview "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoVideoReview.cs"
click node_demogemini "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoGeminiAnalysis.cs"
click node_gemini "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/GeminiReviewClient.cs"
click node_reviewresult "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/GeminiReviewResult.cs"
click node_websiteai "https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/GeminiWebsiteReview.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_mainui,node_videoui,node_settings,node_reviewer toneBlue
class node_tracker,node_webparse,node_pageparse,node_stats,node_screen toneAmber
class node_demoimport,node_gameplay,node_engagements,node_shotwindows,node_sampling,node_capture,node_capturetools,node_contextaudit,node_videoreview,node_optionalapis toneMint
class node_demogemini,node_gemini,node_reviewresult,node_websiteai toneRose
class node_publicsites,node_google toneIndigo
```

## Components

### Desktop app

- [Main window](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot/MainWindow.axaml.cs): `src/CheaterOrNot/MainWindow.axaml.cs`
- [Video tools window](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot/VideoReviewWindow.cs): `src/CheaterOrNot/VideoReviewWindow.cs`
- [Local settings](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/SettingsStore.cs): `src/CheaterOrNot.Core/SettingsStore.cs`

### Public evidence

- [Public data retrieval](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/TrackerClient.cs): `src/CheaterOrNot.Core/TrackerClient.cs`
- [Website data parsing](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/WebsiteDataParser.cs): `src/CheaterOrNot.Core/WebsiteDataParser.cs`
- [Page parsing](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/PageParser.cs): `src/CheaterOrNot.Core/PageParser.cs`
- [Player statistics](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/ProPlayerStats.cs): `src/CheaterOrNot.Core/ProPlayerStats.cs`
- [Screening rules](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/ScreeningRules.cs): `src/CheaterOrNot.Core/ScreeningRules.cs`

### Local demo review

- [Demo import](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoImporter.cs): `src/CheaterOrNot.Core/DemoImporter.cs`
- [Gameplay telemetry](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoGameplay.cs): `src/CheaterOrNot.Core/DemoGameplay.cs`
- [Engagement context](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoEngagements.cs): `src/CheaterOrNot.Core/DemoEngagements.cs`
- [Shot measurements](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoShotWindows.cs): `src/CheaterOrNot.Core/DemoShotWindows.cs`
- [Review sampling](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoReviewSampling.cs): `src/CheaterOrNot.Core/DemoReviewSampling.cs`
- [Clip capture](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoVideoCapture.cs): `src/CheaterOrNot.Core/DemoVideoCapture.cs`
- [Capture tools](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/PortableCaptureTools.cs): `src/CheaterOrNot.Core/PortableCaptureTools.cs`
- [Video context audit](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoVideoContextAudit.cs): `src/CheaterOrNot.Core/DemoVideoContextAudit.cs`
- [Video preparation](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoVideoReview.cs): `src/CheaterOrNot.Core/DemoVideoReview.cs`

### AI review

- [Demo AI workflow](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/DemoGeminiAnalysis.cs): `src/CheaterOrNot.Core/DemoGeminiAnalysis.cs`
- [Gemini client](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/GeminiReviewClient.cs): `src/CheaterOrNot.Core/GeminiReviewClient.cs`
- [Review result parsing](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/GeminiReviewResult.cs): `src/CheaterOrNot.Core/GeminiReviewResult.cs`
- [Statistics AI review](https://github.com/shaggy2035/cheaterornot/blob/main/src/CheaterOrNot.Core/GeminiWebsiteReview.cs): `src/CheaterOrNot.Core/GeminiWebsiteReview.cs`

### Other components

- **Reviewer**
- **Public statistics sources**
- **Optional APIs**
- **Google Gemini**

## Connections

- Reviewer → Main window: uses (evidence: `README.md`)
- Main window → Public data retrieval: checks profiles (evidence: `src/CheaterOrNot/MainWindow.axaml.cs`)
- Public data retrieval → Public statistics sources: requests samples (evidence: `README.md`)
- Public data retrieval → Optional APIs: queries optionally (evidence: `README.md`)
- Public data retrieval → Website data parsing: parses responses (evidence: `src/CheaterOrNot.Core/TrackerClient.cs`)
- Public data retrieval → Page parsing: parses pages (evidence: `src/CheaterOrNot.Core/TrackerClient.cs`)
- Website data parsing → Screening rules: applies checks (evidence: `src/CheaterOrNot.Core/WebsiteDataParser.cs`)
- Website data parsing → Page parsing: uses (evidence: `src/CheaterOrNot.Core/WebsiteDataParser.cs`)
- Main window → Screening rules: shows thresholds (evidence: `src/CheaterOrNot/MainWindow.axaml.cs`)
- Main window → Local settings: loads settings (evidence: `src/CheaterOrNot/MainWindow.axaml.cs`)
- Main window → Demo import: imports demo (evidence: `README.md`)
- Reviewer → Video tools window: opens tools (evidence: `README.md`)
- Video tools window → Clip capture: captures clips (evidence: `src/CheaterOrNot/VideoReviewWindow.cs`)
- Clip capture → Capture tools: uses tools (evidence: `src/CheaterOrNot.Core/DemoVideoCapture.cs`)
- Main window → Demo AI workflow: starts review (evidence: `src/CheaterOrNot/MainWindow.axaml.cs`)
- Demo AI workflow → Clip capture: captures clips (evidence: `src/CheaterOrNot.Core/DemoGeminiAnalysis.cs`)
- Demo AI workflow → Video preparation: prepares batches (evidence: `src/CheaterOrNot.Core/DemoGeminiAnalysis.cs`)
- Video preparation → Clip capture: reuses clips (evidence: `src/CheaterOrNot.Core/DemoVideoReview.cs`)
- Video preparation → Video context audit: checks context (evidence: `src/CheaterOrNot.Core/DemoVideoReview.cs`)
- Demo AI workflow → Gemini client: sends batches (evidence: `src/CheaterOrNot.Core/DemoGeminiAnalysis.cs`)
- Gemini client → Google Gemini: sends requests (evidence: `README.md`)
- Gemini client → Review result parsing: parses response (evidence: `src/CheaterOrNot.Core/GeminiReviewClient.cs`)
- Main window → Statistics AI review: requests AI review (evidence: `src/CheaterOrNot/MainWindow.axaml.cs`)
- Statistics AI review → Gemini client: builds review request (evidence: `src/CheaterOrNot.Core/GeminiReviewClient.cs`)
- Main window → Player statistics: shows measurements (evidence: `src/CheaterOrNot/MainWindow.axaml.cs`)
