# jakaambrus/playlink architecture

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

- Interactive diagram: https://gitdiagram.com/jakaambrus/playlink
- Repository: https://github.com/jakaambrus/playlink

## Overview

PlayLink is a social platform for profiles, posts, friendship, messaging, discovery, and games. Users enter through the Angular client, authenticate, and use feature areas that call the ASP.NET API; the server’s application layer handles domain operations and persists state. The README also documents live chat and gaming. Several client-to-API and realtime connections are shown as unverified because the supplied excerpts do not expose their wiring; source sampling was limited.

Main entry points: [`server/Infrastructure/Data/DataContext.cs`](https://github.com/jakaambrus/playlink/blob/main/server/Infrastructure/Data/DataContext.cs) (Application database), [`client/src/app/app.component.ts`](https://github.com/jakaambrus/playlink/blob/main/client/src/app/app.component.ts) (Angular application), [`server/Application/Features/Posts`](https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Posts) (Post operations), [`client/src/app/app-routing.module.ts`](https://github.com/jakaambrus/playlink/blob/main/client/src/app/app-routing.module.ts) (Route access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Angular client"]
  node_clientapp["Angular application<br/>[app.component.ts]"]
  node_routing["Route access"]
  node_portal["Login and registration"]
end

subgraph group_social["Social features"]
  node_home["Home feed<br/>[home.component.ts]"]
  node_discover["People discovery"]
  node_profile["Profiles and gallery"]
  node_posts["Posts and reactions<br/>[posts.service.ts]"]
  node_friends["Friends<br/>[friends.service.ts]"]
  node_messages["Messaging"]
  node_games["Games<br/>[games.component.ts]"]
  node_adminui["Administration<br/>[admin.component.ts]"]
end

subgraph group_server["Server application"]
  node_api["HTTP API<br/>[Program.cs]"]
  node_postroutes["Post endpoints<br/>[PostsController.cs]"]
  node_postlogic["Post operations"]
  node_userlogic["User operations"]
  node_messagelogic["Message operations"]
  node_friendlogic["Friend operations"]
  node_adminlogic["Admin operations"]
end

subgraph group_operations["Server operations"]
  node_domain["Domain entities<br/>[AppUser.cs]"]
  node_database[("Application database<br/>[DataContext.cs]")]
end

node_user(("PlayLink user"))
node_photos["Cloudinary photos"]
node_realtime["Realtime chat service"]

node_user -->|"uses"| node_clientapp
node_clientapp -->|"loads routes"| node_routing
node_routing -.->|"routes to"| node_portal
node_user -.->|"authenticates"| node_portal
node_user -.->|"views feed"| node_home
node_user -.->|"discovers people"| node_discover
node_user -.->|"views profile"| node_profile
node_home -.->|"loads posts"| node_posts
node_profile -.->|"shows posts"| node_posts
node_user -.->|"connects"| node_friends
node_user -.->|"chats"| node_messages
node_user -.->|"plays games"| node_games
node_user -.->|"administers"| node_adminui
node_clientapp -.->|"calls API"| node_api
node_api -.->|"hosts endpoints"| node_postroutes
node_postroutes -->|"dispatches commands"| node_postlogic
node_postlogic -.->|"manages photos"| node_photos
node_postlogic -.->|"persists posts"| node_database
node_userlogic -.->|"reads users"| node_database
node_messagelogic -.->|"reads messages"| node_database
node_friendlogic -.->|"reads friendships"| node_database
node_adminlogic -.->|"manages users"| node_database
node_database -.->|"stores entities"| node_domain
node_messages -.->|"supports live chat"| node_realtime

click node_clientapp "https://github.com/jakaambrus/playlink/blob/main/client/src/app/app.component.ts"
click node_routing "https://github.com/jakaambrus/playlink/blob/main/client/src/app/app-routing.module.ts"
click node_portal "https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/portal/portal.component.ts"
click node_home "https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/home/home.component.ts"
click node_discover "https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/discover/discover.component.ts"
click node_profile "https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/profile/profile.component.ts"
click node_posts "https://github.com/jakaambrus/playlink/blob/main/client/src/app/shared/services/posts.service.ts"
click node_friends "https://github.com/jakaambrus/playlink/blob/main/client/src/app/shared/services/friends.service.ts"
click node_messages "https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/messages/messages.component.ts"
click node_games "https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/games/games.component.ts"
click node_adminui "https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/admin/admin.component.ts"
click node_api "https://github.com/jakaambrus/playlink/blob/main/server/WebAPI/Program.cs"
click node_postroutes "https://github.com/jakaambrus/playlink/blob/main/server/WebAPI/Controllers/PostsController.cs"
click node_postlogic "https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Posts"
click node_userlogic "https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Users"
click node_messagelogic "https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Messages"
click node_friendlogic "https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Friends"
click node_adminlogic "https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Admin"
click node_domain "https://github.com/jakaambrus/playlink/blob/main/server/Domain/Entities/AppUser.cs"
click node_database "https://github.com/jakaambrus/playlink/blob/main/server/Infrastructure/Data/DataContext.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_clientapp,node_routing,node_portal,node_user toneBlue
class node_home,node_discover,node_profile,node_posts,node_friends,node_messages,node_games,node_adminui toneAmber
class node_api,node_postroutes,node_postlogic,node_userlogic,node_messagelogic,node_friendlogic,node_adminlogic toneMint
class node_domain,node_database toneRose
class node_photos,node_realtime toneIndigo
```

## Components

### Angular client

- [Angular application](https://github.com/jakaambrus/playlink/blob/main/client/src/app/app.component.ts): `client/src/app/app.component.ts`
- [Route access](https://github.com/jakaambrus/playlink/blob/main/client/src/app/app-routing.module.ts): `client/src/app/app-routing.module.ts`
- [Login and registration](https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/portal/portal.component.ts): `client/src/app/features/portal/portal.component.ts`

### Social features

- [Home feed](https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/home/home.component.ts): `client/src/app/features/home/home.component.ts`
- [People discovery](https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/discover/discover.component.ts): `client/src/app/features/discover/discover.component.ts`
- [Profiles and gallery](https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/profile/profile.component.ts): `client/src/app/features/profile/profile.component.ts`
- [Posts and reactions](https://github.com/jakaambrus/playlink/blob/main/client/src/app/shared/services/posts.service.ts): `client/src/app/shared/services/posts.service.ts`
- [Friends](https://github.com/jakaambrus/playlink/blob/main/client/src/app/shared/services/friends.service.ts): `client/src/app/shared/services/friends.service.ts`
- [Messaging](https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/messages/messages.component.ts): `client/src/app/features/messages/messages.component.ts`
- [Games](https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/games/games.component.ts): `client/src/app/features/games/games.component.ts`
- [Administration](https://github.com/jakaambrus/playlink/blob/main/client/src/app/features/admin/admin.component.ts): `client/src/app/features/admin/admin.component.ts`

### Server application

- [HTTP API](https://github.com/jakaambrus/playlink/blob/main/server/WebAPI/Program.cs): `server/WebAPI/Program.cs`
- [Post endpoints](https://github.com/jakaambrus/playlink/blob/main/server/WebAPI/Controllers/PostsController.cs): `server/WebAPI/Controllers/PostsController.cs`
- [Post operations](https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Posts): `server/Application/Features/Posts`
- [User operations](https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Users): `server/Application/Features/Users`
- [Message operations](https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Messages): `server/Application/Features/Messages`
- [Friend operations](https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Friends): `server/Application/Features/Friends`
- [Admin operations](https://github.com/jakaambrus/playlink/tree/main/server/Application/Features/Admin): `server/Application/Features/Admin`

### Server operations

- [Domain entities](https://github.com/jakaambrus/playlink/blob/main/server/Domain/Entities/AppUser.cs): `server/Domain/Entities/AppUser.cs`
- [Application database](https://github.com/jakaambrus/playlink/blob/main/server/Infrastructure/Data/DataContext.cs): `server/Infrastructure/Data/DataContext.cs`

### Other components

- **PlayLink user**
- **Cloudinary photos**
- **Realtime chat service**

## Connections

- PlayLink user → Angular application: uses (evidence: `README.md`)
- Angular application → Route access: loads routes (evidence: `client/src/main.ts`)
- Route access → Login and registration: routes to
- PlayLink user → Login and registration: authenticates
- PlayLink user → Home feed: views feed (evidence: `README.md`)
- PlayLink user → People discovery: discovers people (evidence: `README.md`)
- PlayLink user → Profiles and gallery: views profile (evidence: `README.md`)
- Home feed → Posts and reactions: loads posts
- Profiles and gallery → Posts and reactions: shows posts
- PlayLink user → Friends: connects (evidence: `README.md`)
- PlayLink user → Messaging: chats (evidence: `README.md`)
- PlayLink user → Games: plays games (evidence: `README.md`)
- PlayLink user → Administration: administers
- Angular application → HTTP API: calls API
- HTTP API → Post endpoints: hosts endpoints
- Post endpoints → Post operations: dispatches commands (evidence: `server/WebAPI/Controllers/PostsController.cs`)
- Post operations → Cloudinary photos: manages photos
- Post operations → Application database: persists posts
- User operations → Application database: reads users
- Message operations → Application database: reads messages
- Friend operations → Application database: reads friendships
- Admin operations → Application database: manages users
- Application database → Domain entities: stores entities
- Messaging → Realtime chat service: supports live chat
