# srikanth-jeldi/chessverse-ai architecture

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

- Interactive diagram: https://gitdiagram.com/srikanth-jeldi/chessverse-ai
- Repository: https://github.com/srikanth-jeldi/chessverse-ai

## Overview

ChessVerse AI is a cross-platform chess learning and gameplay platform; this map focuses on its Spring Boot backend because the supplied tree does not include the Flutter app’s product source. The principal workflow is a player using chess and engine APIs, then submitting games for persisted analysis and improvement insights. The README also documents multiplayer, practice, learning, ratings, tournaments, and commerce-related capabilities. Some subsystems are represented from the tree or README without sampled implementation; their unverified connections are omitted or marked dashed.

Main entry points: [`backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java`](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java) (Game Analysis Jobs), [`backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisWorker.java`](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisWorker.java) (Analysis Worker), [`backend/src/main/java/com/epitomehub/chessverse/auth/AuthService.java`](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/auth/AuthService.java) (Accounts And Sessions), [`backend/src/main/java/com/epitomehub/chessverse/engine/EngineController.java`](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/engine/EngineController.java) (Engine API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Player Identity"]
  node_auth["Accounts And Sessions<br/>[AuthService.java]"]
  node_player_identity["Authenticated Player"]
end

subgraph group_play["Chess Play"]
  node_game_api["Game API<br/>[GameService.java]"]
  node_engine_api["Engine API"]
  node_stockfish["Stockfish Engine"]
end

subgraph group_improve["Analysis And Learning"]
  node_analysis_api["Game Analysis Jobs"]
  node_analysis_worker["Analysis Worker"]
  node_analysis_records[("Analysis Records")]
  node_position_analyzer["Position Analysis"]
  node_weakness_events[("Weakness History")]
  node_ai_coach["AI Coach"]
  node_missions["Missions And Puzzles"]
  node_cloud_progress["Cloud Progress"]
end

subgraph group_community["Online Community"]
  node_online_matches["Online Matches"]
  node_tournaments["Tournaments"]
  node_social["Clubs And Messaging"]
  node_notifications["Player Notifications"]
end

subgraph group_platform["Player Platform"]
  node_economy["Wallet And Rewards"]
  node_purchases["Purchases And Subscriptions"]
  node_academy["Academy Services"]
  node_speech["Speech Synthesis"]
end

node_player(("Player"))

node_player -.->|"signs in"| node_auth
node_auth -->|"authenticates"| node_player_identity
node_player -.->|"plays games"| node_game_api
node_player -.->|"requests analysis"| node_engine_api
node_engine_api -->|"delegates"| node_stockfish
node_player -.->|"plays online"| node_online_matches
node_online_matches -->|"uses tournament service"| node_tournaments
node_player -.->|"submits game"| node_analysis_api
node_analysis_api -->|"persists jobs"| node_analysis_records
node_analysis_api -->|"dispatches jobs"| node_analysis_worker
node_analysis_worker -.->|"stores results"| node_analysis_records
node_analysis_worker -.->|"analyzes positions"| node_position_analyzer
node_analysis_api -->|"reads history"| node_weakness_events
node_player -.->|"requests coaching"| node_ai_coach
node_player -.->|"practices"| node_missions
node_missions -->|"grants rewards"| node_economy
node_player -.->|"syncs progress"| node_cloud_progress
node_cloud_progress -->|"grants milestones"| node_economy
node_player -.->|"buys content"| node_purchases
node_player -.->|"uses academy"| node_academy
node_player -.->|"requests spoken output"| node_speech

click node_auth "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/auth/AuthService.java"
click node_player_identity "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/auth/AuthenticatedPlayer.java"
click node_game_api "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/game/GameService.java"
click node_engine_api "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/engine/EngineController.java"
click node_stockfish "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/engine/StockfishService.java"
click node_online_matches "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/OnlineMatchService.java"
click node_tournaments "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/TournamentService.java"
click node_social "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/CommunityService.java"
click node_notifications "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/PlayerNotificationService.java"
click node_analysis_api "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java"
click node_analysis_worker "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisWorker.java"
click node_analysis_records "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisJob.java"
click node_position_analyzer "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/PositionAnalysis.java"
click node_weakness_events "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/PlayerWeaknessEvent.java"
click node_ai_coach "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/engine/AiCoachService.java"
click node_missions "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/progression/MissionService.java"
click node_cloud_progress "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/progress/CloudProgressService.java"
click node_economy "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/economy/EconomyService.java"
click node_purchases "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/economy/PurchaseService.java"
click node_academy "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/academy/AcademyGuidanceService.java"
click node_speech "https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/speech/SpeechSynthesisService.java"

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_auth,node_player_identity toneBlue
class node_game_api,node_engine_api,node_stockfish toneAmber
class node_analysis_api,node_analysis_worker,node_analysis_records,node_position_analyzer,node_weakness_events,node_ai_coach,node_missions,node_cloud_progress toneMint
class node_online_matches,node_tournaments,node_social,node_notifications toneRose
class node_economy,node_purchases,node_academy,node_speech,node_player toneIndigo
```

## Components

### Player Identity

- [Accounts And Sessions](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/auth/AuthService.java): `backend/src/main/java/com/epitomehub/chessverse/auth/AuthService.java`
- [Authenticated Player](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/auth/AuthenticatedPlayer.java): `backend/src/main/java/com/epitomehub/chessverse/auth/AuthenticatedPlayer.java`

### Chess Play

- [Game API](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/game/GameService.java): `backend/src/main/java/com/epitomehub/chessverse/game/GameService.java`
- [Engine API](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/engine/EngineController.java): `backend/src/main/java/com/epitomehub/chessverse/engine/EngineController.java`
- [Stockfish Engine](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/engine/StockfishService.java): `backend/src/main/java/com/epitomehub/chessverse/engine/StockfishService.java`

### Analysis And Learning

- [Game Analysis Jobs](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java): `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java`
- [Analysis Worker](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisWorker.java): `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisWorker.java`
- [Analysis Records](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisJob.java): `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisJob.java`
- [Position Analysis](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/PositionAnalysis.java): `backend/src/main/java/com/epitomehub/chessverse/analysis/PositionAnalysis.java`
- [Weakness History](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/analysis/PlayerWeaknessEvent.java): `backend/src/main/java/com/epitomehub/chessverse/analysis/PlayerWeaknessEvent.java`
- [AI Coach](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/engine/AiCoachService.java): `backend/src/main/java/com/epitomehub/chessverse/engine/AiCoachService.java`
- [Missions And Puzzles](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/progression/MissionService.java): `backend/src/main/java/com/epitomehub/chessverse/progression/MissionService.java`
- [Cloud Progress](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/progress/CloudProgressService.java): `backend/src/main/java/com/epitomehub/chessverse/progress/CloudProgressService.java`

### Online Community

- [Online Matches](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/OnlineMatchService.java): `backend/src/main/java/com/epitomehub/chessverse/online/OnlineMatchService.java`
- [Tournaments](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/TournamentService.java): `backend/src/main/java/com/epitomehub/chessverse/online/TournamentService.java`
- [Clubs And Messaging](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/CommunityService.java): `backend/src/main/java/com/epitomehub/chessverse/online/CommunityService.java`
- [Player Notifications](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/online/PlayerNotificationService.java): `backend/src/main/java/com/epitomehub/chessverse/online/PlayerNotificationService.java`

### Player Platform

- [Wallet And Rewards](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/economy/EconomyService.java): `backend/src/main/java/com/epitomehub/chessverse/economy/EconomyService.java`
- [Purchases And Subscriptions](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/economy/PurchaseService.java): `backend/src/main/java/com/epitomehub/chessverse/economy/PurchaseService.java`
- [Academy Services](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/academy/AcademyGuidanceService.java): `backend/src/main/java/com/epitomehub/chessverse/academy/AcademyGuidanceService.java`
- [Speech Synthesis](https://github.com/srikanth-jeldi/chessverse-ai/blob/main/backend/src/main/java/com/epitomehub/chessverse/speech/SpeechSynthesisService.java): `backend/src/main/java/com/epitomehub/chessverse/speech/SpeechSynthesisService.java`

### Other components

- **Player**

## Connections

- Player → Accounts And Sessions: signs in
- Accounts And Sessions → Authenticated Player: authenticates
- Player → Game API: plays games
- Player → Engine API: requests analysis
- Engine API → Stockfish Engine: delegates (evidence: `backend/src/main/java/com/epitomehub/chessverse/engine/EngineController.java`)
- Player → Online Matches: plays online
- Online Matches → Tournaments: uses tournament service (evidence: `backend/src/main/java/com/epitomehub/chessverse/online/OnlineMatchService.java`)
- Player → Game Analysis Jobs: submits game
- Game Analysis Jobs → Analysis Records: persists jobs (evidence: `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java`)
- Game Analysis Jobs → Analysis Worker: dispatches jobs (evidence: `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java`)
- Analysis Worker → Analysis Records: stores results (evidence: `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisWorker.java`)
- Analysis Worker → Position Analysis: analyzes positions (evidence: `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisWorker.java`)
- Game Analysis Jobs → Weakness History: reads history (evidence: `backend/src/main/java/com/epitomehub/chessverse/analysis/GameAnalysisService.java`)
- Player → AI Coach: requests coaching
- Player → Missions And Puzzles: practices
- Missions And Puzzles → Wallet And Rewards: grants rewards (evidence: `backend/src/main/java/com/epitomehub/chessverse/progression/MissionService.java`)
- Player → Cloud Progress: syncs progress
- Cloud Progress → Wallet And Rewards: grants milestones (evidence: `backend/src/main/java/com/epitomehub/chessverse/progress/CloudProgressService.java`)
- Player → Purchases And Subscriptions: buys content
- Player → Academy Services: uses academy
- Player → Speech Synthesis: requests spoken output
