# jaswanthg-10/ai_movie_recommendation_project architecture

> Architecture diagram of the GitHub repository jaswanthg-10/ai_movie_recommendation_project, 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/jaswanthg-10/ai_movie_recommendation_project
- Repository: https://github.com/jaswanthg-10/ai_movie_recommendation_project

## Overview

Lumina is a movie-discovery and recommendation web app. A user enters through the app shell, browses or searches its movie catalog, and opens movie details or trailers; recommendation features rank catalog entries by content similarity and query matches. The UI also offers watchlists, history, taste profiles, comparisons, and other discovery tools. The graph follows relationships shown in excerpts or the source index; some listed components were not sampled, so their internal wiring is omitted. The README documents TMDB metadata and poster integration, but the sampled evidence does not establish its runtime caller.

Main entry points: [`src/data/movies.ts`](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/data/movies.ts) (Movie Dataset), [`src/app/page.tsx`](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/app/page.tsx) (App Shell), [`src/lib/recommendEngine.ts`](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/lib/recommendEngine.ts) (Ranking Engine), [`src/components/MovieCard.tsx`](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/MovieCard.tsx) (Movie Cards)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App Experience"]
  node_app["App Shell<br/>[page.tsx]"]
  node_navigation["Navigation<br/>[Sidebar.tsx]"]
  node_header["Header and Search<br/>[Header.tsx]"]
  node_home["Home Dashboard<br/>[HomeDashboard.tsx]"]
end

subgraph group_discovery["Discovery and Recommendations"]
  node_discover["Discover View<br/>[DiscoverView.tsx]"]
  node_chat["Conversational Search<br/>[ChatInterface.tsx]"]
  node_ai_modal["AI Recommendations"]
  node_recommend_api["Recommendation API<br/>[route.ts]"]
  node_engine["Ranking Engine<br/>[recommendEngine.ts]"]
end

subgraph group_catalog["Movie Catalog"]
  node_catalog_data[("Movie Dataset<br/>[movies.ts]")]
  node_movie_card["Movie Cards<br/>[MovieCard.tsx]"]
  node_watchlist["Watchlist<br/>[WatchlistView.tsx]"]
  node_history["Watch History"]
  node_taste["Taste Profile"]
  node_top_rated["Top Rated<br/>[TopRatedView.tsx]"]
end

subgraph group_details["Movie Details and Trailers"]
  node_movie_details["Movie Details"]
  node_trailer_player["Trailer Player"]
  node_trailer_service["Trailer Service<br/>[trailerService.ts]"]
  node_trailer_api["Trailer API<br/>[route.ts]"]
  node_comparison["Movie Comparison"]
end

node_viewer(("Movie Viewer"))
node_tmdb["TMDB"]

node_viewer -->|"opens app"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_header
node_app -->|"renders"| node_home
node_app -->|"renders"| node_discover
node_app -->|"renders"| node_chat
node_app -->|"renders"| node_comparison
node_app -->|"renders"| node_ai_modal
node_chat -->|"ranks queries"| node_engine
node_ai_modal -->|"requests matches"| node_engine
node_recommend_api -->|"ranks requests"| node_engine
node_engine -->|"reads catalog"| node_catalog_data
node_chat -->|"renders results"| node_movie_card
node_ai_modal -->|"renders results"| node_movie_card
node_home -->|"renders movies"| node_movie_card
node_home -->|"reads catalog"| node_catalog_data
node_discover -->|"reads catalog"| node_catalog_data
node_discover -->|"ranks movies"| node_engine
node_movie_details -->|"fetches trailer"| node_trailer_service
node_trailer_player -->|"fetches trailer"| node_trailer_service
node_trailer_service -->|"requests trailer"| node_trailer_api
node_movie_details -->|"finds similar"| node_engine
node_movie_details -->|"reads movie data"| node_catalog_data
node_trailer_player -->|"reads movie data"| node_catalog_data
node_comparison -->|"reads movie data"| node_catalog_data
node_watchlist -->|"reads movie data"| node_catalog_data
node_history -->|"reads movie data"| node_catalog_data
node_top_rated -->|"reads movie data"| node_catalog_data
node_top_rated -->|"renders movies"| node_movie_card
node_tmdb -.->|"provides metadata"| node_catalog_data

