How kulagama/movie-finder works
Movie Finder lets users browse movies or TV shows by genre and search for titles or keywords. Users choose a media type in the navigation, then the start page fetches genre-grouped results and renders carousels of media cards; search submits to a results page that fetches and displays matching cards. API routes retrieve and normalize data from TMDb, while cards link to TMDb titles. The graph covers these workflows and the shared app shell. Source excerpts show route calls and rendering; unsampled details are omitted.
Main entry points: media-by-genres/route.ts Genre media API · search/route.ts Search API · layout.tsx App shell · page.tsx Genre browsing
Components 18
Navigation and shell
- App shell
app/layout.tsx - Media navigation
app/components/NavigationBar/index.tsx - Search input
app/components/SearchBox/index.tsx
Browse and search
- Genre browsing
app/(start)/page.tsx - Genre carousel
app/(start)/components/ClientCarousel/index.tsx - Search results
app/results/page.tsx
Media data
- Genre media API
app/api/media-by-genres/route.ts - Search API
app/api/search/route.ts - TMDb API
- TMDb images
- Media definitions
app/lib/definitions.ts - API constants
app/lib/constants.ts
Presentation
- Media card
app/components/MediaCard/index.tsx - Info badge
app/components/MediaCard/components/InfoBadge/index.tsx - Footer
app/components/Footer/index.tsx - UI theme
theme.ts
Other components
- Visitor
- TMDb title pages
Connections 23
- Visitor → Media navigation: chooses type
app/components/NavigationBar/index.tsx - Visitor → Search input: enters query
app/components/SearchBox/index.tsx - Media navigation → Genre browsing: routes to
app/components/NavigationBar/index.tsx - Search input → Search results: routes to
app/components/SearchBox/index.tsx - App shell → Media navigation: renders
app/layout.tsx - App shell → Search input: renders
app/layout.tsx - App shell → Footer: renders
app/layout.tsx - App shell → UI theme: configures
app/layout.tsx - Genre browsing → Genre media API: fetches
app/(start)/page.tsx - Genre browsing → Genre carousel: renders
app/(start)/page.tsx - Genre browsing → Media card: renders
app/(start)/page.tsx - Search results → Search API: fetches
app/results/page.tsx - Search results → Media card: renders
app/results/page.tsx - Genre media API → TMDb API: fetches genres
app/api/media-by-genres/route.ts - Search API → TMDb API: fetches search
app/api/search/route.ts - Genre media API → API constants: uses config
app/api/media-by-genres/route.ts - Search API → API constants: uses config
app/api/search/route.ts - Genre media API → Media definitions: maps responses
app/api/media-by-genres/route.ts - Search API → Media definitions: maps responses
app/api/search/route.ts - Genre media API → TMDb images: builds image URLs
app/api/media-by-genres/route.ts - Search API → TMDb images: builds image URLs
app/api/search/route.ts - Media card → Info badge: renders
app/components/MediaCard/index.tsx - Media card → TMDb title pages: links to
app/components/MediaCard/index.tsx