# roeurbnavy/netflix architecture

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

- Interactive diagram: https://gitdiagram.com/roeurbnavy/netflix
- Repository: https://github.com/roeurbnavy/netflix

## Overview

This is a Vue movie-discovery streaming-service clone. Users browse movie categories, search titles, open movie details, and play available trailers; sign-in and pricing-plan displays are additional product areas. The documented data path is the movie view and UI through the Pinia movie store to the TMDB client and API. Authentication state is held separately in the auth store and browser local storage. Some component relationships are supported by the SOURCE INDEX or README; unsampled implementation details are not inferred.

Main entry points: [`src/views/Movies.vue`](https://github.com/roeurbnavy/netflix/blob/main/src/views/Movies.vue) (Movies Page), [`src/stores/movies.ts`](https://github.com/roeurbnavy/netflix/blob/main/src/stores/movies.ts) (Movie State), [`src/router/index.ts`](https://github.com/roeurbnavy/netflix/blob/main/src/router/index.ts) (Route Map), [`src/stores/auth.ts`](https://github.com/roeurbnavy/netflix/blob/main/src/stores/auth.ts) (Auth State)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Shell"]
  node_main["App Bootstrap<br/>[main.ts]"]
  node_appview["Application View<br/>[App.vue]"]
  node_router["Route Map<br/>[index.ts]"]
end

subgraph group_discovery["Movie Discovery"]
  node_moviesview["Movies Page<br/>[Movies.vue]"]
  node_hero["Featured Hero<br/>[Hero.vue]"]
  node_navbar["Navigation Bar<br/>[Navbar.vue]"]
  node_movierow["Category Rows<br/>[MovieRow.vue]"]
  node_moviecard["Movie Card<br/>[MovieCard.vue]"]
  node_detail["Movie Details"]
  node_pricing["Plans Display<br/>[PricingPlans.vue]"]
end

subgraph group_identity["Sign-In Experience"]
  node_authmodal["Sign-In Modal<br/>[AuthModal.vue]"]
  node_signin["Sign-In Page<br/>[SignIn.vue]"]
  node_authstore["Auth State<br/>[auth.ts]"]
  node_browserstorage[("Browser Storage")]
end

subgraph group_data["Movie Data"]
  node_moviestore["Movie State<br/>[movies.ts]"]
  node_tmdbclient["TMDB Client<br/>[tmdb.ts]"]
end

node_visitor(("Visitor"))
node_tmdb["TMDB API"]
node_youtube["YouTube Player"]

node_main -->|"mounts"| node_appview
node_main -->|"installs"| node_router
node_appview -->|"renders routes"| node_router
node_visitor -->|"navigates"| node_router
node_router -->|"routes to"| node_moviesview
node_router -->|"routes to"| node_signin
node_moviesview -->|"loads categories"| node_moviestore
node_moviesview -->|"renders"| node_hero
node_moviesview -->|"renders"| node_navbar
node_moviesview -->|"renders"| node_movierow
node_moviesview -->|"renders"| node_moviecard
node_moviesview -->|"renders"| node_pricing
node_moviesview -->|"renders"| node_authmodal
node_moviesview -->|"renders"| node_detail
node_hero -->|"reads state"| node_moviestore
node_navbar -->|"uses state"| node_moviestore
node_navbar -->|"uses state"| node_authstore
node_movierow -->|"renders"| node_moviecard
node_moviecard -->|"opens details"| node_moviestore
node_detail -->|"requests trailer"| node_moviestore
node_authmodal -->|"submits sign-in"| node_authstore
node_signin -->|"submits sign-in"| node_authstore
node_pricing -->|"uses state"| node_authstore
node_authstore -->|"persists session"| node_browserstorage
node_moviestore -->|"requests movie data"| node_tmdbclient
node_tmdbclient -->|"fetches data"| node_tmdb
node_tmdbclient -.->|"provides trailer key"| node_youtube

click node_main "https://github.com/roeurbnavy/netflix/blob/main/src/main.ts"
click node_appview "https://github.com/roeurbnavy/netflix/blob/main/src/App.vue"
click node_router "https://github.com/roeurbnavy/netflix/blob/main/src/router/index.ts"
click node_moviesview "https://github.com/roeurbnavy/netflix/blob/main/src/views/Movies.vue"
click node_hero "https://github.com/roeurbnavy/netflix/blob/main/src/components/Hero.vue"
click node_navbar "https://github.com/roeurbnavy/netflix/blob/main/src/components/Navbar.vue"
click node_movierow "https://github.com/roeurbnavy/netflix/blob/main/src/components/MovieRow.vue"
click node_moviecard "https://github.com/roeurbnavy/netflix/blob/main/src/components/MovieCard.vue"
click node_detail "https://github.com/roeurbnavy/netflix/blob/main/src/components/MovieDetailModal.vue"
click node_pricing "https://github.com/roeurbnavy/netflix/blob/main/src/components/PricingPlans.vue"
click node_authmodal "https://github.com/roeurbnavy/netflix/blob/main/src/components/AuthModal.vue"
click node_signin "https://github.com/roeurbnavy/netflix/blob/main/src/views/SignIn.vue"
click node_authstore "https://github.com/roeurbnavy/netflix/blob/main/src/stores/auth.ts"
click node_moviestore "https://github.com/roeurbnavy/netflix/blob/main/src/stores/movies.ts"
click node_tmdbclient "https://github.com/roeurbnavy/netflix/blob/main/src/services/tmdb.ts"

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_main,node_appview,node_router toneBlue
class node_moviesview,node_hero,node_navbar,node_movierow,node_moviecard,node_detail,node_pricing toneAmber
class node_authmodal,node_signin,node_authstore,node_browserstorage,node_tmdb toneMint
class node_moviestore,node_tmdbclient toneRose
class node_visitor,node_youtube toneIndigo
```

## Components

### Application Shell

- [App Bootstrap](https://github.com/roeurbnavy/netflix/blob/main/src/main.ts): `src/main.ts`
- [Application View](https://github.com/roeurbnavy/netflix/blob/main/src/App.vue): `src/App.vue`
- [Route Map](https://github.com/roeurbnavy/netflix/blob/main/src/router/index.ts): `src/router/index.ts`

### Movie Discovery

- [Movies Page](https://github.com/roeurbnavy/netflix/blob/main/src/views/Movies.vue): `src/views/Movies.vue`
- [Featured Hero](https://github.com/roeurbnavy/netflix/blob/main/src/components/Hero.vue): `src/components/Hero.vue`
- [Navigation Bar](https://github.com/roeurbnavy/netflix/blob/main/src/components/Navbar.vue): `src/components/Navbar.vue`
- [Category Rows](https://github.com/roeurbnavy/netflix/blob/main/src/components/MovieRow.vue): `src/components/MovieRow.vue`
- [Movie Card](https://github.com/roeurbnavy/netflix/blob/main/src/components/MovieCard.vue): `src/components/MovieCard.vue`
- [Movie Details](https://github.com/roeurbnavy/netflix/blob/main/src/components/MovieDetailModal.vue): `src/components/MovieDetailModal.vue`
- [Plans Display](https://github.com/roeurbnavy/netflix/blob/main/src/components/PricingPlans.vue): `src/components/PricingPlans.vue`

### Sign-In Experience

- [Sign-In Modal](https://github.com/roeurbnavy/netflix/blob/main/src/components/AuthModal.vue): `src/components/AuthModal.vue`
- [Sign-In Page](https://github.com/roeurbnavy/netflix/blob/main/src/views/SignIn.vue): `src/views/SignIn.vue`
- [Auth State](https://github.com/roeurbnavy/netflix/blob/main/src/stores/auth.ts): `src/stores/auth.ts`
- **Browser Storage**

### Movie Data

- [Movie State](https://github.com/roeurbnavy/netflix/blob/main/src/stores/movies.ts): `src/stores/movies.ts`
- [TMDB Client](https://github.com/roeurbnavy/netflix/blob/main/src/services/tmdb.ts): `src/services/tmdb.ts`

### Other components

- **Visitor**
- **TMDB API**
- **YouTube Player**

## Connections

- App Bootstrap → Application View: mounts (evidence: `src/main.ts`)
- App Bootstrap → Route Map: installs (evidence: `src/main.ts`)
- Application View → Route Map: renders routes (evidence: `src/App.vue`)
- Visitor → Route Map: navigates (evidence: `src/router/index.ts`)
- Route Map → Movies Page: routes to (evidence: `src/router/index.ts`)
- Route Map → Sign-In Page: routes to (evidence: `src/router/index.ts`)
- Movies Page → Movie State: loads categories (evidence: `src/views/Movies.vue`)
- Movies Page → Featured Hero: renders (evidence: `src/views/Movies.vue`)
- Movies Page → Navigation Bar: renders (evidence: `src/views/Movies.vue`)
- Movies Page → Category Rows: renders (evidence: `src/views/Movies.vue`)
- Movies Page → Movie Card: renders (evidence: `src/views/Movies.vue`)
- Movies Page → Plans Display: renders (evidence: `src/views/Movies.vue`)
- Movies Page → Sign-In Modal: renders (evidence: `src/views/Movies.vue`)
- Movies Page → Movie Details: renders (evidence: `src/views/Movies.vue`)
- Featured Hero → Movie State: reads state (evidence: `src/components/Hero.vue`)
- Navigation Bar → Movie State: uses state (evidence: `src/components/Navbar.vue`)
- Navigation Bar → Auth State: uses state (evidence: `src/components/Navbar.vue`)
- Category Rows → Movie Card: renders (evidence: `src/components/MovieRow.vue`)
- Movie Card → Movie State: opens details (evidence: `src/components/MovieCard.vue`)
- Movie Details → Movie State: requests trailer (evidence: `src/components/MovieDetailModal.vue`)
- Sign-In Modal → Auth State: submits sign-in (evidence: `src/components/AuthModal.vue`)
- Sign-In Page → Auth State: submits sign-in (evidence: `src/views/SignIn.vue`)
- Plans Display → Auth State: uses state (evidence: `src/components/PricingPlans.vue`)
- Auth State → Browser Storage: persists session (evidence: `src/stores/auth.ts`)
- Movie State → TMDB Client: requests movie data (evidence: `src/stores/movies.ts`)
- TMDB Client → TMDB API: fetches data (evidence: `src/services/tmdb.ts`)
- TMDB Client → YouTube Player: provides trailer key (evidence: `README.md`)
