# aruljyothi1302/devhub-web architecture

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

- Interactive diagram: https://gitdiagram.com/aruljyothi1302/devhub-web
- Repository: https://github.com/aruljyothi1302/devhub-web

## Overview

DevTinderUi is a React client for a matchmaking and social-connection product. Users authenticate, complete a profile, browse and respond to suggested profiles, then manage requests and connections or chat with a connection. The UI also exposes premium and privacy pages. The graph reflects the routes and interactions visible in excerpts and the SOURCE INDEX; backend behavior and unsampled component internals are not inspected, so uncertain feature-to-API links are dashed.

Main entry points: [`DevTinderUi/src/App.jsx`](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/App.jsx) (Route application), [`DevTinderUi/src/utils/api.js`](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/api.js) (HTTP API client), [`DevTinderUi/src/utils/appStore.js`](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/appStore.js) (Redux store), [`DevTinderUi/src/Components/Chat.jsx`](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Chat.jsx) (Chat)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App and access"]
  node_app["Route application<br/>[App.jsx]"]
  node_authinit["Auth initialization"]
  node_login["Login and signup<br/>[Login.jsx]"]
  node_protected["Protected routes<br/>[ProtectedRoute.jsx]"]
  node_public["Public routes<br/>[PublicRoute.jsx]"]
  node_shell["Page shell<br/>[Body.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_discovery["Profiles and discovery"]
  node_feed["Profile feed<br/>[Feed.jsx]"]
  node_card["Profile card<br/>[UserCard.jsx]"]
  node_profile["Profile editing<br/>[ProfileEdit.jsx]"]
end

subgraph group_social["Connections and chat"]
  node_connections["Connections<br/>[Connections.jsx]"]
  node_requests["Connection requests<br/>[Requests.jsx]"]
  node_chat["Chat<br/>[Chat.jsx]"]
  node_socket["Socket client<br/>[socket.js]"]
  node_premium["Premium<br/>[Premium.jsx]"]
  node_premiumcard["Premium plan card<br/>[PremiumCard.jsx]"]
  node_privacy["Privacy page<br/>[Privacy.jsx]"]
end

subgraph group_state["Client state and API"]
  node_store["Redux store<br/>[appStore.js]"]
  node_authstate["Auth state<br/>[authSlice.js]"]
  node_userstate["User state<br/>[userSlice.js]"]
  node_feedstate["Feed state<br/>[feedSlice.js]"]
  node_connectionstate["Connection state"]
  node_requeststate["Request state<br/>[requestSlice.js]"]
  node_api["HTTP API client<br/>[api.js]"]
end

node_user(("User"))
node_backend["Backend service"]

node_user -->|"uses app"| node_app
node_app -->|"wraps routes"| node_authinit
node_app -->|"routes login"| node_public
node_app -->|"guards pages"| node_protected
node_app -->|"routes feed"| node_feed
node_app -->|"routes profile"| node_profile
node_app -->|"routes connections"| node_connections
node_app -->|"routes requests"| node_requests
node_app -->|"routes chat"| node_chat
node_app -->|"routes premium"| node_premium
node_app -->|"routes privacy"| node_privacy
node_authinit -->|"loads profile"| node_api
node_authinit -->|"sets user"| node_userstate
node_authinit -->|"sets auth"| node_authstate
node_login -->|"submits credentials"| node_api
node_login -->|"stores user"| node_userstate
node_login -->|"sets auth"| node_authstate
node_protected -->|"renders shell"| node_shell
node_shell -->|"renders"| node_navbar
node_shell -->|"renders"| node_footer
node_feed -->|"renders cards"| node_card
node_feed -.->|"loads suggestions"| node_api
node_feed -.->|"updates feed"| node_feedstate
node_card -->|"sends response"| node_api
node_card -->|"removes profile"| node_feedstate
node_profile -->|"saves profile"| node_api
node_profile -->|"updates user"| node_userstate
node_profile -->|"previews profile"| node_card
node_connections -.->|"loads connections"| node_api
node_connections -.->|"uses state"| node_connectionstate
node_requests -.->|"handles requests"| node_api
node_requests -.->|"uses state"| node_requeststate
node_chat -->|"loads history"| node_api
node_chat -->|"exchanges events"| node_socket
node_chat -.->|"loads chat history"| node_backend
node_api -->|"sends HTTP requests"| node_backend
node_chat -.->|"sends chat events"| node_backend
node_premium -->|"renders plan"| node_premiumcard
node_premium -.->|"checks premium"| node_api
node_store -->|"registers reducer"| node_userstate
node_store -->|"registers reducer"| node_feedstate
node_store -->|"registers reducer"| node_connectionstate
node_store -->|"registers reducer"| node_requeststate
node_store -->|"registers reducer"| node_authstate

click node_app "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/App.jsx"
click node_authinit "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/AuthInitializer.jsx"
click node_login "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Login.jsx"
click node_protected "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/ProtectedRoute.jsx"
click node_public "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/PublicRoute.jsx"
click node_shell "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Body.jsx"
click node_navbar "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Navbar.jsx"
click node_footer "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Footer.jsx"
click node_feed "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Feed.jsx"
click node_card "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/UserCard.jsx"
click node_profile "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/ProfileEdit.jsx"
click node_connections "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Connections.jsx"
click node_requests "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Requests.jsx"
click node_chat "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Chat.jsx"
click node_socket "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/socket.js"
click node_premium "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Premium.jsx"
click node_premiumcard "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/PremiumCard.jsx"
click node_privacy "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Privacy.jsx"
click node_store "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/appStore.js"
click node_authstate "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/authSlice.js"
click node_userstate "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/userSlice.js"
click node_feedstate "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/feedSlice.js"
click node_connectionstate "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/connectionsSlice.js"
click node_requeststate "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/requestSlice.js"
click node_api "https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/api.js"

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_authinit,node_login,node_protected,node_public,node_shell,node_navbar,node_footer,node_user toneBlue
class node_feed,node_card,node_profile toneAmber
class node_connections,node_requests,node_chat,node_socket,node_premium,node_premiumcard,node_privacy toneMint
class node_store,node_authstate,node_userstate,node_feedstate,node_connectionstate,node_requeststate,node_api toneRose
class node_backend toneIndigo
```

## Components

### App and access

- [Route application](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/App.jsx): `DevTinderUi/src/App.jsx`
- [Auth initialization](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/AuthInitializer.jsx): `DevTinderUi/src/Components/AuthInitializer.jsx`
- [Login and signup](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Login.jsx): `DevTinderUi/src/Components/Login.jsx`
- [Protected routes](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/ProtectedRoute.jsx): `DevTinderUi/src/Components/ProtectedRoute.jsx`
- [Public routes](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/PublicRoute.jsx): `DevTinderUi/src/Components/PublicRoute.jsx`
- [Page shell](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Body.jsx): `DevTinderUi/src/Components/Body.jsx`
- [Navigation](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Navbar.jsx): `DevTinderUi/src/Components/Navbar.jsx`
- [Footer](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Footer.jsx): `DevTinderUi/src/Components/Footer.jsx`

### Profiles and discovery

- [Profile feed](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Feed.jsx): `DevTinderUi/src/Components/Feed.jsx`
- [Profile card](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/UserCard.jsx): `DevTinderUi/src/Components/UserCard.jsx`
- [Profile editing](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/ProfileEdit.jsx): `DevTinderUi/src/Components/ProfileEdit.jsx`

### Connections and chat

- [Connections](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Connections.jsx): `DevTinderUi/src/Components/Connections.jsx`
- [Connection requests](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Requests.jsx): `DevTinderUi/src/Components/Requests.jsx`
- [Chat](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Chat.jsx): `DevTinderUi/src/Components/Chat.jsx`
- [Socket client](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/socket.js): `DevTinderUi/src/utils/socket.js`
- [Premium](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Premium.jsx): `DevTinderUi/src/Components/Premium.jsx`
- [Premium plan card](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/PremiumCard.jsx): `DevTinderUi/src/Components/PremiumCard.jsx`
- [Privacy page](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/Components/Privacy.jsx): `DevTinderUi/src/Components/Privacy.jsx`

### Client state and API

- [Redux store](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/appStore.js): `DevTinderUi/src/utils/appStore.js`
- [Auth state](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/authSlice.js): `DevTinderUi/src/utils/authSlice.js`
- [User state](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/userSlice.js): `DevTinderUi/src/utils/userSlice.js`
- [Feed state](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/feedSlice.js): `DevTinderUi/src/utils/feedSlice.js`
- [Connection state](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/connectionsSlice.js): `DevTinderUi/src/utils/connectionsSlice.js`
- [Request state](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/requestSlice.js): `DevTinderUi/src/utils/requestSlice.js`
- [HTTP API client](https://github.com/aruljyothi1302/devhub-web/blob/main/DevTinderUi/src/utils/api.js): `DevTinderUi/src/utils/api.js`

### Other components

- **User**
- **Backend service**

## Connections

- User → Route application: uses app (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Auth initialization: wraps routes (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Public routes: routes login (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Protected routes: guards pages (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Profile feed: routes feed (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Profile editing: routes profile (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Connections: routes connections (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Connection requests: routes requests (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Chat: routes chat (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Premium: routes premium (evidence: `DevTinderUi/src/App.jsx`)
- Route application → Privacy page: routes privacy (evidence: `DevTinderUi/src/App.jsx`)
- Auth initialization → HTTP API client: loads profile (evidence: `DevTinderUi/src/Components/AuthInitializer.jsx`)
- Auth initialization → User state: sets user (evidence: `DevTinderUi/src/Components/AuthInitializer.jsx`)
- Auth initialization → Auth state: sets auth (evidence: `DevTinderUi/src/Components/AuthInitializer.jsx`)
- Login and signup → HTTP API client: submits credentials (evidence: `DevTinderUi/src/Components/Login.jsx`)
- Login and signup → User state: stores user (evidence: `DevTinderUi/src/Components/Login.jsx`)
- Login and signup → Auth state: sets auth (evidence: `DevTinderUi/src/Components/Login.jsx`)
- Protected routes → Page shell: renders shell (evidence: `DevTinderUi/src/Components/ProtectedRoute.jsx`)
- Page shell → Navigation: renders (evidence: `DevTinderUi/src/Components/Body.jsx`)
- Page shell → Footer: renders (evidence: `DevTinderUi/src/Components/Body.jsx`)
- Profile feed → Profile card: renders cards (evidence: `DevTinderUi/src/Components/Feed.jsx`)
- Profile feed → HTTP API client: loads suggestions (evidence: `DevTinderUi/src/Components/Feed.jsx`)
- Profile feed → Feed state: updates feed (evidence: `DevTinderUi/src/Components/Feed.jsx`)
- Profile card → HTTP API client: sends response (evidence: `DevTinderUi/src/Components/UserCard.jsx`)
- Profile card → Feed state: removes profile (evidence: `DevTinderUi/src/Components/UserCard.jsx`)
- Profile editing → HTTP API client: saves profile (evidence: `DevTinderUi/src/Components/ProfileEdit.jsx`)
- Profile editing → User state: updates user (evidence: `DevTinderUi/src/Components/ProfileEdit.jsx`)
- Profile editing → Profile card: previews profile (evidence: `DevTinderUi/src/Components/ProfileEdit.jsx`)
- Connections → HTTP API client: loads connections (evidence: `DevTinderUi/src/Components/Connections.jsx`)
- Connections → Connection state: uses state (evidence: `DevTinderUi/src/Components/Connections.jsx`)
- Connection requests → HTTP API client: handles requests (evidence: `DevTinderUi/src/Components/Requests.jsx`)
- Connection requests → Request state: uses state (evidence: `DevTinderUi/src/Components/Requests.jsx`)
- Chat → HTTP API client: loads history (evidence: `DevTinderUi/src/Components/Chat.jsx`)
- Chat → Socket client: exchanges events (evidence: `DevTinderUi/src/Components/Chat.jsx`)
- Chat → Backend service: loads chat history
- HTTP API client → Backend service: sends HTTP requests (evidence: `DevTinderUi/src/utils/api.js`)
- Chat → Backend service: sends chat events
- Premium → Premium plan card: renders plan (evidence: `DevTinderUi/src/Components/Premium.jsx`)
- Premium → HTTP API client: checks premium (evidence: `DevTinderUi/src/Components/Premium.jsx`)
- Redux store → User state: registers reducer (evidence: `DevTinderUi/src/utils/appStore.js`)
- Redux store → Feed state: registers reducer (evidence: `DevTinderUi/src/utils/appStore.js`)
- Redux store → Connection state: registers reducer (evidence: `DevTinderUi/src/utils/appStore.js`)
- Redux store → Request state: registers reducer (evidence: `DevTinderUi/src/utils/appStore.js`)
- Redux store → Auth state: registers reducer (evidence: `DevTinderUi/src/utils/appStore.js`)
