# jahirpendhari09/streammer architecture

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

- Interactive diagram: https://gitdiagram.com/jahirpendhari09/streammer
- Repository: https://github.com/jahirpendhari09/streammer

## Overview

Streammer is a browser-based video-watching and group-room application. Users enter through routed dashboard views, browse or search videos, and can join a room for shared video, chat, and member features; profile and notification views support the surrounding account workflow. Room media uses Socket.IO signaling and mediasoup transports, while HTTP services retrieve videos, chat history, memberships, notifications, and account data. The README provides no further capability detail, and some view implementations were not sampled, so the graph limits links to indexed references and shown calls.

Main entry points: [`src/Allroutes/Allroutes.tsx`](https://github.com/jahirpendhari09/streammer/blob/main/src/Allroutes/Allroutes.tsx) (Dashboard routes), [`src/view/VideoMenu/index.tsx`](https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/index.tsx) (Room session), [`src/services/general.ts`](https://github.com/jahirpendhari09/streammer/blob/main/src/services/general.ts) (Video and room API), [`src/redux/store.ts`](https://github.com/jahirpendhari09/streammer/blob/main/src/redux/store.ts) (Redux store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app["Application shell<br/>[App.tsx]"]
  node_routes["Dashboard routes<br/>[Allroutes.tsx]"]
  node_dashboard["Dashboard navigation<br/>[index.tsx]"]
  node_home["Video home<br/>[index.tsx]"]
  node_search["Video search<br/>[index.tsx]"]
  node_player["Video player<br/>[index.tsx]"]
  node_profile["Account profile<br/>[index.tsx]"]
  node_login["Login and signup<br/>[Login.tsx]"]
  node_notifications["Notifications<br/>[index.tsx]"]
  node_modal["Modal dialog<br/>[Modal.tsx]"]
end

subgraph group_room["Shared rooms"]
  node_roomentry["Room selection<br/>[index.tsx]"]
  node_roomview["Room session<br/>[index.tsx]"]
  node_chat["Room chat<br/>[Chat.tsx]"]
  node_members["Member roster<br/>[Members.tsx]"]
  node_membercard["Member card<br/>[MemberCard.tsx]"]
  node_mediasoup["Media transport<br/>[MediasoupClient.ts]"]
  node_socketprovider["Socket provider<br/>[SocketContext.tsx]"]
end

subgraph group_state["Client state"]
  node_store["Redux store<br/>[store.ts]"]
  node_authstate["Authentication state<br/>[reducer.ts]"]
  node_chatstate["Chat state<br/>[reducer.ts]"]
  node_themestate["Theme state<br/>[reducer.ts]"]
end

subgraph group_services["Backend services"]
  node_authservice["Account API<br/>[authServices.ts]"]
  node_generalservice["Video and room API<br/>[general.ts]"]
end

node_user(("Viewer"))
node_backend["Backend API and socket server"]

node_user -->|"opens"| node_app
node_app -->|"renders"| node_routes
node_routes -->|"routes to"| node_dashboard
node_routes -->|"routes to"| node_home
node_routes -->|"routes to"| node_search
node_routes -->|"routes to"| node_roomentry
node_routes -->|"routes to"| node_notifications
node_routes -->|"routes to"| node_profile
node_routes -->|"routes to"| node_player
node_routes -->|"routes to"| node_roomview
node_profile -->|"renders"| node_login
node_profile -->|"dispatches"| node_authservice
node_authservice -->|"requests account data"| node_backend
node_home -->|"fetches videos"| node_generalservice
node_search -->|"queries videos"| node_generalservice
node_generalservice -->|"requests video and room data"| node_backend
node_notifications -->|"loads notifications"| node_generalservice
node_notifications -->|"renders"| node_modal
node_roomentry -->|"renders"| node_modal
node_roomview -->|"renders"| node_chat
node_roomview -->|"renders"| node_members
node_members -->|"renders"| node_membercard
node_roomview -->|"controls media"| node_mediasoup
node_roomview -->|"loads room data"| node_generalservice
node_roomview -->|"loads users"| node_authservice
node_roomview -->|"uses socket"| node_socketprovider
node_mediasoup -->|"signals transports"| node_backend
node_socketprovider -->|"connects socket"| node_backend
node_chat -->|"uses socket"| node_socketprovider
node_app -->|"provided at startup"| node_store
node_store -->|"combines reducer"| node_authstate
node_store -->|"combines reducer"| node_chatstate
node_store -->|"combines reducer"| node_themestate

click node_app "https://github.com/jahirpendhari09/streammer/blob/main/src/App.tsx"
click node_routes "https://github.com/jahirpendhari09/streammer/blob/main/src/Allroutes/Allroutes.tsx"
click node_dashboard "https://github.com/jahirpendhari09/streammer/blob/main/src/view/Dashboard/index.tsx"
click node_home "https://github.com/jahirpendhari09/streammer/blob/main/src/view/Home/index.tsx"
click node_search "https://github.com/jahirpendhari09/streammer/blob/main/src/view/Search/index.tsx"
click node_player "https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoPlayer/index.tsx"
click node_profile "https://github.com/jahirpendhari09/streammer/blob/main/src/view/Profile/index.tsx"
click node_login "https://github.com/jahirpendhari09/streammer/blob/main/src/view/Profile/Login.tsx"
click node_notifications "https://github.com/jahirpendhari09/streammer/blob/main/src/view/Notifications/index.tsx"
click node_modal "https://github.com/jahirpendhari09/streammer/blob/main/src/components/Modal.tsx"
click node_roomentry "https://github.com/jahirpendhari09/streammer/blob/main/src/view/Room/index.tsx"
click node_roomview "https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/index.tsx"
click node_chat "https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/Chat.tsx"
click node_members "https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/Members.tsx"
click node_membercard "https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/MemberCard.tsx"
click node_mediasoup "https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/MediasoupClient.ts"
click node_socketprovider "https://github.com/jahirpendhari09/streammer/blob/main/src/context/SocketContext.tsx"
click node_store "https://github.com/jahirpendhari09/streammer/blob/main/src/redux/store.ts"
click node_authstate "https://github.com/jahirpendhari09/streammer/blob/main/src/redux/authReducer/reducer.ts"
click node_chatstate "https://github.com/jahirpendhari09/streammer/blob/main/src/redux/chatReducer/reducer.ts"
click node_themestate "https://github.com/jahirpendhari09/streammer/blob/main/src/redux/themeReducer/reducer.ts"
click node_authservice "https://github.com/jahirpendhari09/streammer/blob/main/src/services/authServices.ts"
click node_generalservice "https://github.com/jahirpendhari09/streammer/blob/main/src/services/general.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_dashboard,node_home,node_search,node_player,node_profile,node_login,node_notifications,node_modal,node_user toneBlue
class node_roomentry,node_roomview,node_chat,node_members,node_membercard,node_mediasoup,node_socketprovider toneAmber
class node_store,node_authstate,node_chatstate,node_themestate,node_backend toneMint
class node_authservice,node_generalservice toneRose
```

## Components

### App experience

- [Application shell](https://github.com/jahirpendhari09/streammer/blob/main/src/App.tsx): `src/App.tsx`
- [Dashboard routes](https://github.com/jahirpendhari09/streammer/blob/main/src/Allroutes/Allroutes.tsx): `src/Allroutes/Allroutes.tsx`
- [Dashboard navigation](https://github.com/jahirpendhari09/streammer/blob/main/src/view/Dashboard/index.tsx): `src/view/Dashboard/index.tsx`
- [Video home](https://github.com/jahirpendhari09/streammer/blob/main/src/view/Home/index.tsx): `src/view/Home/index.tsx`
- [Video search](https://github.com/jahirpendhari09/streammer/blob/main/src/view/Search/index.tsx): `src/view/Search/index.tsx`
- [Video player](https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoPlayer/index.tsx): `src/view/VideoPlayer/index.tsx`
- [Account profile](https://github.com/jahirpendhari09/streammer/blob/main/src/view/Profile/index.tsx): `src/view/Profile/index.tsx`
- [Login and signup](https://github.com/jahirpendhari09/streammer/blob/main/src/view/Profile/Login.tsx): `src/view/Profile/Login.tsx`
- [Notifications](https://github.com/jahirpendhari09/streammer/blob/main/src/view/Notifications/index.tsx): `src/view/Notifications/index.tsx`
- [Modal dialog](https://github.com/jahirpendhari09/streammer/blob/main/src/components/Modal.tsx): `src/components/Modal.tsx`

### Shared rooms

- [Room selection](https://github.com/jahirpendhari09/streammer/blob/main/src/view/Room/index.tsx): `src/view/Room/index.tsx`
- [Room session](https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/index.tsx): `src/view/VideoMenu/index.tsx`
- [Room chat](https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/Chat.tsx): `src/view/VideoMenu/Chat.tsx`
- [Member roster](https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/Members.tsx): `src/view/VideoMenu/Members.tsx`
- [Member card](https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/MemberCard.tsx): `src/view/VideoMenu/MemberCard.tsx`
- [Media transport](https://github.com/jahirpendhari09/streammer/blob/main/src/view/VideoMenu/MediasoupClient.ts): `src/view/VideoMenu/MediasoupClient.ts`
- [Socket provider](https://github.com/jahirpendhari09/streammer/blob/main/src/context/SocketContext.tsx): `src/context/SocketContext.tsx`

### Client state

- [Redux store](https://github.com/jahirpendhari09/streammer/blob/main/src/redux/store.ts): `src/redux/store.ts`
- [Authentication state](https://github.com/jahirpendhari09/streammer/blob/main/src/redux/authReducer/reducer.ts): `src/redux/authReducer/reducer.ts`
- [Chat state](https://github.com/jahirpendhari09/streammer/blob/main/src/redux/chatReducer/reducer.ts): `src/redux/chatReducer/reducer.ts`
- [Theme state](https://github.com/jahirpendhari09/streammer/blob/main/src/redux/themeReducer/reducer.ts): `src/redux/themeReducer/reducer.ts`

### Backend services

- [Account API](https://github.com/jahirpendhari09/streammer/blob/main/src/services/authServices.ts): `src/services/authServices.ts`
- [Video and room API](https://github.com/jahirpendhari09/streammer/blob/main/src/services/general.ts): `src/services/general.ts`

### Other components

- **Viewer**
- **Backend API and socket server**

## Connections

- Viewer → Application shell: opens
- Application shell → Dashboard routes: renders (evidence: `src/App.tsx`)
- Dashboard routes → Dashboard navigation: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Dashboard routes → Video home: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Dashboard routes → Video search: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Dashboard routes → Room selection: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Dashboard routes → Notifications: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Dashboard routes → Account profile: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Dashboard routes → Video player: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Dashboard routes → Room session: routes to (evidence: `src/Allroutes/Allroutes.tsx`)
- Account profile → Login and signup: renders (evidence: `src/view/Profile/index.tsx`)
- Account profile → Account API: dispatches (evidence: `src/view/Profile/index.tsx`)
- Account API → Backend API and socket server: requests account data (evidence: `src/services/authServices.ts`)
- Video home → Video and room API: fetches videos (evidence: `src/view/Home/index.tsx`)
- Video search → Video and room API: queries videos (evidence: `src/view/Search/index.tsx`)
- Video and room API → Backend API and socket server: requests video and room data (evidence: `src/services/general.ts`)
- Notifications → Video and room API: loads notifications (evidence: `src/view/Notifications/index.tsx`)
- Notifications → Modal dialog: renders (evidence: `src/view/Notifications/index.tsx`)
- Room selection → Modal dialog: renders (evidence: `src/view/Room/index.tsx`)
- Room session → Room chat: renders (evidence: `src/view/VideoMenu/index.tsx`)
- Room session → Member roster: renders (evidence: `src/view/VideoMenu/index.tsx`)
- Member roster → Member card: renders (evidence: `src/view/VideoMenu/Members.tsx`)
- Room session → Media transport: controls media (evidence: `src/view/VideoMenu/index.tsx`)
- Room session → Video and room API: loads room data (evidence: `src/view/VideoMenu/index.tsx`)
- Room session → Account API: loads users (evidence: `src/view/VideoMenu/index.tsx`)
- Room session → Socket provider: uses socket (evidence: `src/view/VideoMenu/index.tsx`)
- Media transport → Backend API and socket server: signals transports (evidence: `src/view/VideoMenu/MediasoupClient.ts`)
- Socket provider → Backend API and socket server: connects socket (evidence: `src/context/SocketContext.tsx`)
- Room chat → Socket provider: uses socket (evidence: `src/view/VideoMenu/Chat.tsx`)
- Application shell → Redux store: provided at startup (evidence: `src/main.tsx`)
- Redux store → Authentication state: combines reducer (evidence: `src/redux/store.ts`)
- Redux store → Chat state: combines reducer (evidence: `src/redux/store.ts`)
- Redux store → Theme state: combines reducer (evidence: `src/redux/store.ts`)
