# rohankumarshah696/cinevault---movie-note architecture

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

- Interactive diagram: https://gitdiagram.com/rohankumarshah696/cinevault---movie-note
- Repository: https://github.com/rohankumarshah696/cinevault---movie-note

## Overview

CINEVAULT is a React movie-discovery app: users browse or search TMDB titles, open movie details and trailers, and save titles to a local library. Its principal flow runs from routed pages through discovery/search or movie-card interactions to TMDB, with watchlist state persisted in Local Storage. The graph includes the documented trailer, recommendation, and TV-discovery features; their source was not fully sampled, so those links rely on README statements where applicable.

Main entry points: [`src/media/mediaApi.js`](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/media/mediaApi.js) (TMDB API client), [`src/main.jsx`](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/main.jsx) (Router and app entry), [`src/Components/pages/HomePage.jsx`](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/pages/HomePage.jsx) (Home page), [`src/searchMovies/MovieGrid.jsx`](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/searchMovies/MovieGrid.jsx) (Search results)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_entry["Router and app entry<br/>[main.jsx]"]
  node_shell["Shared app shell<br/>[App.jsx]"]
end

subgraph group_browse["Browse and discover"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_hero["Featured movies<br/>[HeroSection.jsx]"]
  node_trending["Trending titles<br/>[Trending.jsx]"]
  node_popular["Popular titles<br/>[Popular.jsx]"]
  node_discover["Discover filters<br/>[Section.jsx]"]
  node_filtering["Filter and sort<br/>[Checking.js]"]
end

subgraph group_movie["Search and movie details"]
  node_searchinput["Search controls<br/>[SearchInput.jsx]"]
  node_results["Search results<br/>[MovieGrid.jsx]"]
  node_searchcard["Search movie card<br/>[MovieSearch.jsx]"]
  node_details["Movie details and trailer"]
  node_recommendations["Recommendations"]
  node_cards["Movie cards<br/>[MovieCards.jsx]"]
  node_api["TMDB API client<br/>[mediaApi.js]"]
end

subgraph group_library["Library and state"]
  node_searchstate["Search state<br/>[SearchSlice.js]"]
  node_watchbutton["Library action button"]
  node_librarypage["Personal library<br/>[LibSection.jsx]"]
  node_librarycontents["Library contents<br/>[Contents.jsx]"]
  node_watchstate["Watchlist state<br/>[WatchListSlice.js]"]
end

node_user(("Movie fan"))
node_localstorage[("Browser Local Storage")]
node_tmdb[("TMDB")]

node_user -->|"opens app"| node_entry
node_entry -->|"routes through"| node_shell
node_entry -->|"routes to"| node_home
node_entry -->|"routes to"| node_discover
node_entry -->|"routes to"| node_librarypage
node_entry -->|"routes to"| node_results
node_entry -->|"routes to"| node_details
node_shell -.->|"renders"| node_searchinput
node_home -.->|"shows"| node_hero
node_home -.->|"shows"| node_trending
node_home -.->|"shows"| node_popular
node_hero -->|"fetches titles"| node_api
node_trending -->|"fetches titles"| node_api
node_popular -->|"fetches titles"| node_api
node_discover -->|"uses filters"| node_filtering
node_filtering -->|"requests titles"| node_api
node_searchinput -->|"updates state"| node_searchstate
node_results -->|"reads query"| node_searchstate
node_results -->|"searches titles"| node_api
node_results -->|"renders results"| node_searchcard
node_searchcard -->|"fetches trailer"| node_api
node_cards -->|"fetches trailer"| node_api
node_details -.->|"loads details"| node_api
node_recommendations -.->|"loads recommendations"| node_api
node_cards -->|"renders action"| node_watchbutton
node_watchbutton -->|"dispatches actions"| node_watchstate
node_librarypage -->|"renders contents"| node_librarycontents
node_librarycontents -->|"renders titles"| node_cards
node_librarypage -->|"reads saved titles"| node_watchstate
node_watchstate -->|"reads and writes"| node_localstorage
node_api -->|"requests media data"| node_tmdb

click node_entry "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/main.jsx"
click node_shell "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/App.jsx"
click node_home "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/pages/HomePage.jsx"
click node_hero "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/HeroSetup/HeroSection.jsx"
click node_trending "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Trending.jsx"
click node_popular "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Popular.jsx"
click node_discover "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Discover/Section.jsx"
click node_filtering "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Discover/Checking.js"
click node_searchinput "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Header/SearchInput.jsx"
click node_searchstate "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/store/SearchSlice.js"
click node_results "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/searchMovies/MovieGrid.jsx"
click node_searchcard "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/searchMovies/MovieSearch.jsx"
click node_details "https://github.com/rohankumarshah696/cinevault---movie-note/tree/main/src/Components/MovieTrailer"
click node_recommendations "https://github.com/rohankumarshah696/cinevault---movie-note/tree/main/src/Components/MovieTrailer"
click node_cards "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/MoviesSetup/MovieCards.jsx"
click node_watchbutton "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/WatchListButton.jsx"
click node_librarypage "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Library/LibSection.jsx"
click node_librarycontents "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Library/Contents.jsx"
click node_watchstate "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/store/WatchListSlice.js"
click node_api "https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/media/mediaApi.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_entry,node_shell toneBlue
class node_home,node_hero,node_trending,node_popular,node_discover,node_filtering,node_localstorage,node_tmdb toneAmber
class node_searchinput,node_results,node_searchcard,node_details,node_recommendations,node_cards,node_api toneMint
class node_searchstate,node_watchbutton,node_librarypage,node_librarycontents,node_watchstate toneRose
class node_user toneIndigo
```

## Components

### Application shell

- [Router and app entry](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/main.jsx): `src/main.jsx`
- [Shared app shell](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/App.jsx): `src/App.jsx`

### Browse and discover

- [Home page](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/pages/HomePage.jsx): `src/Components/pages/HomePage.jsx`
- [Featured movies](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/HeroSetup/HeroSection.jsx): `src/Components/HeroSetup/HeroSection.jsx`
- [Trending titles](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Trending.jsx): `src/Components/Trending.jsx`
- [Popular titles](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Popular.jsx): `src/Components/Popular.jsx`
- [Discover filters](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Discover/Section.jsx): `src/Discover/Section.jsx`
- [Filter and sort](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Discover/Checking.js): `src/Discover/Checking.js`

### Search and movie details

- [Search controls](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Header/SearchInput.jsx): `src/Components/Header/SearchInput.jsx`
- [Search results](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/searchMovies/MovieGrid.jsx): `src/searchMovies/MovieGrid.jsx`
- [Search movie card](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/searchMovies/MovieSearch.jsx): `src/searchMovies/MovieSearch.jsx`
- [Movie details and trailer](https://github.com/rohankumarshah696/cinevault---movie-note/tree/main/src/Components/MovieTrailer): `src/Components/MovieTrailer`
- [Recommendations](https://github.com/rohankumarshah696/cinevault---movie-note/tree/main/src/Components/MovieTrailer): `src/Components/MovieTrailer`
- [Movie cards](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/MoviesSetup/MovieCards.jsx): `src/Components/MoviesSetup/MovieCards.jsx`
- [TMDB API client](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/media/mediaApi.js): `src/media/mediaApi.js`

### Library and state

- [Search state](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/store/SearchSlice.js): `src/store/SearchSlice.js`
- [Library action button](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/WatchListButton.jsx): `src/Components/WatchListButton.jsx`
- [Personal library](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Library/LibSection.jsx): `src/Components/Library/LibSection.jsx`
- [Library contents](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/Components/Library/Contents.jsx): `src/Components/Library/Contents.jsx`
- [Watchlist state](https://github.com/rohankumarshah696/cinevault---movie-note/blob/main/src/store/WatchListSlice.js): `src/store/WatchListSlice.js`

### Other components

- **Movie fan**
- **Browser Local Storage**
- **TMDB**

## Connections

- Movie fan → Router and app entry: opens app
- Router and app entry → Shared app shell: routes through (evidence: `src/main.jsx`)
- Router and app entry → Home page: routes to (evidence: `src/main.jsx`)
- Router and app entry → Discover filters: routes to (evidence: `src/main.jsx`)
- Router and app entry → Personal library: routes to (evidence: `src/main.jsx`)
- Router and app entry → Search results: routes to (evidence: `src/main.jsx`)
- Router and app entry → Movie details and trailer: routes to (evidence: `src/main.jsx`)
- Shared app shell → Search controls: renders
- Home page → Featured movies: shows
- Home page → Trending titles: shows
- Home page → Popular titles: shows
- Featured movies → TMDB API client: fetches titles (evidence: `src/Components/HeroSetup/HeroSection.jsx`)
- Trending titles → TMDB API client: fetches titles
- Popular titles → TMDB API client: fetches titles (evidence: `src/Components/Popular.jsx`)
- Discover filters → Filter and sort: uses filters (evidence: `src/Discover/Section.jsx`)
- Filter and sort → TMDB API client: requests titles (evidence: `src/Discover/Checking.js`)
- Search controls → Search state: updates state (evidence: `src/Components/Header/SearchInput.jsx`)
- Search results → Search state: reads query (evidence: `src/searchMovies/MovieGrid.jsx`)
- Search results → TMDB API client: searches titles (evidence: `src/searchMovies/MovieGrid.jsx`)
- Search results → Search movie card: renders results (evidence: `src/searchMovies/MovieGrid.jsx`)
- Search movie card → TMDB API client: fetches trailer (evidence: `src/searchMovies/MovieSearch.jsx`)
- Movie cards → TMDB API client: fetches trailer (evidence: `src/Components/MoviesSetup/MovieCards.jsx`)
- Movie details and trailer → TMDB API client: loads details (evidence: `src/Components/MovieTrailer/Desc.jsx`)
- Recommendations → TMDB API client: loads recommendations (evidence: `src/Components/MovieTrailer/Desc.jsx`)
- Movie cards → Library action button: renders action (evidence: `src/Components/MoviesSetup/MovieCards.jsx`)
- Library action button → Watchlist state: dispatches actions (evidence: `src/Components/WatchListButton.jsx`)
- Personal library → Library contents: renders contents (evidence: `src/Components/Library/LibSection.jsx`)
- Library contents → Movie cards: renders titles (evidence: `src/Components/Library/Contents.jsx`)
- Personal library → Watchlist state: reads saved titles (evidence: `src/Components/Library/LibSection.jsx`)
- Watchlist state → Browser Local Storage: reads and writes (evidence: `src/store/WatchListSlice.js`)
- TMDB API client → TMDB: requests media data (evidence: `src/media/mediaApi.js`)
