# vavabrahamyan/videolab architecture

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

- Interactive diagram: https://gitdiagram.com/vavabrahamyan/videolab
- Repository: https://github.com/vavabrahamyan/videolab

## Overview

VideoLab is a browser-only video-player application. The principal flow is browser startup, routing to the player page, then using the player UI to load and control a video; player state and media operations are handled by a dedicated service. The README also lists planned library, persistence, theme, and responsive capabilities, shown separately as roadmap subsystems. Source excerpts establish the app wiring and player-to-state calls; the player template and some roadmap implementations were not sampled.

Main entry points: [`src/app/features/components/video-player/video-player.component.ts`](https://github.com/vavabrahamyan/videolab/blob/main/src/app/features/components/video-player/video-player.component.ts) (Video player), [`src/app/pages/player/player-page.component.ts`](https://github.com/vavabrahamyan/videolab/blob/main/src/app/pages/player/player-page.component.ts) (Player page), [`src/app/app.routes.ts`](https://github.com/vavabrahamyan/videolab/blob/main/src/app/app.routes.ts) (App routes), [`src/main.ts`](https://github.com/vavabrahamyan/videolab/blob/main/src/main.ts) (App bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_config["App configuration<br/>[app.config.ts]"]
  node_shell["Root shell<br/>[app.component.ts]"]
  node_routes["App routes<br/>[app.routes.ts]"]
  node_notfound["Not-found page"]
end

subgraph group_playback["Video playback"]
  node_playerpage["Player page"]
  node_player["Video player"]
  node_state["Player state"]
  node_media["Browser media"]
  node_videogular["Videogular modules"]
end

subgraph group_roadmap["Planned capabilities"]
  node_library["Video library"]
  node_persistence[("Watch persistence")]
  node_themes["Theme toggle"]
  node_responsive["Responsive UI"]
end

node_viewer(("Viewer"))

node_viewer -->|"opens app"| node_bootstrap
node_bootstrap -->|"bootstraps"| node_shell
node_bootstrap -->|"uses config"| node_config
node_config -->|"provides routes"| node_routes
node_shell -->|"hosts outlet"| node_routes
node_routes -->|"loads player route"| node_playerpage
node_routes -->|"loads fallback"| node_notfound
node_playerpage -->|"composes player"| node_player
node_player -->|"delegates actions"| node_state
node_state -->|"controls media"| node_media
node_player -->|"uses modules"| node_videogular
node_playerpage -.->|"planned capability"| node_library
node_playerpage -.->|"planned capability"| node_persistence
node_player -.->|"planned capability"| node_themes
node_player -.->|"planned capability"| node_responsive

click node_bootstrap "https://github.com/vavabrahamyan/videolab/blob/main/src/main.ts"
click node_config "https://github.com/vavabrahamyan/videolab/blob/main/src/app/app.config.ts"
click node_shell "https://github.com/vavabrahamyan/videolab/blob/main/src/app/app.component.ts"
click node_routes "https://github.com/vavabrahamyan/videolab/blob/main/src/app/app.routes.ts"
click node_playerpage "https://github.com/vavabrahamyan/videolab/blob/main/src/app/pages/player/player-page.component.ts"
click node_player "https://github.com/vavabrahamyan/videolab/blob/main/src/app/features/components/video-player/video-player.component.ts"
click node_state "https://github.com/vavabrahamyan/videolab/blob/main/src/app/features/services/video-player-state.service.ts"
click node_notfound "https://github.com/vavabrahamyan/videolab/blob/main/src/app/pages/not-found/not-found-page.component.ts"
click node_library "https://github.com/vavabrahamyan/videolab/tree/main/src/app/pages/player"
click node_persistence "https://github.com/vavabrahamyan/videolab/tree/main/src/app/features/services"
click node_themes "https://github.com/vavabrahamyan/videolab/tree/main/src/app"
click node_responsive "https://github.com/vavabrahamyan/videolab/tree/main/src/app/features/components/video-player"

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_bootstrap,node_config,node_shell,node_routes,node_notfound,node_viewer toneBlue
class node_playerpage,node_player,node_state,node_media,node_videogular toneAmber
class node_library,node_persistence,node_themes,node_responsive toneMint
```

## Components

### App shell

- [App bootstrap](https://github.com/vavabrahamyan/videolab/blob/main/src/main.ts): `src/main.ts`
- [App configuration](https://github.com/vavabrahamyan/videolab/blob/main/src/app/app.config.ts): `src/app/app.config.ts`
- [Root shell](https://github.com/vavabrahamyan/videolab/blob/main/src/app/app.component.ts): `src/app/app.component.ts`
- [App routes](https://github.com/vavabrahamyan/videolab/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Not-found page](https://github.com/vavabrahamyan/videolab/blob/main/src/app/pages/not-found/not-found-page.component.ts): `src/app/pages/not-found/not-found-page.component.ts`

### Video playback

- [Player page](https://github.com/vavabrahamyan/videolab/blob/main/src/app/pages/player/player-page.component.ts): `src/app/pages/player/player-page.component.ts`
- [Video player](https://github.com/vavabrahamyan/videolab/blob/main/src/app/features/components/video-player/video-player.component.ts): `src/app/features/components/video-player/video-player.component.ts`
- [Player state](https://github.com/vavabrahamyan/videolab/blob/main/src/app/features/services/video-player-state.service.ts): `src/app/features/services/video-player-state.service.ts`
- **Browser media**
- **Videogular modules**

### Planned capabilities

- [Video library](https://github.com/vavabrahamyan/videolab/tree/main/src/app/pages/player): `src/app/pages/player`
- [Watch persistence](https://github.com/vavabrahamyan/videolab/tree/main/src/app/features/services): `src/app/features/services`
- [Theme toggle](https://github.com/vavabrahamyan/videolab/tree/main/src/app): `src/app`
- [Responsive UI](https://github.com/vavabrahamyan/videolab/tree/main/src/app/features/components/video-player): `src/app/features/components/video-player`

### Other components

- **Viewer**

## Connections

- Viewer → App bootstrap: opens app (evidence: `src/main.ts`)
- App bootstrap → Root shell: bootstraps (evidence: `src/main.ts`)
- App bootstrap → App configuration: uses config (evidence: `src/main.ts`)
- App configuration → App routes: provides routes (evidence: `src/app/app.config.ts`)
- Root shell → App routes: hosts outlet (evidence: `src/app/app.component.ts`)
- App routes → Player page: loads player route (evidence: `src/app/app.routes.ts`)
- App routes → Not-found page: loads fallback (evidence: `src/app/app.routes.ts`)
- Player page → Video player: composes player (evidence: `src/app/pages/player/player-page.component.ts`)
- Video player → Player state: delegates actions (evidence: `src/app/features/components/video-player/video-player.component.ts`)
- Player state → Browser media: controls media (evidence: `src/app/features/services/video-player-state.service.ts`)
- Video player → Videogular modules: uses modules (evidence: `src/app/features/components/video-player/video-player.component.ts`)
- Player page → Video library: planned capability (evidence: `README.md`)
- Player page → Watch persistence: planned capability (evidence: `README.md`)
- Video player → Theme toggle: planned capability (evidence: `README.md`)
- Video player → Responsive UI: planned capability (evidence: `README.md`)
