# mr-b34n/indieg architecture

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

- Interactive diagram: https://gitdiagram.com/mr-b34n/indieg
- Repository: https://github.com/mr-b34n/indieg

## Overview

Ludon is a gaming social network combining a social feed, community forums, game discovery, and player tools. The usual journey starts with sign-in, then moves through feed or discovery into posts, communities, or game hubs; users can also find squads, personalize profiles, search, and manage notifications and saved content. The UI is organized by feature, backed by shared API/query and state layers. Several feature internals were not sampled, so their documented capabilities are shown without assuming unobserved call chains.

Main entry points: [`src/features/auth/store/useAuthStore.ts`](https://github.com/mr-b34n/indieg/blob/main/src/features/auth/store/useAuthStore.ts) (Authentication), [`src/shared/services/upload-service.ts`](https://github.com/mr-b34n/indieg/blob/main/src/shared/services/upload-service.ts) (Image upload pipeline), [`src/shared/api/client.ts`](https://github.com/mr-b34n/indieg/blob/main/src/shared/api/client.ts) (HTTP client), [`src/App.tsx`](https://github.com/mr-b34n/indieg/blob/main/src/App.tsx) (Application shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_app["Application shell<br/>[App.tsx]"]
  node_routes["Route tree<br/>[routeTree.gen.ts]"]
  node_auth["Authentication<br/>[useAuthStore.ts]"]
end

subgraph group_social["Social spaces"]
  node_feed["Feed and posts<br/>[FeedList.tsx]"]
  node_post["Post interactions<br/>[Post.tsx]"]
  node_community["Community hub"]
  node_report["Safety reports<br/>[ReportModal.tsx]"]
  node_bookmark["Saved content<br/>[BookmarkList.tsx]"]
end

subgraph group_gaming["Gaming and identity"]
  node_explore["Explore<br/>[ExplorePage.tsx]"]
  node_games["Game hub<br/>[GameDetail.tsx]"]
  node_squad["Squad matching<br/>[SquadList.tsx]"]
  node_profile["Player profiles<br/>[UserProfile.tsx]"]
  node_search["Global search"]
end

subgraph group_platform["Shared platform"]
  node_notifications["Notifications"]
  node_settings["Account settings<br/>[SettingsPage.tsx]"]
  node_queries["Query orchestration<br/>[useQueries.ts]"]
  node_api["API operations<br/>[index.ts]"]
  node_client["HTTP client<br/>[client.ts]"]
  node_upload["Image upload pipeline<br/>[upload-service.ts]"]
  node_image["Image processing<br/>[image-processor.ts]"]
  node_theme["Theme and language<br/>[useThemeStore.ts]"]
end

node_player(("Player"))
node_backend[("Ludon backend")]
node_objectstore[("Cloudflare R2")]

node_player -->|"uses"| node_app
node_app -->|"initializes"| node_auth
node_app -->|"provides"| node_routes
node_routes -->|"routes to"| node_search
node_player -->|"signs in"| node_auth
node_player -->|"reads and posts"| node_feed
node_player -->|"interacts"| node_post
node_player -->|"joins and discusses"| node_community
node_player -->|"discovers"| node_explore
node_player -->|"explores games"| node_games
node_player -->|"finds teammates"| node_squad
node_player -->|"customizes"| node_profile
node_player -->|"searches"| node_search
node_player -->|"checks"| node_notifications
node_player -->|"saves content"| node_bookmark
node_player -->|"reports content"| node_report
node_player -->|"configures account"| node_settings
node_auth -->|"uses"| node_api
node_auth -->|"refreshes tokens"| node_client
node_auth -->|"checks language"| node_theme
node_queries -->|"invokes operations"| node_api
node_api -->|"sends requests"| node_client
node_client -->|"calls API"| node_backend
node_upload -->|"processes images"| node_image
node_upload -->|"requests upload URL"| node_client
node_upload -->|"uploads directly"| node_objectstore
node_upload -->|"confirms upload"| node_backend

click node_app "https://github.com/mr-b34n/indieg/blob/main/src/App.tsx"
click node_routes "https://github.com/mr-b34n/indieg/blob/main/src/routeTree.gen.ts"
click node_auth "https://github.com/mr-b34n/indieg/blob/main/src/features/auth/store/useAuthStore.ts"
click node_feed "https://github.com/mr-b34n/indieg/blob/main/src/features/feed/components/FeedList.tsx"
click node_post "https://github.com/mr-b34n/indieg/blob/main/src/features/post/components/Post.tsx"
click node_community "https://github.com/mr-b34n/indieg/blob/main/src/features/community/components/hub/CommunityDetailPage.tsx"
click node_report "https://github.com/mr-b34n/indieg/blob/main/src/features/report/components/ReportModal.tsx"
click node_bookmark "https://github.com/mr-b34n/indieg/blob/main/src/features/bookmark/components/BookmarkList.tsx"
click node_explore "https://github.com/mr-b34n/indieg/blob/main/src/features/explore/components/ExplorePage.tsx"
click node_games "https://github.com/mr-b34n/indieg/blob/main/src/features/game/components/GameDetail.tsx"
click node_squad "https://github.com/mr-b34n/indieg/blob/main/src/features/squad/components/SquadList.tsx"
click node_profile "https://github.com/mr-b34n/indieg/blob/main/src/features/profile/components/UserProfile.tsx"
click node_search "https://github.com/mr-b34n/indieg/blob/main/src/features/search/components/SearchResultsPage.tsx"
click node_notifications "https://github.com/mr-b34n/indieg/blob/main/src/features/notification/components/NotificationDropdown.tsx"
click node_settings "https://github.com/mr-b34n/indieg/blob/main/src/features/settings/components/SettingsPage.tsx"
click node_queries "https://github.com/mr-b34n/indieg/blob/main/src/shared/api/useQueries.ts"
click node_api "https://github.com/mr-b34n/indieg/blob/main/src/shared/api/index.ts"
click node_client "https://github.com/mr-b34n/indieg/blob/main/src/shared/api/client.ts"
click node_upload "https://github.com/mr-b34n/indieg/blob/main/src/shared/services/upload-service.ts"
click node_image "https://github.com/mr-b34n/indieg/blob/main/src/shared/utils/image-processor.ts"
click node_theme "https://github.com/mr-b34n/indieg/blob/main/src/shared/store/useThemeStore.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_app,node_routes,node_auth toneBlue
class node_feed,node_post,node_community,node_report,node_bookmark,node_backend,node_objectstore toneAmber
class node_explore,node_games,node_squad,node_profile,node_search toneMint
class node_notifications,node_settings,node_queries,node_api,node_client,node_upload,node_image,node_theme toneRose
class node_player toneIndigo
```

## Components

### App entry

- [Application shell](https://github.com/mr-b34n/indieg/blob/main/src/App.tsx): `src/App.tsx`
- [Route tree](https://github.com/mr-b34n/indieg/blob/main/src/routeTree.gen.ts): `src/routeTree.gen.ts`
- [Authentication](https://github.com/mr-b34n/indieg/blob/main/src/features/auth/store/useAuthStore.ts): `src/features/auth/store/useAuthStore.ts`

### Social spaces

- [Feed and posts](https://github.com/mr-b34n/indieg/blob/main/src/features/feed/components/FeedList.tsx): `src/features/feed/components/FeedList.tsx`
- [Post interactions](https://github.com/mr-b34n/indieg/blob/main/src/features/post/components/Post.tsx): `src/features/post/components/Post.tsx`
- [Community hub](https://github.com/mr-b34n/indieg/blob/main/src/features/community/components/hub/CommunityDetailPage.tsx): `src/features/community/components/hub/CommunityDetailPage.tsx`
- [Safety reports](https://github.com/mr-b34n/indieg/blob/main/src/features/report/components/ReportModal.tsx): `src/features/report/components/ReportModal.tsx`
- [Saved content](https://github.com/mr-b34n/indieg/blob/main/src/features/bookmark/components/BookmarkList.tsx): `src/features/bookmark/components/BookmarkList.tsx`

### Gaming and identity

- [Explore](https://github.com/mr-b34n/indieg/blob/main/src/features/explore/components/ExplorePage.tsx): `src/features/explore/components/ExplorePage.tsx`
- [Game hub](https://github.com/mr-b34n/indieg/blob/main/src/features/game/components/GameDetail.tsx): `src/features/game/components/GameDetail.tsx`
- [Squad matching](https://github.com/mr-b34n/indieg/blob/main/src/features/squad/components/SquadList.tsx): `src/features/squad/components/SquadList.tsx`
- [Player profiles](https://github.com/mr-b34n/indieg/blob/main/src/features/profile/components/UserProfile.tsx): `src/features/profile/components/UserProfile.tsx`
- [Global search](https://github.com/mr-b34n/indieg/blob/main/src/features/search/components/SearchResultsPage.tsx): `src/features/search/components/SearchResultsPage.tsx`

### Shared platform

- [Notifications](https://github.com/mr-b34n/indieg/blob/main/src/features/notification/components/NotificationDropdown.tsx): `src/features/notification/components/NotificationDropdown.tsx`
- [Account settings](https://github.com/mr-b34n/indieg/blob/main/src/features/settings/components/SettingsPage.tsx): `src/features/settings/components/SettingsPage.tsx`
- [Query orchestration](https://github.com/mr-b34n/indieg/blob/main/src/shared/api/useQueries.ts): `src/shared/api/useQueries.ts`
- [API operations](https://github.com/mr-b34n/indieg/blob/main/src/shared/api/index.ts): `src/shared/api/index.ts`
- [HTTP client](https://github.com/mr-b34n/indieg/blob/main/src/shared/api/client.ts): `src/shared/api/client.ts`
- [Image upload pipeline](https://github.com/mr-b34n/indieg/blob/main/src/shared/services/upload-service.ts): `src/shared/services/upload-service.ts`
- [Image processing](https://github.com/mr-b34n/indieg/blob/main/src/shared/utils/image-processor.ts): `src/shared/utils/image-processor.ts`
- [Theme and language](https://github.com/mr-b34n/indieg/blob/main/src/shared/store/useThemeStore.ts): `src/shared/store/useThemeStore.ts`

### Other components

- **Player**
- **Ludon backend**
- **Cloudflare R2**

## Connections

- Player → Application shell: uses
- Application shell → Authentication: initializes (evidence: `src/App.tsx`)
- Application shell → Route tree: provides (evidence: `src/App.tsx`)
- Route tree → Global search: routes to
- Player → Authentication: signs in
- Player → Feed and posts: reads and posts
- Player → Post interactions: interacts
- Player → Community hub: joins and discusses
- Player → Explore: discovers
- Player → Game hub: explores games
- Player → Squad matching: finds teammates
- Player → Player profiles: customizes
- Player → Global search: searches
- Player → Notifications: checks
- Player → Saved content: saves content
- Player → Safety reports: reports content
- Player → Account settings: configures account
- Authentication → API operations: uses (evidence: `src/features/auth/store/useAuthStore.ts`)
- Authentication → HTTP client: refreshes tokens (evidence: `src/features/auth/store/useAuthStore.ts`)
- Authentication → Theme and language: checks language (evidence: `src/features/auth/store/useAuthStore.ts`)
- Query orchestration → API operations: invokes operations (evidence: `src/shared/api/useQueries.ts`)
- API operations → HTTP client: sends requests (evidence: `src/shared/api/index.ts`)
- HTTP client → Ludon backend: calls API (evidence: `src/shared/api/client.ts`)
- Image upload pipeline → Image processing: processes images (evidence: `src/shared/services/upload-service.ts`)
- Image upload pipeline → HTTP client: requests upload URL (evidence: `src/shared/services/upload-service.ts`)
- Image upload pipeline → Cloudflare R2: uploads directly (evidence: `src/shared/services/upload-service.ts`)
- Image upload pipeline → Ludon backend: confirms upload (evidence: `src/shared/services/upload-service.ts`)
