# vanshgargji/zoom-clone architecture

> Architecture diagram of the GitHub repository vanshgargji/zoom-clone, 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/vanshgargji/zoom-clone
- Repository: https://github.com/vanshgargji/zoom-clone

## Overview

Zoom Clone is a browser-based conferencing product. Users schedule or start meetings, share an invitation, join through a pre-join flow, then participate in a live room with peer-to-peer media and backend-coordinated presence, chat, reactions, and host controls. The FastAPI backend also manages meeting lifecycle, validation, dashboard data, and SQLite persistence. README documents the product-level connections; source excerpts establish selected backend routing and lifecycle calls. Unsampled frontend and realtime internals are represented at subsystem level where their exact wiring is not shown.

Main entry points: [`backend/app/routers/meetings.py`](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/routers/meetings.py) (Meeting routes), [`backend/app/realtime/ws.py`](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/ws.py) (WebSocket endpoint), [`frontend/src/lib/api.ts`](https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/lib/api.ts) (HTTP client), [`backend/app/main.py`](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/main.py) (FastAPI application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Browser experience"]
  node_dashboard["Dashboard<br/>[page.tsx]"]
  node_schedule["Scheduling<br/>[ScheduleForm.tsx]"]
  node_join["Join flow<br/>[JoinForm.tsx]"]
  node_room["Meeting room<br/>[MeetingRoom.tsx]"]
  node_media["Browser media"]
  node_api["HTTP client<br/>[api.ts]"]
end

subgraph group_backend["API and meetings"]
  node_backend_app["FastAPI application<br/>[main.py]"]
  node_meeting_routes["Meeting routes<br/>[meetings.py]"]
  node_meeting_rules["Meeting management<br/>[meetings.py]"]
  node_lifecycle["Meeting lifecycle<br/>[lifecycle.py]"]
  node_dashboard_service["Dashboard data<br/>[dashboard.py]"]
  node_validation["Request schemas<br/>[meeting.py]"]
end

subgraph group_realtime["Live collaboration"]
  node_websocket["WebSocket endpoint<br/>[ws.py]"]
  node_realtime_actions["Realtime actions<br/>[actions.py]"]
  node_host_controls["Host controls<br/>[host_actions.py]"]
  node_chat_reactions["Chat and reactions<br/>[reactions.py]"]
  node_connections["Connection state"]
end

subgraph group_storage["Persistence"]
  node_models["Meeting records<br/>[meeting.py]"]
  node_sessions["Session records<br/>[meeting_session.py]"]
  node_participants["Participant records<br/>[participant.py]"]
  node_database[("SQLite database")]
end

node_user(("Meeting user"))

node_user -->|"opens"| node_dashboard
node_user -->|"schedules"| node_schedule
node_user -->|"joins"| node_join
node_user -->|"attends"| node_room
node_dashboard -.->|"requests data"| node_api
node_schedule -.->|"submits meeting"| node_api
node_join -.->|"requests admission"| node_api
node_room -.->|"uses WebRTC"| node_media
node_room -->|"signals presence"| node_websocket
node_media -->|"exchanges peer media"| node_media
node_api -->|"calls REST API"| node_meeting_routes
node_backend_app -->|"mounts"| node_meeting_routes
node_backend_app -->|"mounts"| node_websocket
node_meeting_routes -->|"delegates"| node_meeting_rules
node_meeting_routes -->|"starts or joins"| node_lifecycle
node_meeting_routes -->|"fetches lists"| node_dashboard_service
node_meeting_routes -->|"validates input"| node_validation
node_lifecycle -->|"creates sessions"| node_sessions
node_lifecycle -->|"creates participants"| node_participants
node_meeting_rules -->|"manages meetings"| node_models
node_websocket -->|"dispatches actions"| node_realtime_actions
node_websocket -->|"dispatches host actions"| node_host_controls
node_websocket -->|"dispatches reactions"| node_chat_reactions
node_websocket -->|"tracks connections"| node_connections
node_connections -->|"tracks presence"| node_participants
node_backend_app -->|"persists records"| node_database
node_models -->|"stored in"| node_database

click node_dashboard "https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/app/meetings/page.tsx"
click node_schedule "https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/components/schedule/ScheduleForm.tsx"
click node_join "https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/components/join/JoinForm.tsx"
click node_room "https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/components/meeting/MeetingRoom.tsx"
click node_media "https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/hooks/usePeerConnections.ts"
click node_api "https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/lib/api.ts"
click node_backend_app "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/main.py"
click node_meeting_routes "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/routers/meetings.py"
click node_meeting_rules "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/services/meetings.py"
click node_lifecycle "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/services/lifecycle.py"
click node_dashboard_service "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/services/dashboard.py"
click node_validation "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/schemas/meeting.py"
click node_websocket "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/ws.py"
click node_realtime_actions "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/actions.py"
click node_host_controls "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/host_actions.py"
click node_chat_reactions "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/reactions.py"
click node_connections "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/connection_manager.py"
click node_models "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/models/meeting.py"
click node_sessions "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/models/meeting_session.py"
click node_participants "https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/models/participant.py"

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_dashboard,node_schedule,node_join,node_room,node_media,node_api,node_user toneBlue
class node_backend_app,node_meeting_routes,node_meeting_rules,node_lifecycle,node_dashboard_service,node_validation toneAmber
class node_websocket,node_realtime_actions,node_host_controls,node_chat_reactions,node_connections toneMint
class node_models,node_sessions,node_participants,node_database toneRose
```

## Components

### Browser experience

- [Dashboard](https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/app/meetings/page.tsx): `frontend/src/app/meetings/page.tsx`
- [Scheduling](https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/components/schedule/ScheduleForm.tsx): `frontend/src/components/schedule/ScheduleForm.tsx`
- [Join flow](https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/components/join/JoinForm.tsx): `frontend/src/components/join/JoinForm.tsx`
- [Meeting room](https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/components/meeting/MeetingRoom.tsx): `frontend/src/components/meeting/MeetingRoom.tsx`
- [Browser media](https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/hooks/usePeerConnections.ts): `frontend/src/hooks/usePeerConnections.ts`
- [HTTP client](https://github.com/vanshgargji/zoom-clone/blob/main/frontend/src/lib/api.ts): `frontend/src/lib/api.ts`

### API and meetings

- [FastAPI application](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/main.py): `backend/app/main.py`
- [Meeting routes](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/routers/meetings.py): `backend/app/routers/meetings.py`
- [Meeting management](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/services/meetings.py): `backend/app/services/meetings.py`
- [Meeting lifecycle](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/services/lifecycle.py): `backend/app/services/lifecycle.py`
- [Dashboard data](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/services/dashboard.py): `backend/app/services/dashboard.py`
- [Request schemas](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/schemas/meeting.py): `backend/app/schemas/meeting.py`

### Live collaboration

- [WebSocket endpoint](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/ws.py): `backend/app/realtime/ws.py`
- [Realtime actions](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/actions.py): `backend/app/realtime/actions.py`
- [Host controls](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/host_actions.py): `backend/app/realtime/host_actions.py`
- [Chat and reactions](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/reactions.py): `backend/app/realtime/reactions.py`
- [Connection state](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/realtime/connection_manager.py): `backend/app/realtime/connection_manager.py`

### Persistence

- [Meeting records](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/models/meeting.py): `backend/app/models/meeting.py`
- [Session records](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/models/meeting_session.py): `backend/app/models/meeting_session.py`
- [Participant records](https://github.com/vanshgargji/zoom-clone/blob/main/backend/app/models/participant.py): `backend/app/models/participant.py`
- **SQLite database**

### Other components

- **Meeting user**

## Connections

- Meeting user → Dashboard: opens (evidence: `README.md`)
- Meeting user → Scheduling: schedules (evidence: `README.md`)
- Meeting user → Join flow: joins (evidence: `README.md`)
- Meeting user → Meeting room: attends (evidence: `README.md`)
- Dashboard → HTTP client: requests data
- Scheduling → HTTP client: submits meeting
- Join flow → HTTP client: requests admission
- Meeting room → Browser media: uses WebRTC
- Meeting room → WebSocket endpoint: signals presence (evidence: `README.md`)
- Browser media → Browser media: exchanges peer media (evidence: `README.md`)
- HTTP client → Meeting routes: calls REST API (evidence: `README.md`)
- FastAPI application → Meeting routes: mounts (evidence: `backend/app/main.py`)
- FastAPI application → WebSocket endpoint: mounts (evidence: `backend/app/main.py`)
- Meeting routes → Meeting management: delegates (evidence: `backend/app/routers/meetings.py`)
- Meeting routes → Meeting lifecycle: starts or joins (evidence: `backend/app/routers/meetings.py`)
- Meeting routes → Dashboard data: fetches lists (evidence: `backend/app/routers/meetings.py`)
- Meeting routes → Request schemas: validates input (evidence: `backend/app/routers/meetings.py`)
- Meeting lifecycle → Session records: creates sessions (evidence: `backend/app/services/lifecycle.py`)
- Meeting lifecycle → Participant records: creates participants (evidence: `backend/app/services/lifecycle.py`)
- Meeting management → Meeting records: manages meetings (evidence: `backend/app/services/meetings.py`)
- WebSocket endpoint → Realtime actions: dispatches actions (evidence: `backend/app/realtime/ws.py`)
- WebSocket endpoint → Host controls: dispatches host actions (evidence: `backend/app/realtime/ws.py`)
- WebSocket endpoint → Chat and reactions: dispatches reactions (evidence: `backend/app/realtime/ws.py`)
- WebSocket endpoint → Connection state: tracks connections (evidence: `backend/app/realtime/ws.py`)
- Connection state → Participant records: tracks presence (evidence: `backend/app/realtime/connection_manager.py`)
- FastAPI application → SQLite database: persists records (evidence: `README.md`)
- Meeting records → SQLite database: stored in (evidence: `README.md`)
