# iiit-sricity-fsd-2024-2028/29_playcarys architecture

> Architecture diagram of the GitHub repository iiit-sricity-fsd-2024-2028/29_playcarys, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iiit-sricity-fsd-2024-2028/29_playcarys
- Repository: https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys

## Overview

PlayCarys is an online multiplayer game-management platform. Players select approved games, join room-based or quick-play sessions, and participate in tournaments; publishers manage game listings and moderators handle reports and actions. The tree also documents profiles, notifications, social features, achievements, economy, saves, and governance. The available excerpts confirm selected controller-to-service and service-to-store relationships; other documented subsystems are shown without speculative call edges. The repository includes separate backend trees, so paths below use the principal root/back-end source tree where those capabilities appear.

Main entry points: [`playcarys_root/backend/src/game/game.service.ts`](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game/game.service.ts) (Game Listings), [`root/back-end/src/data/store.ts`](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/data/store.ts) (Shared Data Store), [`playcarys_root/backend/src/game-session/game-session.service.ts`](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game-session/game-session.service.ts) (Live Sessions), [`root/back-end/src/auth/auth.service.ts`](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/auth/auth.service.ts) (Authentication)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_identity["Identity &amp; Access"]
  node_auth["Authentication<br/>[auth.service.ts]"]
  node_users["User Management<br/>[users.service.ts]"]
  node_roles["Role Policy<br/>[roles.guard.ts]"]
end

subgraph group_catalog["Game Catalog"]
  node_game_list["Game Listings<br/>[game.service.ts]"]
  node_game_delivery["Game Bundles<br/>[bundle.service.ts]"]
  node_publisher_profile["Publisher Profiles"]
end

subgraph group_play["Gameplay &amp; Competition"]
  node_sessions["Live Sessions"]
  node_realtime["Realtime Gateway<br/>[game.gateway.ts]"]
  node_match_results["Match Results"]
  node_tournaments["Tournament Management"]
  node_tournament_play["Tournament Play"]
end

subgraph group_governance["Safety &amp; Governance"]
  node_reports["Player Reports<br/>[report.service.ts]"]
  node_moderation["Moderator Actions"]
end

subgraph group_community["Community &amp; Progress"]
  node_notifications["Notifications"]
  node_profiles["Player Profiles"]
  node_social["Social Features<br/>[social.service.ts]"]
  node_achievements["Achievements"]
  node_economy["Carys Economy<br/>[economy.service.ts]"]
  node_saves["Game Saves"]
  node_store[("Shared Data Store<br/>[store.ts]")]
  node_db_sync["Frontend State Sync<br/>[app.controller.ts]"]
end

node_player(("Player"))
node_publisher(("Publisher"))
node_moderator(("Moderator"))
node_admin(("Admin"))

node_player -->|"signs in"| node_auth
node_publisher -.->|"signs in"| node_auth
node_auth -.->|"registers users"| node_users
node_player -->|"selects games"| node_game_list
node_publisher -->|"manages listings"| node_game_list
node_admin -->|"approves listings"| node_game_list
node_publisher -.->|"manages profile"| node_publisher_profile
node_game_list -.->|"delivers bundles"| node_game_delivery
node_player -->|"joins sessions"| node_sessions
node_sessions -.->|"broadcasts updates"| node_realtime
node_player -.->|"registers"| node_tournaments
node_publisher -.->|"organizes"| node_tournaments
node_player -->|"plays matches"| node_tournament_play
node_moderator -.->|"handles reports"| node_reports
node_moderator -->|"enforces rules"| node_moderation
node_admin -.->|"manages policy"| node_roles
node_player -.->|"manages profile"| node_profiles
node_player -.->|"connects socially"| node_social
node_player -.->|"tracks progress"| node_achievements
node_player -.->|"earns currency"| node_economy
node_player -.->|"stores progress"| node_saves
node_player -->|"reads updates"| node_notifications
node_game_list -->|"reads and writes"| node_store
node_sessions -->|"reads and writes"| node_store
node_moderation -->|"reads and writes"| node_store
node_db_sync -->|"imports and exports"| node_store

