# allgee-tech/meeting architecture

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

- Interactive diagram: https://gitdiagram.com/allgee-tech/meeting
- Repository: https://github.com/allgee-tech/meeting

## Overview

Meeting is a browser-based video-meeting and collaboration app. A user opens the workspace, signs in or joins with a room code/invite as a guest, then collaborates through a peer-to-peer call and room tools; hosts can manage participants and rooms. The browser communicates with the Node.js server for sessions, room management, and signaling, while meeting media and shared files use browser capabilities. The README documents several features whose detailed implementations were not sampled, so those links are shown only where the documentation supports them.

Main entry points: [`public/app.js`](https://github.com/allgee-tech/meeting/blob/main/public/app.js) (WebRTC calls), [`server.js`](https://github.com/allgee-tech/meeting/blob/main/server.js) (HTTP API), [`public/theme.js`](https://github.com/allgee-tech/meeting/blob/main/public/theme.js) (Theme preferences)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser workspace"]
  node_workspace["Meeting workspace<br/>[app.js]"]
  node_appearance["Theme preferences<br/>[theme.js]"]
  node_room_ui["Room and lobby UI<br/>[app.js]"]
end

subgraph group_meeting["Meeting collaboration"]
  node_webrtc["WebRTC calls<br/>[app.js]"]
  node_room_tools["Room collaboration tools<br/>[app.js]"]
  node_file_transfer["File sharing<br/>[app.js]"]
  node_indexeddb[("Browser file library<br/>[app.js]")]
end

subgraph group_server["Server services"]
  node_http_api["HTTP API<br/>[server.js]"]
  node_auth["Accounts and sessions<br/>[server.js]"]
  node_room_service["Room management<br/>[server.js]"]
  node_signaling["Socket.IO signaling<br/>[server.js]"]
end

subgraph group_state["Persistence and delivery"]
  node_json_store[("Local JSON store<br/>[server.js]")]
  node_email["Email delivery<br/>[server.js]"]
end

node_participant(("Participant"))
node_smtp["SMTP or Brevo"]
node_stun_turn["STUN or TURN"]

node_participant -->|"uses"| node_workspace
node_workspace -->|"sets preferences"| node_appearance
node_workspace -.->|"requests"| node_http_api
node_http_api -->|"routes auth"| node_auth
node_http_api -->|"routes rooms"| node_room_service
node_auth -->|"persists sessions"| node_json_store
node_room_service -->|"persists rooms"| node_json_store
node_room_service -->|"manages peers"| node_signaling
node_participant -->|"joins room"| node_room_ui
node_room_ui -->|"starts calls"| node_webrtc
node_signaling -->|"signals peers"| node_webrtc
node_webrtc -.->|"discovers or relays"| node_stun_turn
node_room_ui -->|"uses tools"| node_room_tools
node_room_tools -->|"shares data"| node_webrtc
node_room_tools -->|"transfers files"| node_file_transfer
node_file_transfer -->|"stores files"| node_indexeddb
node_auth -.->|"sends account mail"| node_email
node_email -.->|"delivers through"| node_smtp

click node_workspace "https://github.com/allgee-tech/meeting/blob/main/public/app.js"
click node_appearance "https://github.com/allgee-tech/meeting/blob/main/public/theme.js"
click node_room_ui "https://github.com/allgee-tech/meeting/blob/main/public/app.js"
click node_webrtc "https://github.com/allgee-tech/meeting/blob/main/public/app.js"
click node_room_tools "https://github.com/allgee-tech/meeting/blob/main/public/app.js"
click node_file_transfer "https://github.com/allgee-tech/meeting/blob/main/public/app.js"
click node_indexeddb "https://github.com/allgee-tech/meeting/blob/main/public/app.js"
click node_http_api "https://github.com/allgee-tech/meeting/blob/main/server.js"
click node_auth "https://github.com/allgee-tech/meeting/blob/main/server.js"
click node_room_service "https://github.com/allgee-tech/meeting/blob/main/server.js"
click node_signaling "https://github.com/allgee-tech/meeting/blob/main/server.js"
click node_json_store "https://github.com/allgee-tech/meeting/blob/main/server.js"
click node_email "https://github.com/allgee-tech/meeting/blob/main/server.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_workspace,node_appearance,node_room_ui toneBlue
class node_webrtc,node_room_tools,node_file_transfer,node_indexeddb toneAmber
class node_http_api,node_auth,node_room_service,node_signaling toneMint
class node_json_store,node_email toneRose
class node_participant,node_smtp,node_stun_turn toneIndigo
```

## Components

### Browser workspace

- [Meeting workspace](https://github.com/allgee-tech/meeting/blob/main/public/app.js): `public/app.js`
- [Theme preferences](https://github.com/allgee-tech/meeting/blob/main/public/theme.js): `public/theme.js`
- [Room and lobby UI](https://github.com/allgee-tech/meeting/blob/main/public/app.js): `public/app.js`

### Meeting collaboration

- [WebRTC calls](https://github.com/allgee-tech/meeting/blob/main/public/app.js): `public/app.js`
- [Room collaboration tools](https://github.com/allgee-tech/meeting/blob/main/public/app.js): `public/app.js`
- [File sharing](https://github.com/allgee-tech/meeting/blob/main/public/app.js): `public/app.js`
- [Browser file library](https://github.com/allgee-tech/meeting/blob/main/public/app.js): `public/app.js`

### Server services

- [HTTP API](https://github.com/allgee-tech/meeting/blob/main/server.js): `server.js`
- [Accounts and sessions](https://github.com/allgee-tech/meeting/blob/main/server.js): `server.js`
- [Room management](https://github.com/allgee-tech/meeting/blob/main/server.js): `server.js`
- [Socket.IO signaling](https://github.com/allgee-tech/meeting/blob/main/server.js): `server.js`

### Persistence and delivery

- [Local JSON store](https://github.com/allgee-tech/meeting/blob/main/server.js): `server.js`
- [Email delivery](https://github.com/allgee-tech/meeting/blob/main/server.js): `server.js`

### Other components

- **Participant**
- **SMTP or Brevo**
- **STUN or TURN**

## Connections

- Participant → Meeting workspace: uses (evidence: `README.md`)
- Meeting workspace → Theme preferences: sets preferences (evidence: `public/theme.js`)
- Meeting workspace → HTTP API: requests (evidence: `README.md`)
- HTTP API → Accounts and sessions: routes auth (evidence: `server.js`)
- HTTP API → Room management: routes rooms (evidence: `server.js`)
- Accounts and sessions → Local JSON store: persists sessions (evidence: `server.js`)
- Room management → Local JSON store: persists rooms (evidence: `server.js`)
- Room management → Socket.IO signaling: manages peers (evidence: `server.js`)
- Participant → Room and lobby UI: joins room (evidence: `README.md`)
- Room and lobby UI → WebRTC calls: starts calls (evidence: `README.md`)
- Socket.IO signaling → WebRTC calls: signals peers (evidence: `README.md`)
- WebRTC calls → STUN or TURN: discovers or relays (evidence: `README.md`)
- Room and lobby UI → Room collaboration tools: uses tools (evidence: `README.md`)
- Room collaboration tools → WebRTC calls: shares data (evidence: `public/app.js`)
- Room collaboration tools → File sharing: transfers files (evidence: `README.md`)
- File sharing → Browser file library: stores files (evidence: `public/app.js`)
- Accounts and sessions → Email delivery: sends account mail (evidence: `README.md`)
- Email delivery → SMTP or Brevo: delivers through (evidence: `README.md`)
