# water9977/kino architecture

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

- Interactive diagram: https://gitdiagram.com/water9977/kino
- Repository: https://github.com/water9977/kino

## Overview

Kino is a read-only movie and TV discovery front end: visitors browse or filter TMDB titles, search, then open a title page for details and playback. The graph separates landing, discovery, detail/playback, and shared data/UI layers. The README documents several runtime links; sampled source confirms selected route-to-component and component-to-data calls. Other unsampled route internals are represented by their exact paths, without inferring unverified calls.

Main entry points: [`lib/tmdb.ts`](https://github.com/water9977/kino/blob/main/lib/tmdb.ts) (TMDB client), [`components/MovieRow.tsx`](https://github.com/water9977/kino/blob/main/components/MovieRow.tsx) (Curated title rows), [`components/LandingHero.tsx`](https://github.com/water9977/kino/blob/main/components/LandingHero.tsx) (Landing hero), [`app/(main)/browse/page.tsx`](https://github.com/water9977/kino/blob/main/app/(main)/browse/page.tsx) (Browse home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Landing and navigation"]
  node_landing["Landing page<br/>[page.tsx]"]
  node_landinghero["Landing hero<br/>[LandingHero.tsx]"]
  node_eyeeffect["WebGL eye<br/>[EvilEye.tsx]"]
  node_flipwords["Genre flip words"]
  node_postertrail["Poster trail<br/>[PosterTrail.tsx]"]
  node_navbar["Navigation and search<br/>[Navbar.tsx]"]
  node_searchsuggestions["Search suggestions"]
end

subgraph group_discovery["Browse and discovery"]
  node_browse["Browse home<br/>[page.tsx]"]
  node_movies["Movie listings<br/>[page.tsx]"]
  node_tv["TV listings<br/>[page.tsx]"]
  node_discover["Filtered discovery<br/>[page.tsx]"]
  node_category["Category grid route<br/>[page.tsx]"]
  node_grid["Infinite-scroll grid<br/>[CategoryGrid.tsx]"]
  node_filters["Genre and provider filters<br/>[FilterBar.tsx]"]
  node_searchpage["Search results<br/>[page.tsx]"]
  node_searchroute["Autocomplete handler<br/>[route.ts]"]
  node_rows["Curated title rows<br/>[MovieRow.tsx]"]
  node_carousel["Hero carousel<br/>[HeroCarousel.tsx]"]
end

subgraph group_title["Title details and playback"]
  node_watch["Title detail page<br/>[page.tsx]"]
  node_player["Embedded video player<br/>[VideoPlayer.tsx]"]
  node_actions["Pagination and seasons<br/>[actions.ts]"]
end

subgraph group_shared["Data and shared UI"]
  node_cards["Title cards<br/>[MovieCard.tsx]"]
  node_tmdb["TMDB client<br/>[tmdb.ts]"]
  node_swregistrar["Service worker registration"]
  node_sw["Offline service worker<br/>[sw.js]"]
end

node_visitor(("Visitor"))
node_tmdbapi["TMDB API"]
node_vidlink["vidlink.pro"]

node_visitor -->|"opens"| node_landing
node_visitor -->|"browses"| node_browse
node_visitor -->|"filters titles"| node_discover
node_visitor -->|"searches"| node_searchpage
node_visitor -->|"opens title"| node_watch
node_landing -->|"renders"| node_landinghero
node_landinghero -->|"renders"| node_eyeeffect
node_landinghero -->|"renders"| node_flipwords
node_landinghero -->|"renders"| node_postertrail
node_navbar -->|"renders"| node_searchsuggestions
node_browse -->|"fetches rows"| node_tmdb
node_browse -->|"renders"| node_carousel
node_browse -->|"renders"| node_rows
node_movies -->|"fetches listings"| node_tmdb
node_movies -->|"renders"| node_carousel
node_movies -->|"renders"| node_rows
node_tv -->|"fetches listings"| node_tmdb
node_tv -->|"renders"| node_carousel
node_tv -->|"renders"| node_rows
node_discover -->|"fetches titles and filters"| node_tmdb
node_discover -->|"renders"| node_filters
node_discover -->|"renders"| node_grid
node_category -->|"fetches category"| node_tmdb
node_category -->|"renders"| node_filters
node_category -->|"renders"| node_grid
node_grid -->|"loads more"| node_actions
node_grid -->|"renders"| node_cards
node_searchpage -->|"fetches results"| node_tmdb
node_searchpage -->|"renders"| node_cards
node_searchroute -->|"searches titles"| node_tmdb
node_navbar -->|"requests autocomplete"| node_searchroute
node_searchsuggestions -->|"shows suggestions"| node_visitor
node_watch -->|"loads details"| node_tmdb
node_watch -->|"renders"| node_player
node_watch -->|"renders recommendations"| node_rows
node_player -->|"embeds playback"| node_vidlink
node_player -->|"loads seasons"| node_actions
node_actions -->|"fetches pages and seasons"| node_tmdb
node_carousel -->|"renders titles"| node_cards
node_rows -->|"renders titles"| node_cards
node_tmdb -->|"requests metadata"| node_tmdbapi
node_swregistrar -->|"registers"| node_sw

click node_landing "https://github.com/water9977/kino/blob/main/app/page.tsx"
click node_landinghero "https://github.com/water9977/kino/blob/main/components/LandingHero.tsx"
click node_eyeeffect "https://github.com/water9977/kino/blob/main/components/EvilEye.tsx"
click node_flipwords "https://github.com/water9977/kino/blob/main/components/CinemaFlipWords.tsx"
click node_postertrail "https://github.com/water9977/kino/blob/main/components/PosterTrail.tsx"
click node_navbar "https://github.com/water9977/kino/blob/main/components/Navbar.tsx"
click node_searchsuggestions "https://github.com/water9977/kino/blob/main/components/navbar/SearchSuggestions.tsx"
click node_browse "https://github.com/water9977/kino/blob/main/app/(main)/browse/page.tsx"
click node_movies "https://github.com/water9977/kino/blob/main/app/(main)/movies/page.tsx"
click node_tv "https://github.com/water9977/kino/blob/main/app/(main)/tv/page.tsx"
click node_discover "https://github.com/water9977/kino/blob/main/app/(main)/discover/page.tsx"
click node_category "https://github.com/water9977/kino/blob/main/app/(main)/category/%5Bslug%5D/page.tsx"
click node_grid "https://github.com/water9977/kino/blob/main/components/CategoryGrid.tsx"
click node_filters "https://github.com/water9977/kino/blob/main/components/FilterBar.tsx"
click node_searchpage "https://github.com/water9977/kino/blob/main/app/(main)/search/page.tsx"
click node_searchroute "https://github.com/water9977/kino/blob/main/app/api/search/route.ts"
click node_watch "https://github.com/water9977/kino/blob/main/app/(main)/watch/%5Bid%5D/page.tsx"
click node_player "https://github.com/water9977/kino/blob/main/components/VideoPlayer.tsx"
click node_actions "https://github.com/water9977/kino/blob/main/app/actions.ts"
click node_rows "https://github.com/water9977/kino/blob/main/components/MovieRow.tsx"
click node_cards "https://github.com/water9977/kino/blob/main/components/MovieCard.tsx"
click node_carousel "https://github.com/water9977/kino/blob/main/components/HeroCarousel.tsx"
click node_tmdb "https://github.com/water9977/kino/blob/main/lib/tmdb.ts"
click node_swregistrar "https://github.com/water9977/kino/blob/main/components/ServiceWorkerRegistrar.tsx"
click node_sw "https://github.com/water9977/kino/blob/main/public/sw.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_landing,node_landinghero,node_eyeeffect,node_flipwords,node_postertrail,node_navbar,node_searchsuggestions toneBlue
class node_browse,node_movies,node_tv,node_discover,node_category,node_grid,node_filters,node_searchpage,node_searchroute,node_rows,node_carousel toneAmber
class node_watch,node_player,node_actions,node_tmdbapi toneMint
class node_cards,node_tmdb,node_swregistrar,node_sw toneRose
class node_visitor,node_vidlink toneIndigo
```

## Components

### Landing and navigation

- [Landing page](https://github.com/water9977/kino/blob/main/app/page.tsx): `app/page.tsx`
- [Landing hero](https://github.com/water9977/kino/blob/main/components/LandingHero.tsx): `components/LandingHero.tsx`
- [WebGL eye](https://github.com/water9977/kino/blob/main/components/EvilEye.tsx): `components/EvilEye.tsx`
- [Genre flip words](https://github.com/water9977/kino/blob/main/components/CinemaFlipWords.tsx): `components/CinemaFlipWords.tsx`
- [Poster trail](https://github.com/water9977/kino/blob/main/components/PosterTrail.tsx): `components/PosterTrail.tsx`
- [Navigation and search](https://github.com/water9977/kino/blob/main/components/Navbar.tsx): `components/Navbar.tsx`
- [Search suggestions](https://github.com/water9977/kino/blob/main/components/navbar/SearchSuggestions.tsx): `components/navbar/SearchSuggestions.tsx`

### Browse and discovery

- [Browse home](https://github.com/water9977/kino/blob/main/app/(main)/browse/page.tsx): `app/(main)/browse/page.tsx`
- [Movie listings](https://github.com/water9977/kino/blob/main/app/(main)/movies/page.tsx): `app/(main)/movies/page.tsx`
- [TV listings](https://github.com/water9977/kino/blob/main/app/(main)/tv/page.tsx): `app/(main)/tv/page.tsx`
- [Filtered discovery](https://github.com/water9977/kino/blob/main/app/(main)/discover/page.tsx): `app/(main)/discover/page.tsx`
- [Category grid route](https://github.com/water9977/kino/blob/main/app/(main)/category/%5Bslug%5D/page.tsx): `app/(main)/category/[slug]/page.tsx`
- [Infinite-scroll grid](https://github.com/water9977/kino/blob/main/components/CategoryGrid.tsx): `components/CategoryGrid.tsx`
- [Genre and provider filters](https://github.com/water9977/kino/blob/main/components/FilterBar.tsx): `components/FilterBar.tsx`
- [Search results](https://github.com/water9977/kino/blob/main/app/(main)/search/page.tsx): `app/(main)/search/page.tsx`
- [Autocomplete handler](https://github.com/water9977/kino/blob/main/app/api/search/route.ts): `app/api/search/route.ts`
- [Curated title rows](https://github.com/water9977/kino/blob/main/components/MovieRow.tsx): `components/MovieRow.tsx`
- [Hero carousel](https://github.com/water9977/kino/blob/main/components/HeroCarousel.tsx): `components/HeroCarousel.tsx`

### Title details and playback

- [Title detail page](https://github.com/water9977/kino/blob/main/app/(main)/watch/%5Bid%5D/page.tsx): `app/(main)/watch/[id]/page.tsx`
- [Embedded video player](https://github.com/water9977/kino/blob/main/components/VideoPlayer.tsx): `components/VideoPlayer.tsx`
- [Pagination and seasons](https://github.com/water9977/kino/blob/main/app/actions.ts): `app/actions.ts`

### Data and shared UI

- [Title cards](https://github.com/water9977/kino/blob/main/components/MovieCard.tsx): `components/MovieCard.tsx`
- [TMDB client](https://github.com/water9977/kino/blob/main/lib/tmdb.ts): `lib/tmdb.ts`
- [Service worker registration](https://github.com/water9977/kino/blob/main/components/ServiceWorkerRegistrar.tsx): `components/ServiceWorkerRegistrar.tsx`
- [Offline service worker](https://github.com/water9977/kino/blob/main/public/sw.js): `public/sw.js`

### Other components

- **Visitor**
- **TMDB API**
- **vidlink.pro**

## Connections

- Visitor → Landing page: opens (evidence: `README.md`)
- Visitor → Browse home: browses (evidence: `README.md`)
- Visitor → Filtered discovery: filters titles (evidence: `README.md`)
- Visitor → Search results: searches (evidence: `README.md`)
- Visitor → Title detail page: opens title (evidence: `README.md`)
- Landing page → Landing hero: renders (evidence: `app/page.tsx`)
- Landing hero → WebGL eye: renders (evidence: `components/LandingHero.tsx`)
- Landing hero → Genre flip words: renders (evidence: `components/LandingHero.tsx`)
- Landing hero → Poster trail: renders (evidence: `components/LandingHero.tsx`)
- Navigation and search → Search suggestions: renders (evidence: `components/Navbar.tsx`)
- Browse home → TMDB client: fetches rows (evidence: `app/(main)/browse/page.tsx`)
- Browse home → Hero carousel: renders (evidence: `app/(main)/browse/page.tsx`)
- Browse home → Curated title rows: renders (evidence: `app/(main)/browse/page.tsx`)
- Movie listings → TMDB client: fetches listings (evidence: `app/(main)/movies/page.tsx`)
- Movie listings → Hero carousel: renders (evidence: `app/(main)/movies/page.tsx`)
- Movie listings → Curated title rows: renders (evidence: `app/(main)/movies/page.tsx`)
- TV listings → TMDB client: fetches listings (evidence: `app/(main)/tv/page.tsx`)
- TV listings → Hero carousel: renders (evidence: `app/(main)/tv/page.tsx`)
- TV listings → Curated title rows: renders (evidence: `app/(main)/tv/page.tsx`)
- Filtered discovery → TMDB client: fetches titles and filters (evidence: `app/(main)/discover/page.tsx`)
- Filtered discovery → Genre and provider filters: renders (evidence: `app/(main)/discover/page.tsx`)
- Filtered discovery → Infinite-scroll grid: renders (evidence: `app/(main)/discover/page.tsx`)
- Category grid route → TMDB client: fetches category (evidence: `app/(main)/category/[slug]/page.tsx`)
- Category grid route → Genre and provider filters: renders (evidence: `app/(main)/category/[slug]/page.tsx`)
- Category grid route → Infinite-scroll grid: renders (evidence: `app/(main)/category/[slug]/page.tsx`)
- Infinite-scroll grid → Pagination and seasons: loads more (evidence: `components/CategoryGrid.tsx`)
- Infinite-scroll grid → Title cards: renders (evidence: `components/CategoryGrid.tsx`)
- Search results → TMDB client: fetches results (evidence: `app/(main)/search/page.tsx`)
- Search results → Title cards: renders (evidence: `app/(main)/search/page.tsx`)
- Autocomplete handler → TMDB client: searches titles (evidence: `app/api/search/route.ts`)
- Navigation and search → Autocomplete handler: requests autocomplete (evidence: `README.md`)
- Search suggestions → Visitor: shows suggestions (evidence: `components/navbar/SearchSuggestions.tsx`)
- Title detail page → TMDB client: loads details (evidence: `README.md`)
- Title detail page → Embedded video player: renders (evidence: `app/(main)/watch/[id]/page.tsx`)
- Title detail page → Curated title rows: renders recommendations (evidence: `README.md`)
- Embedded video player → vidlink.pro: embeds playback (evidence: `README.md`)
- Embedded video player → Pagination and seasons: loads seasons (evidence: `components/VideoPlayer.tsx`)
- Pagination and seasons → TMDB client: fetches pages and seasons (evidence: `app/actions.ts`)
- Hero carousel → Title cards: renders titles (evidence: `components/HeroCarousel.tsx`)
- Curated title rows → Title cards: renders titles (evidence: `components/MovieRow.tsx`)
- TMDB client → TMDB API: requests metadata (evidence: `README.md`)
- Service worker registration → Offline service worker: registers (evidence: `components/ServiceWorkerRegistrar.tsx`)