click node_auth "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/auth/auth.service.ts"
click node_users "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/users/users.service.ts"
click node_roles "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/roles/roles.guard.ts"
click node_game_list "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game/game.service.ts"
click node_game_delivery "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/game/bundle.service.ts"
click node_publisher_profile "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/publisher-profile/publisher-profile.service.ts"
click node_sessions "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game-session/game-session.service.ts"
click node_realtime "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game-session/game.gateway.ts"
click node_match_results "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/match-result/match-result.service.ts"
click node_tournaments "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/tournament/tournament.service.ts"
click node_tournament_play "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/tournament-play/tournament-play.service.ts"
click node_reports "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/report/report.service.ts"
click node_moderation "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/moderator-action/moderator-action.service.ts"
click node_notifications "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/notification/notification.service.ts"
click node_profiles "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/player-profile/player-profile.service.ts"
click node_social "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/social/social.service.ts"
click node_achievements "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/achievement/achievement.service.ts"
click node_economy "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/economy/economy.service.ts"
click node_saves "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/game-save/game-save.service.ts"
click node_store "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/data/store.ts"
click node_db_sync "https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/app.controller.ts"

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_users,node_roles toneBlue
class node_game_list,node_game_delivery,node_publisher_profile toneAmber
class node_sessions,node_realtime,node_match_results,node_tournaments,node_tournament_play toneMint
class node_reports,node_moderation toneRose
class node_notifications,node_profiles,node_social,node_achievements,node_economy,node_saves,node_store,node_db_sync,node_player,node_publisher,node_moderator,node_admin toneIndigo
```

## Components

### Identity & Access

- [Authentication](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/auth/auth.service.ts): `root/back-end/src/auth/auth.service.ts`
- [User Management](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/users/users.service.ts): `root/back-end/src/users/users.service.ts`
- [Role Policy](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/roles/roles.guard.ts): `root/back-end/src/roles/roles.guard.ts`

### Game Catalog

- [Game Listings](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game/game.service.ts): `playcarys_root/backend/src/game/game.service.ts`
- [Game Bundles](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/game/bundle.service.ts): `root/back-end/src/game/bundle.service.ts`
- [Publisher Profiles](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/publisher-profile/publisher-profile.service.ts): `root/back-end/src/publisher-profile/publisher-profile.service.ts`

### Gameplay & Competition

- [Live Sessions](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game-session/game-session.service.ts): `playcarys_root/backend/src/game-session/game-session.service.ts`
- [Realtime Gateway](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/game-session/game.gateway.ts): `playcarys_root/backend/src/game-session/game.gateway.ts`
- [Match Results](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/match-result/match-result.service.ts): `root/back-end/src/match-result/match-result.service.ts`
- [Tournament Management](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/tournament/tournament.service.ts): `root/back-end/src/tournament/tournament.service.ts`
- [Tournament Play](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/tournament-play/tournament-play.service.ts): `root/back-end/src/tournament-play/tournament-play.service.ts`

### Safety & Governance

- [Player Reports](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/report/report.service.ts): `root/back-end/src/report/report.service.ts`
- [Moderator Actions](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/moderator-action/moderator-action.service.ts): `playcarys_root/backend/src/moderator-action/moderator-action.service.ts`

### Community & Progress

- [Notifications](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/playcarys_root/backend/src/notification/notification.service.ts): `playcarys_root/backend/src/notification/notification.service.ts`
- [Player Profiles](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/player-profile/player-profile.service.ts): `root/back-end/src/player-profile/player-profile.service.ts`
- [Social Features](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/social/social.service.ts): `root/back-end/src/social/social.service.ts`
- [Achievements](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/achievement/achievement.service.ts): `root/back-end/src/achievement/achievement.service.ts`
- [Carys Economy](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/economy/economy.service.ts): `root/back-end/src/economy/economy.service.ts`
- [Game Saves](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/game-save/game-save.service.ts): `root/back-end/src/game-save/game-save.service.ts`
- [Shared Data Store](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/data/store.ts): `root/back-end/src/data/store.ts`
- [Frontend State Sync](https://github.com/iiit-sricity-fsd-2024-2028/29_playcarys/blob/main/root/back-end/src/app.controller.ts): `root/back-end/src/app.controller.ts`

### Other components

- **Player**
- **Publisher**
- **Moderator**
- **Admin**

## Connections

- Player → Authentication: signs in
- Publisher → Authentication: signs in
- Authentication → User Management: registers users
- Player → Game Listings: selects games
- Publisher → Game Listings: manages listings
- Admin → Game Listings: approves listings
- Publisher → Publisher Profiles: manages profile
- Game Listings → Game Bundles: delivers bundles
- Player → Live Sessions: joins sessions (evidence: `playcarys_root/backend/src/game-session/game-session.service.ts`)
- Live Sessions → Realtime Gateway: broadcasts updates
- Player → Tournament Management: registers
- Publisher → Tournament Management: organizes
- Player → Tournament Play: plays matches
- Moderator → Player Reports: handles reports
- Moderator → Moderator Actions: enforces rules
- Admin → Role Policy: manages policy
- Player → Player Profiles: manages profile
- Player → Social Features: connects socially
- Player → Achievements: tracks progress
- Player → Carys Economy: earns currency
- Player → Game Saves: stores progress
- Player → Notifications: reads updates
- Game Listings → Shared Data Store: reads and writes (evidence: `playcarys_root/backend/src/game/game.service.ts`)
- Live Sessions → Shared Data Store: reads and writes (evidence: `playcarys_root/backend/src/game-session/game-session.service.ts`)
- Moderator Actions → Shared Data Store: reads and writes (evidence: `playcarys_root/backend/src/moderator-action/moderator-action.service.ts`)
- Frontend State Sync → Shared Data Store: imports and exports (evidence: `root/back-end/src/app.controller.ts`)
