# jieunprohd/deepong architecture

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

- Interactive diagram: https://gitdiagram.com/jieunprohd/deepong
- Repository: https://github.com/jieunprohd/deepong

## Overview

Deepong is a social communication product centered on messaging, relationships, and managing attention. Users authenticate, connect with friends, communicate in rooms, and use focus, presence, notifications, and catch-up features to manage when they engage. The graph includes the documented major product areas and the API’s shared infrastructure. Source excerpts establish several controller-to-use-case and frontend-to-catch-up relationships; links for unsampled feature internals are omitted rather than inferred.

Main entry points: [`deepong/apps/api/src/app.module.ts`](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/app.module.ts) (API composition), [`deepong/apps/api/src/modules/identity/interface/auth.controller.ts`](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/identity/interface/auth.controller.ts) (Authentication endpoints), [`deepong/src/app/(main)/page.tsx`](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/page.tsx) (Home feed), [`deepong/apps/api/src/modules/communication/interface`](https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/communication/interface) (Rooms and messages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web experience"]
  node_auth_ui["Sign-in UI<br/>[page.tsx]"]
  node_onboarding["Onboarding"]
  node_home_ui["Home feed<br/>[page.tsx]"]
  node_catchup_ui["Catch-up UI"]
  node_chat_ui["Chat UI<br/>[page.tsx]"]
  node_focus_ui["Focus UI<br/>[page.tsx]"]
  node_friends_ui["Friends UI<br/>[page.tsx]"]
  node_settings_ui["Settings UI<br/>[page.tsx]"]
  node_web_api["Catch-up API client<br/>[api.ts]"]
end

subgraph group_identity["Identity and relationships"]
  node_identity_api["Authentication endpoints<br/>[auth.controller.ts]"]
  node_identity_usecases["Identity use cases"]
  node_relationship["Friendships and norms"]
end

subgraph group_communication["Communication"]
  node_communication_api["Rooms and messages"]
  node_communication_usecases["Communication workflows"]
end

subgraph group_attention["Attention and catch-up"]
  node_focus_api["Focus sessions"]
  node_notification_api["Notifications"]
  node_attention_usecases["Attention workflows"]
  node_catchup_api["Catch-up feed"]
end

subgraph group_platform["API platform"]
  node_api_entry["API composition<br/>[app.module.ts]"]
  node_workspace["Workspace settings"]
  node_database[("Database<br/>[database.module.ts]")]
  node_redis["Redis integration<br/>[redis.module.ts]"]
  node_event_bus["Event bus"]
end

node_user(("User"))
node_oauth{{"OAuth providers"}}

node_user -->|"signs in"| node_auth_ui
node_user -->|"sets up"| node_onboarding
node_user -->|"views feed"| node_home_ui
node_user -->|"chats"| node_chat_ui
node_user -->|"manages focus"| node_focus_ui
node_user -->|"connects"| node_friends_ui
node_user -->|"configures"| node_settings_ui
node_auth_ui -.->|"authenticates"| node_identity_api
node_oauth -->|"authorizes"| node_identity_api
node_identity_api -->|"executes"| node_identity_usecases
node_onboarding -.->|"configures"| node_relationship
node_friends_ui -.->|"manages"| node_relationship
node_chat_ui -.->|"uses"| node_communication_api
node_communication_api -->|"executes"| node_communication_usecases
node_focus_ui -.->|"uses"| node_focus_api
node_focus_api -->|"executes"| node_attention_usecases
node_notification_api -->|"executes"| node_attention_usecases
node_home_ui -->|"fetches feed"| node_web_api
node_home_ui -->|"renders"| node_catchup_ui
node_web_api -.->|"requests feed"| node_catchup_api
node_catchup_api -->|"executes"| node_attention_usecases
node_settings_ui -.->|"updates"| node_workspace
node_api_entry -->|"registers"| node_identity_api
node_api_entry -->|"registers"| node_relationship
node_api_entry -->|"registers"| node_communication_api
node_api_entry -->|"registers"| node_focus_api
node_api_entry -->|"registers"| node_catchup_api
node_api_entry -->|"registers"| node_workspace
node_api_entry -->|"registers"| node_database
node_api_entry -->|"registers"| node_redis
node_api_entry -->|"registers"| node_event_bus

click node_auth_ui "https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(auth)/auth/page.tsx"
click node_onboarding "https://github.com/jieunprohd/deepong/tree/develop/deepong/src/app/onboarding"
click node_home_ui "https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/page.tsx"
click node_catchup_ui "https://github.com/jieunprohd/deepong/tree/develop/deepong/src/features/catchup"
click node_chat_ui "https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/chat/%5Bid%5D/page.tsx"
click node_focus_ui "https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/focus/page.tsx"
click node_friends_ui "https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/friends/page.tsx"
click node_settings_ui "https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/settings/page.tsx"
click node_web_api "https://github.com/jieunprohd/deepong/blob/develop/deepong/src/features/catchup/api.ts"
click node_api_entry "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/app.module.ts"
click node_identity_api "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/identity/interface/auth.controller.ts"
click node_identity_usecases "https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/identity/application"
click node_relationship "https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/relationship"
click node_communication_api "https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/communication/interface"
click node_communication_usecases "https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/communication/application"
click node_focus_api "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/attention/interface/focus.controller.ts"
click node_notification_api "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/attention/interface/notification.controller.ts"
click node_attention_usecases "https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/attention/application"
click node_catchup_api "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/catchup/interface/catchup.controller.ts"
click node_workspace "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/workspace/interface/workspace.controller.ts"
click node_database "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/shared/database/database.module.ts"
click node_redis "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/shared/redis/redis.module.ts"
click node_event_bus "https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/shared/event-bus/event-bus.module.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_ui,node_onboarding,node_home_ui,node_catchup_ui,node_chat_ui,node_focus_ui,node_friends_ui,node_settings_ui,node_web_api,node_user toneBlue
class node_identity_api,node_identity_usecases,node_relationship toneAmber
class node_communication_api,node_communication_usecases toneMint
class node_focus_api,node_notification_api,node_attention_usecases,node_catchup_api toneRose
class node_api_entry,node_workspace,node_database,node_redis,node_event_bus,node_oauth toneIndigo
```

## Components

### Web experience

- [Sign-in UI](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(auth)/auth/page.tsx): `deepong/src/app/(auth)/auth/page.tsx`
- [Onboarding](https://github.com/jieunprohd/deepong/tree/develop/deepong/src/app/onboarding): `deepong/src/app/onboarding`
- [Home feed](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/page.tsx): `deepong/src/app/(main)/page.tsx`
- [Catch-up UI](https://github.com/jieunprohd/deepong/tree/develop/deepong/src/features/catchup): `deepong/src/features/catchup`
- [Chat UI](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/chat/%5Bid%5D/page.tsx): `deepong/src/app/(main)/chat/[id]/page.tsx`
- [Focus UI](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/focus/page.tsx): `deepong/src/app/(main)/focus/page.tsx`
- [Friends UI](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/friends/page.tsx): `deepong/src/app/(main)/friends/page.tsx`
- [Settings UI](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/app/(main)/settings/page.tsx): `deepong/src/app/(main)/settings/page.tsx`
- [Catch-up API client](https://github.com/jieunprohd/deepong/blob/develop/deepong/src/features/catchup/api.ts): `deepong/src/features/catchup/api.ts`

### Identity and relationships

- [Authentication endpoints](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/identity/interface/auth.controller.ts): `deepong/apps/api/src/modules/identity/interface/auth.controller.ts`
- [Identity use cases](https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/identity/application): `deepong/apps/api/src/modules/identity/application`
- [Friendships and norms](https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/relationship): `deepong/apps/api/src/modules/relationship`

### Communication

- [Rooms and messages](https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/communication/interface): `deepong/apps/api/src/modules/communication/interface`
- [Communication workflows](https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/communication/application): `deepong/apps/api/src/modules/communication/application`

### Attention and catch-up

- [Focus sessions](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/attention/interface/focus.controller.ts): `deepong/apps/api/src/modules/attention/interface/focus.controller.ts`
- [Notifications](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/attention/interface/notification.controller.ts): `deepong/apps/api/src/modules/attention/interface/notification.controller.ts`
- [Attention workflows](https://github.com/jieunprohd/deepong/tree/develop/deepong/apps/api/src/modules/attention/application): `deepong/apps/api/src/modules/attention/application`
- [Catch-up feed](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/catchup/interface/catchup.controller.ts): `deepong/apps/api/src/modules/catchup/interface/catchup.controller.ts`

### API platform

- [API composition](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/app.module.ts): `deepong/apps/api/src/app.module.ts`
- [Workspace settings](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/modules/workspace/interface/workspace.controller.ts): `deepong/apps/api/src/modules/workspace/interface/workspace.controller.ts`
- [Database](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/shared/database/database.module.ts): `deepong/apps/api/src/shared/database/database.module.ts`
- [Redis integration](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/shared/redis/redis.module.ts): `deepong/apps/api/src/shared/redis/redis.module.ts`
- [Event bus](https://github.com/jieunprohd/deepong/blob/develop/deepong/apps/api/src/shared/event-bus/event-bus.module.ts): `deepong/apps/api/src/shared/event-bus/event-bus.module.ts`

### Other components

- **User**
- **OAuth providers**

## Connections

- User → Sign-in UI: signs in
- User → Onboarding: sets up
- User → Home feed: views feed
- User → Chat UI: chats
- User → Focus UI: manages focus
- User → Friends UI: connects
- User → Settings UI: configures
- Sign-in UI → Authentication endpoints: authenticates
- OAuth providers → Authentication endpoints: authorizes (evidence: `deepong/apps/api/src/modules/identity/interface/auth.controller.ts`)
- Authentication endpoints → Identity use cases: executes (evidence: `deepong/apps/api/src/modules/identity/interface/auth.controller.ts`)
- Onboarding → Friendships and norms: configures
- Friends UI → Friendships and norms: manages
- Chat UI → Rooms and messages: uses
- Rooms and messages → Communication workflows: executes (evidence: `deepong/apps/api/src/modules/communication/interface/message.controller.ts`)
- Focus UI → Focus sessions: uses
- Focus sessions → Attention workflows: executes (evidence: `deepong/apps/api/src/modules/attention/interface/focus.controller.ts`)
- Notifications → Attention workflows: executes (evidence: `deepong/apps/api/src/modules/attention/interface/notification.controller.ts`)
- Home feed → Catch-up API client: fetches feed (evidence: `deepong/src/app/(main)/page.tsx`)
- Home feed → Catch-up UI: renders (evidence: `deepong/src/app/(main)/page.tsx`)
- Catch-up API client → Catch-up feed: requests feed
- Catch-up feed → Attention workflows: executes (evidence: `deepong/apps/api/src/modules/catchup/interface/catchup.controller.ts`)
- Settings UI → Workspace settings: updates
- API composition → Authentication endpoints: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Friendships and norms: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Rooms and messages: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Focus sessions: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Catch-up feed: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Workspace settings: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Database: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Redis integration: registers (evidence: `deepong/apps/api/src/app.module.ts`)
- API composition → Event bus: registers (evidence: `deepong/apps/api/src/app.module.ts`)