click node_app "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/app/page.tsx"
click node_navigation "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/Sidebar.tsx"
click node_header "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/Header.tsx"
click node_home "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/HomeDashboard.tsx"
click node_discover "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/DiscoverView.tsx"
click node_chat "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/ChatInterface.tsx"
click node_ai_modal "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/AiRecommendationModal.tsx"
click node_recommend_api "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/app/api/recommend/route.ts"
click node_engine "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/lib/recommendEngine.ts"
click node_catalog_data "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/data/movies.ts"
click node_movie_card "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/MovieCard.tsx"
click node_watchlist "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/WatchlistView.tsx"
click node_history "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/WatchHistoryView.tsx"
click node_taste "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/TasteProfileView.tsx"
click node_top_rated "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/TopRatedView.tsx"
click node_movie_details "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/MovieDetailsModal.tsx"
click node_trailer_player "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/TrailerPlayerModal.tsx"
click node_trailer_service "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/lib/trailerService.ts"
click node_trailer_api "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/app/api/trailer/route.ts"
click node_comparison "https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/MovieComparisonModal.tsx"

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_app,node_navigation,node_header,node_home,node_viewer toneBlue
class node_discover,node_chat,node_ai_modal,node_recommend_api,node_engine toneAmber
class node_catalog_data,node_movie_card,node_watchlist,node_history,node_taste,node_top_rated toneMint
class node_movie_details,node_trailer_player,node_trailer_service,node_trailer_api,node_comparison toneRose
class node_tmdb toneIndigo
```

## Components

### App Experience

- [App Shell](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Navigation](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Header and Search](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/Header.tsx): `src/components/Header.tsx`
- [Home Dashboard](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/HomeDashboard.tsx): `src/components/HomeDashboard.tsx`

### Discovery and Recommendations

- [Discover View](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/DiscoverView.tsx): `src/components/DiscoverView.tsx`
- [Conversational Search](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/ChatInterface.tsx): `src/components/ChatInterface.tsx`
- [AI Recommendations](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/AiRecommendationModal.tsx): `src/components/AiRecommendationModal.tsx`
- [Recommendation API](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/app/api/recommend/route.ts): `src/app/api/recommend/route.ts`
- [Ranking Engine](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/lib/recommendEngine.ts): `src/lib/recommendEngine.ts`

### Movie Catalog

- [Movie Dataset](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/data/movies.ts): `src/data/movies.ts`
- [Movie Cards](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/MovieCard.tsx): `src/components/MovieCard.tsx`
- [Watchlist](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/WatchlistView.tsx): `src/components/WatchlistView.tsx`
- [Watch History](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/WatchHistoryView.tsx): `src/components/WatchHistoryView.tsx`
- [Taste Profile](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/TasteProfileView.tsx): `src/components/TasteProfileView.tsx`
- [Top Rated](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/TopRatedView.tsx): `src/components/TopRatedView.tsx`

### Movie Details and Trailers

- [Movie Details](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/MovieDetailsModal.tsx): `src/components/MovieDetailsModal.tsx`
- [Trailer Player](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/TrailerPlayerModal.tsx): `src/components/TrailerPlayerModal.tsx`
- [Trailer Service](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/lib/trailerService.ts): `src/lib/trailerService.ts`
- [Trailer API](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/app/api/trailer/route.ts): `src/app/api/trailer/route.ts`
- [Movie Comparison](https://github.com/jaswanthg-10/ai_movie_recommendation_project/blob/main/src/components/MovieComparisonModal.tsx): `src/components/MovieComparisonModal.tsx`

### Other components

- **Movie Viewer**
- **TMDB**

## Connections

- Movie Viewer → App Shell: opens app
- App Shell → Navigation: renders (evidence: `src/app/page.tsx`)
- App Shell → Header and Search: renders (evidence: `src/app/page.tsx`)
- App Shell → Home Dashboard: renders (evidence: `src/app/page.tsx`)
- App Shell → Discover View: renders (evidence: `src/app/page.tsx`)
- App Shell → Conversational Search: renders (evidence: `src/app/page.tsx`)
- App Shell → Movie Comparison: renders (evidence: `src/app/page.tsx`)
- App Shell → AI Recommendations: renders (evidence: `src/app/page.tsx`)
- Conversational Search → Ranking Engine: ranks queries (evidence: `src/components/ChatInterface.tsx`)
- AI Recommendations → Ranking Engine: requests matches (evidence: `src/components/AiRecommendationModal.tsx`)
- Recommendation API → Ranking Engine: ranks requests (evidence: `src/app/api/recommend/route.ts`)
- Ranking Engine → Movie Dataset: reads catalog (evidence: `src/lib/recommendEngine.ts`)
- Conversational Search → Movie Cards: renders results (evidence: `src/components/ChatInterface.tsx`)
- AI Recommendations → Movie Cards: renders results (evidence: `src/components/AiRecommendationModal.tsx`)
- Home Dashboard → Movie Cards: renders movies (evidence: `src/components/HomeDashboard.tsx`)
- Home Dashboard → Movie Dataset: reads catalog (evidence: `src/components/HomeDashboard.tsx`)
- Discover View → Movie Dataset: reads catalog (evidence: `src/components/DiscoverView.tsx`)
- Discover View → Ranking Engine: ranks movies (evidence: `src/components/DiscoverView.tsx`)
- Movie Details → Trailer Service: fetches trailer (evidence: `src/components/MovieDetailsModal.tsx`)
- Trailer Player → Trailer Service: fetches trailer (evidence: `src/components/TrailerPlayerModal.tsx`)
- Trailer Service → Trailer API: requests trailer (evidence: `src/lib/trailerService.ts`)
- Movie Details → Ranking Engine: finds similar (evidence: `src/components/MovieDetailsModal.tsx`)
- Movie Details → Movie Dataset: reads movie data (evidence: `src/components/MovieDetailsModal.tsx`)
- Trailer Player → Movie Dataset: reads movie data (evidence: `src/components/TrailerPlayerModal.tsx`)
- Movie Comparison → Movie Dataset: reads movie data (evidence: `src/components/MovieComparisonModal.tsx`)
- Watchlist → Movie Dataset: reads movie data (evidence: `src/components/WatchlistView.tsx`)
- Watch History → Movie Dataset: reads movie data (evidence: `src/components/WatchHistoryView.tsx`)
- Top Rated → Movie Dataset: reads movie data (evidence: `src/components/TopRatedView.tsx`)
- Top Rated → Movie Cards: renders movies (evidence: `src/components/TopRatedView.tsx`)
- TMDB → Movie Dataset: provides metadata
