# devhamzz/youtube-clone architecture

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

- Interactive diagram: https://gitdiagram.com/devhamzz/youtube-clone
- Repository: https://github.com/devhamzz/youtube-clone

## Overview

This is a small, static YouTube-style browsing mockup. The visible workflow is loading a hard-coded video catalog into a feed of cards, with category selection and a collapsible sidebar; thumbnail and avatar URLs are loaded from external image services. The sampled JavaScript supports these interactions, but the HTML and CSS were not sampled, so their structure and styling details are not inferred. No video playback, search, backend, or persistent data is evidenced.

Main entry points: [`my.js`](https://github.com/devhamzz/youtube-clone/blob/main/my.js) (Video feed), [`my youtube.html`](https://github.com/devhamzz/youtube-clone/blob/main/my%20youtube.html) (Page DOM)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_viewer(("Viewer"))
node_page["Page DOM<br/>[my youtube.html]"]
node_catalog["Video catalog<br/>[my.js]"]
node_feed["Video feed<br/>[my.js]"]
node_navigation["Navigation controls<br/>[my.js]"]
node_image_hosts["Image hosts"]

node_viewer -->|"clicks controls"| node_navigation
node_navigation -->|"toggles sidebar"| node_page
node_catalog -->|"renders cards"| node_feed
node_viewer -->|"selects category"| node_feed
node_feed -->|"loads images"| node_image_hosts

click node_page "https://github.com/devhamzz/youtube-clone/blob/main/my%20youtube.html"
click node_catalog "https://github.com/devhamzz/youtube-clone/blob/main/my.js"
click node_feed "https://github.com/devhamzz/youtube-clone/blob/main/my.js"
click node_navigation "https://github.com/devhamzz/youtube-clone/blob/main/my.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_viewer toneBlue
class node_page,node_catalog,node_feed,node_navigation toneTeal
class node_image_hosts toneIndigo
```

## Components

### Other components

- **Viewer**
- [Page DOM](https://github.com/devhamzz/youtube-clone/blob/main/my%20youtube.html): `my youtube.html`
- [Video catalog](https://github.com/devhamzz/youtube-clone/blob/main/my.js): `my.js`
- [Video feed](https://github.com/devhamzz/youtube-clone/blob/main/my.js): `my.js`
- [Navigation controls](https://github.com/devhamzz/youtube-clone/blob/main/my.js): `my.js`
- **Image hosts**

## Connections

- Viewer → Navigation controls: clicks controls (evidence: `my.js`)
- Navigation controls → Page DOM: toggles sidebar (evidence: `my.js`)
- Video catalog → Video feed: renders cards (evidence: `my.js`)
- Viewer → Video feed: selects category (evidence: `my.js`)
- Video feed → Image hosts: loads images (evidence: `my.js`)
