# ptinoah/videoconf-hub architecture

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

- Interactive diagram: https://gitdiagram.com/ptinoah/videoconf-hub
- Repository: https://github.com/ptinoah/videoconf-hub

## Overview

VideoConf Hub is a React application for discovering technical-conference YouTube channels, playlists, and videos, with search, video details, and a saved watchlist. The main flow loads configured channels, lets users browse or search their content, and opens video details; users can save videos to a Firebase-backed watchlist. Authentication and watchlist persistence are separate supporting capabilities. The graph follows shown imports and calls; some YouTube and Firebase behavior is documented or indexed but not fully sampled.

Main entry points: [`VideoConf-Hub/src/App.jsx`](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/App.jsx) (App and Routes), [`VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx`](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx) (Watchlist State), [`VideoConf-Hub/src/Firebase/Authentification.js`](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/Authentification.js) (Firebase Auth Setup), [`VideoConf-Hub/src/Components/Pages/Channel.jsx`](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Channel.jsx) (Channel Page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_app["App and Routes<br/>[App.jsx]"]
  node_header["Navigation Header<br/>[Header.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_discovery["YouTube Discovery"]
  node_home["Channel Home<br/>[Home.jsx]"]
  node_channel["Channel Page<br/>[Channel.jsx]"]
  node_channeldata["Channel Loader<br/>[YoutubeGET.jsx]"]
  node_playlists["Playlist Listing<br/>[PlaylistGet.jsx]"]
  node_playlistvideos["Playlist Videos<br/>[Playlist.jsx]"]
  node_search["Search Form<br/>[Search.jsx]"]
  node_searchresults["Search Results<br/>[SearchGet.jsx]"]
  node_video["Video Page<br/>[Video.jsx]"]
  node_videodata["Video Details<br/>[VideoGet.jsx]"]
end

subgraph group_identity["Identity"]
  node_register["Registration<br/>[Register.jsx]"]
  node_login["Login<br/>[Login.jsx]"]
  node_protection["Route Protection<br/>[ProtectedRoute.jsx]"]
  node_firebaseauth["Firebase Auth Setup"]
end

subgraph group_saved["Watchlist"]
  node_watchcontext["Watchlist State"]
  node_watchbutton["Save Video Control"]
  node_watchlist["Watchlist Page<br/>[Watchlist.jsx]"]
end

node_visitor(("Visitor"))
node_youtube["YouTube Data API"]
node_firebase["Firebase Authentication"]
node_firestore[("Firestore Watchlist")]

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_channel
node_app -->|"routes to"| node_search
node_app -->|"routes to"| node_video
node_app -->|"protects and routes"| node_watchlist
node_app -->|"routes to"| node_register
node_app -->|"routes to"| node_login
node_app -->|"loads channels"| node_channeldata
node_app -->|"provides state"| node_watchcontext
node_channeldata -.->|"fetches channels"| node_youtube
node_channel -->|"uses"| node_playlists
node_channel -->|"uses"| node_playlistvideos
node_playlistvideos -->|"fetches playlist videos"| node_youtube
node_search -->|"renders results"| node_searchresults
node_searchresults -->|"searches videos"| node_youtube
node_video -->|"renders details"| node_videodata
node_videodata -->|"fetches details"| node_youtube
node_register -->|"uses auth"| node_firebaseauth
node_login -->|"uses auth"| node_firebaseauth
node_protection -->|"checks auth"| node_firebaseauth
node_header -->|"observes and signs out"| node_firebaseauth
node_firebaseauth -.->|"configures"| node_firebase
node_watchlist -->|"reads and syncs"| node_watchcontext
node_watchbutton -->|"toggles saved video"| node_watchcontext
node_watchcontext -->|"checks current user"| node_firebaseauth
node_watchcontext -->|"reads and writes"| node_firestore
node_watchcontext -->|"observes auth state"| node_firebase

click node_app "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/App.jsx"
click node_header "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Header.jsx"
click node_footer "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Footer.jsx"
click node_home "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Home.jsx"
click node_channel "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Channel.jsx"
click node_channeldata "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/YoutubeGET.jsx"
click node_playlists "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/ChannelPage/PlaylistGet.jsx"
click node_playlistvideos "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/ChannelPage/Playlist.jsx"
click node_search "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Search.jsx"
click node_searchresults "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/SearchPage/SearchGet.jsx"
click node_video "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Video.jsx"
click node_videodata "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/VideoPage/VideoGet.jsx"
click node_register "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/AuthPages/Register.jsx"
click node_login "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/AuthPages/Login.jsx"
click node_protection "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/AuthPages/ProtectedRoute.jsx"
click node_firebaseauth "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/Authentification.js"
click node_watchcontext "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx"
click node_watchbutton "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Context/WatchLaterButton.jsx"
click node_watchlist "https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Watchlist.jsx"

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_header,node_footer toneBlue
class node_home,node_channel,node_channeldata,node_playlists,node_playlistvideos,node_search,node_searchresults,node_video,node_videodata,node_firestore toneAmber
class node_register,node_login,node_protection,node_firebaseauth,node_youtube toneMint
class node_watchcontext,node_watchbutton,node_watchlist toneRose
class node_visitor,node_firebase toneIndigo
```

## Components

### Application

- [App and Routes](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/App.jsx): `VideoConf-Hub/src/App.jsx`
- [Navigation Header](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Header.jsx): `VideoConf-Hub/src/Components/Header.jsx`
- [Footer](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Footer.jsx): `VideoConf-Hub/src/Components/Footer.jsx`

### YouTube Discovery

- [Channel Home](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Home.jsx): `VideoConf-Hub/src/Components/Pages/Home.jsx`
- [Channel Page](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Channel.jsx): `VideoConf-Hub/src/Components/Pages/Channel.jsx`
- [Channel Loader](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/YoutubeGET.jsx): `VideoConf-Hub/src/Components/YoutubeGET.jsx`
- [Playlist Listing](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/ChannelPage/PlaylistGet.jsx): `VideoConf-Hub/src/Components/Pages/ChannelPage/PlaylistGet.jsx`
- [Playlist Videos](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/ChannelPage/Playlist.jsx): `VideoConf-Hub/src/Components/Pages/ChannelPage/Playlist.jsx`
- [Search Form](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Search.jsx): `VideoConf-Hub/src/Components/Pages/Search.jsx`
- [Search Results](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/SearchPage/SearchGet.jsx): `VideoConf-Hub/src/Components/Pages/SearchPage/SearchGet.jsx`
- [Video Page](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Video.jsx): `VideoConf-Hub/src/Components/Pages/Video.jsx`
- [Video Details](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/VideoPage/VideoGet.jsx): `VideoConf-Hub/src/Components/Pages/VideoPage/VideoGet.jsx`

### Identity

- [Registration](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/AuthPages/Register.jsx): `VideoConf-Hub/src/Firebase/AuthPages/Register.jsx`
- [Login](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/AuthPages/Login.jsx): `VideoConf-Hub/src/Firebase/AuthPages/Login.jsx`
- [Route Protection](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/AuthPages/ProtectedRoute.jsx): `VideoConf-Hub/src/Firebase/AuthPages/ProtectedRoute.jsx`
- [Firebase Auth Setup](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Firebase/Authentification.js): `VideoConf-Hub/src/Firebase/Authentification.js`

### Watchlist

- [Watchlist State](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx): `VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx`
- [Save Video Control](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Context/WatchLaterButton.jsx): `VideoConf-Hub/src/Components/Context/WatchLaterButton.jsx`
- [Watchlist Page](https://github.com/ptinoah/videoconf-hub/blob/main/VideoConf-Hub/src/Components/Pages/Watchlist.jsx): `VideoConf-Hub/src/Components/Pages/Watchlist.jsx`

### Other components

- **Visitor**
- **YouTube Data API**
- **Firebase Authentication**
- **Firestore Watchlist**

## Connections

- Visitor → App and Routes: opens
- App and Routes → Navigation Header: renders (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Footer: renders (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Channel Home: routes to (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Channel Page: routes to (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Search Form: routes to (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Video Page: routes to (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Watchlist Page: protects and routes (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Registration: routes to (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Login: routes to (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Channel Loader: loads channels (evidence: `VideoConf-Hub/src/App.jsx`)
- App and Routes → Watchlist State: provides state (evidence: `VideoConf-Hub/src/App.jsx`)
- Channel Loader → YouTube Data API: fetches channels (evidence: `README.md`)
- Channel Page → Playlist Listing: uses (evidence: `VideoConf-Hub/src/Components/Pages/Channel.jsx`)
- Channel Page → Playlist Videos: uses (evidence: `VideoConf-Hub/src/Components/Pages/Channel.jsx`)
- Playlist Videos → YouTube Data API: fetches playlist videos (evidence: `VideoConf-Hub/src/Components/Pages/ChannelPage/Playlist.jsx`)
- Search Form → Search Results: renders results (evidence: `VideoConf-Hub/src/Components/Pages/Search.jsx`)
- Search Results → YouTube Data API: searches videos (evidence: `VideoConf-Hub/src/Components/Pages/SearchPage/SearchGet.jsx`)
- Video Page → Video Details: renders details (evidence: `VideoConf-Hub/src/Components/Pages/Video.jsx`)
- Video Details → YouTube Data API: fetches details (evidence: `VideoConf-Hub/src/Components/Pages/VideoPage/VideoGet.jsx`)
- Registration → Firebase Auth Setup: uses auth (evidence: `VideoConf-Hub/src/Firebase/AuthPages/Register.jsx`)
- Login → Firebase Auth Setup: uses auth (evidence: `VideoConf-Hub/src/Firebase/AuthPages/Login.jsx`)
- Route Protection → Firebase Auth Setup: checks auth (evidence: `VideoConf-Hub/src/Firebase/AuthPages/ProtectedRoute.jsx`)
- Navigation Header → Firebase Auth Setup: observes and signs out (evidence: `VideoConf-Hub/src/Components/Header.jsx`)
- Firebase Auth Setup → Firebase Authentication: configures (evidence: `VideoConf-Hub/src/Firebase/Authentification.js`)
- Watchlist Page → Watchlist State: reads and syncs (evidence: `VideoConf-Hub/src/Components/Pages/Watchlist.jsx`)
- Save Video Control → Watchlist State: toggles saved video (evidence: `VideoConf-Hub/src/Components/Context/WatchLaterButton.jsx`)
- Watchlist State → Firebase Auth Setup: checks current user (evidence: `VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx`)
- Watchlist State → Firestore Watchlist: reads and writes (evidence: `VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx`)
- Watchlist State → Firebase Authentication: observes auth state (evidence: `VideoConf-Hub/src/Components/Context/WatchLaterContext.jsx`)
