# letslearndevops9/hotstar-clone architecture

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

- Interactive diagram: https://gitdiagram.com/letslearndevops9/hotstar-clone
- Repository: https://github.com/letslearndevops9/hotstar-clone

## Overview

This is a React Hotstar-style streaming-catalog clone. The browser entry mounts the app, which composes navigation, a featured banner, catalog rows, platform/language/genre artwork, and a footer. Catalog rows receive TMDB endpoint paths from the app, request movie data through an Axios client, and render poster and detail cards. The README identifies the project as a clone but documents no further product behavior; the graph reflects the sampled source and does not assume playback or subscription functionality.

Main entry points: [`src/App.js`](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/App.js) (Page composition), [`src/index.js`](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/index.js) (React entry), [`src/components/Row.jsx`](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Row.jsx) (Movie rows), [`src/tmdbAxiosInstance.js`](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/tmdbAxiosInstance.js) (TMDB client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_mount["React entry<br/>[index.js]"]
  node_app["Page composition<br/>[App.js]"]
end

subgraph group_presentation["Catalog presentation"]
  node_navigation["Navigation<br/>[Nav.jsx]"]
  node_nav_bar["Icon bar<br/>[NavBar.jsx]"]
  node_banner["Featured banner<br/>[Banner.jsx]"]
  node_platforms["Platform artwork<br/>[Platforms.jsx]"]
  node_languages["Language artwork<br/>[Language.jsx]"]
  node_genres["Genre artwork<br/>[Genre.jsx]"]
  node_footer["Footer links<br/>[Footer.jsx]"]
end

subgraph group_catalog["Catalog data"]
  node_rows["Movie rows<br/>[Row.jsx]"]
  node_requests["Catalog endpoints<br/>[request.jsx]"]
  node_axios["TMDB client"]
end

subgraph group_external["External service"]
  node_tmdb["TMDB API"]
end

node_browser(("Browser"))

node_browser -.->|"opens"| node_mount
node_mount -->|"renders"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_nav_bar
node_app -->|"renders"| node_banner
node_app -->|"renders"| node_rows
node_app -->|"renders"| node_platforms
node_app -->|"renders"| node_languages
node_app -->|"renders"| node_genres
node_app -->|"renders"| node_footer
node_app -->|"selects endpoints"| node_requests
node_rows -->|"requests data"| node_axios
node_axios -->|"sends HTTP"| node_tmdb

click node_mount "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/index.js"
click node_app "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/App.js"
click node_navigation "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Nav.jsx"
click node_nav_bar "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/NavBar.jsx"
click node_banner "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Banner.jsx"
click node_platforms "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Platforms.jsx"
click node_languages "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Language.jsx"
click node_genres "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Genre.jsx"
click node_footer "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Footer.jsx"
click node_rows "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Row.jsx"
click node_requests "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/request.jsx"
click node_axios "https://github.com/letslearndevops9/hotstar-clone/blob/main/src/tmdbAxiosInstance.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_mount,node_app,node_browser toneBlue
class node_navigation,node_nav_bar,node_banner,node_platforms,node_languages,node_genres,node_footer toneAmber
class node_rows,node_requests,node_axios toneMint
class node_tmdb toneRose
```

## Components

### App entry

- [React entry](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/index.js): `src/index.js`
- [Page composition](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/App.js): `src/App.js`

### Catalog presentation

- [Navigation](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Nav.jsx): `src/components/Nav.jsx`
- [Icon bar](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/NavBar.jsx): `src/components/NavBar.jsx`
- [Featured banner](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Banner.jsx): `src/components/Banner.jsx`
- [Platform artwork](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Platforms.jsx): `src/components/Platforms.jsx`
- [Language artwork](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Language.jsx): `src/components/Language.jsx`
- [Genre artwork](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Genre.jsx): `src/components/Genre.jsx`
- [Footer links](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`

### Catalog data

- [Movie rows](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/components/Row.jsx): `src/components/Row.jsx`
- [Catalog endpoints](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/request.jsx): `src/request.jsx`
- [TMDB client](https://github.com/letslearndevops9/hotstar-clone/blob/main/src/tmdbAxiosInstance.js): `src/tmdbAxiosInstance.js`

### External service

- **TMDB API**

### Other components

- **Browser**

## Connections

- Browser → React entry: opens
- React entry → Page composition: renders (evidence: `src/index.js`)
- Page composition → Navigation: renders (evidence: `src/App.js`)
- Page composition → Icon bar: renders (evidence: `src/App.js`)
- Page composition → Featured banner: renders (evidence: `src/App.js`)
- Page composition → Movie rows: renders (evidence: `src/App.js`)
- Page composition → Platform artwork: renders (evidence: `src/App.js`)
- Page composition → Language artwork: renders (evidence: `src/App.js`)
- Page composition → Genre artwork: renders (evidence: `src/App.js`)
- Page composition → Footer links: renders (evidence: `src/App.js`)
- Page composition → Catalog endpoints: selects endpoints (evidence: `src/App.js`)
- Movie rows → TMDB client: requests data (evidence: `src/components/Row.jsx`)
- TMDB client → TMDB API: sends HTTP (evidence: `src/tmdbAxiosInstance.js`)
