# dhruv-panchal145/live-desk-frontend architecture

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

- Interactive diagram: https://gitdiagram.com/dhruv-panchal145/live-desk-frontend
- Repository: https://github.com/dhruv-panchal145/live-desk-frontend

## Overview

Live Desk is a React frontend for account access, joining video meetings, and reviewing meeting history. Users enter through the landing page, authenticate, then join a meeting from Home; the meeting view handles media and peer signaling, while meeting activity is recorded and later fetched for History. The excerpts show the route structure, authentication/activity requests, and parts of the meeting signaling and media behavior. VideoMeet is partial, so its omitted details are not expanded here.

Main entry points: [`src/App.js`](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/App.js) (Route app), [`src/contexts/AuthContext.jsx`](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/contexts/AuthContext.jsx) (Auth provider), [`src/pages/VideoMeet.jsx`](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/VideoMeet.jsx) (Meeting room), [`src/pages/Home.jsx`](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/Home.jsx) (Meeting home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["App navigation"]
  node_app["Route app<br/>[App.js]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
  node_home["Meeting home<br/>[Home.jsx]"]
end

subgraph group_accounts["Accounts and activity"]
  node_authpage["Sign-in form<br/>[Authentication.jsx]"]
  node_authprovider["Auth provider<br/>[AuthContext.jsx]"]
  node_authguard["Auth guard<br/>[withAuth.jsx]"]
  node_history["Meeting history<br/>[history.jsx]"]
end

subgraph group_meetings["Live meetings"]
  node_videomeet["Meeting room<br/>[VideoMeet.jsx]"]
  node_serverconfig["Server config<br/>[environment.js]"]
end

node_visitor(("Visitor"))
node_api{{"Backend API"}}
node_media{{"Browser media"}}
node_signaling{{"Socket signaling"}}

node_visitor -->|"opens"| node_landing
node_landing -->|"links to"| node_authpage
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_authpage
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_history
node_app -->|"routes to"| node_videomeet
node_app -->|"wraps routes"| node_authprovider
node_authpage -->|"calls auth"| node_authprovider
node_authprovider -->|"sends auth requests"| node_api
node_home -->|"wrapped by"| node_authguard
node_authguard -->|"redirects unauthenticated"| node_authpage
node_home -->|"records meeting"| node_authprovider
node_home -->|"navigates to room"| node_videomeet
node_history -->|"requests history"| node_authprovider
node_authprovider -->|"requests activity"| node_api
node_videomeet -->|"requests streams"| node_media
node_videomeet -->|"imports server setting"| node_serverconfig
node_videomeet -->|"emits signals"| node_signaling

click node_app "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/App.js"
click node_landing "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/LandingPage.jsx"
click node_authpage "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/Authentication.jsx"
click node_authprovider "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/contexts/AuthContext.jsx"
click node_authguard "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/utils/withAuth.jsx"
click node_home "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/Home.jsx"
click node_history "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/history.jsx"
click node_videomeet "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/VideoMeet.jsx"
click node_serverconfig "https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/environment.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_landing,node_home,node_media toneBlue
class node_authpage,node_authprovider,node_authguard,node_history toneAmber
class node_videomeet,node_serverconfig,node_api toneMint
class node_visitor,node_signaling toneIndigo
```

## Components

### App navigation

- [Route app](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/App.js): `src/App.js`
- [Landing page](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/LandingPage.jsx): `src/pages/LandingPage.jsx`
- [Meeting home](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`

### Accounts and activity

- [Sign-in form](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/Authentication.jsx): `src/pages/Authentication.jsx`
- [Auth provider](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/contexts/AuthContext.jsx): `src/contexts/AuthContext.jsx`
- [Auth guard](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/utils/withAuth.jsx): `src/utils/withAuth.jsx`
- [Meeting history](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/history.jsx): `src/pages/history.jsx`

### Live meetings

- [Meeting room](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/pages/VideoMeet.jsx): `src/pages/VideoMeet.jsx`
- [Server config](https://github.com/dhruv-panchal145/live-desk-frontend/blob/main/src/environment.js): `src/environment.js`

### Other components

- **Visitor**
- **Backend API**
- **Browser media**
- **Socket signaling**

## Connections

- Visitor → Landing page: opens (evidence: `src/pages/LandingPage.jsx`)
- Landing page → Sign-in form: links to (evidence: `src/pages/LandingPage.jsx`)
- Route app → Landing page: routes to (evidence: `src/App.js`)
- Route app → Sign-in form: routes to (evidence: `src/App.js`)
- Route app → Meeting home: routes to (evidence: `src/App.js`)
- Route app → Meeting history: routes to (evidence: `src/App.js`)
- Route app → Meeting room: routes to (evidence: `src/App.js`)
- Route app → Auth provider: wraps routes (evidence: `src/App.js`)
- Sign-in form → Auth provider: calls auth (evidence: `src/pages/Authentication.jsx`)
- Auth provider → Backend API: sends auth requests (evidence: `src/contexts/AuthContext.jsx`)
- Meeting home → Auth guard: wrapped by (evidence: `src/pages/Home.jsx`)
- Auth guard → Sign-in form: redirects unauthenticated (evidence: `src/utils/withAuth.jsx`)
- Meeting home → Auth provider: records meeting (evidence: `src/pages/Home.jsx`)
- Meeting home → Meeting room: navigates to room (evidence: `src/pages/Home.jsx`)
- Meeting history → Auth provider: requests history (evidence: `src/pages/history.jsx`)
- Auth provider → Backend API: requests activity (evidence: `src/contexts/AuthContext.jsx`)
- Meeting room → Browser media: requests streams (evidence: `src/pages/VideoMeet.jsx`)
- Meeting room → Server config: imports server setting (evidence: `src/pages/VideoMeet.jsx`)
- Meeting room → Socket signaling: emits signals (evidence: `src/pages/VideoMeet.jsx`)
