# beastmas065/sceneva architecture

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

- Interactive diagram: https://gitdiagram.com/beastmas065/sceneva
- Repository: https://github.com/beastmas065/sceneva

## Overview

Sceneva is a client-side content recommendation app. Users choose content types, region, genre preferences and quiz answers; the quiz scores those preferences, requests a recommendation, saves it, and presents a result with optional poster artwork. The app also exposes landing, about and history views. Content catalogs and question sets supply the recommendation logic; history is handled through the data layer. The map follows explicit imports and calls in the excerpts and SOURCE INDEX. Other UI primitives and unsampled page details are omitted where their runtime relationships are not established.

Main entry points: [`src/App.tsx`](https://github.com/beastmas065/sceneva/blob/main/src/App.tsx) (App router), [`src/pages/Landing.tsx`](https://github.com/beastmas065/sceneva/blob/main/src/pages/Landing.tsx) (Landing page), [`src/pages/History.tsx`](https://github.com/beastmas065/sceneva/blob/main/src/pages/History.tsx) (History page), [`src/data/content.ts`](https://github.com/beastmas065/sceneva/blob/main/src/data/content.ts) (Catalog aggregator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and pages"]
  node_app["App router<br/>[App.tsx]"]
  node_landing["Landing page<br/>[Landing.tsx]"]
  node_about["About page<br/>[About.tsx]"]
  node_history["History page<br/>[History.tsx]"]
end

subgraph group_quiz["Quiz and recommendations"]
  node_quizpage["Quiz flow<br/>[Quiz.tsx]"]
  node_result["Result view<br/>[Result.tsx]"]
  node_recommend["Recommendation logic<br/>[index.ts]"]
  node_questions["Quiz questions<br/>[questions.ts]"]
  node_historydata["Saved history<br/>[index.ts]"]
  node_tmdb["TMDB service<br/>[tmdb.ts]"]
end

subgraph group_catalog["Content catalog"]
  node_content["Catalog aggregator<br/>[content.ts]"]
  node_movies["Movie catalog<br/>[movies.ts]"]
  node_legacy["Legacy movie catalog<br/>[movies-legacy.ts]"]
  node_anime["Anime catalog<br/>[anime.ts]"]
  node_animated["Animation catalog<br/>[animated.ts]"]
  node_webseries["Web series catalog<br/>[webseries.ts]"]
end

subgraph group_shared["Shared interface"]
  node_hero["Landing hero<br/>[HeroSection.tsx]"]
  node_mode["Mode selector<br/>[ModeSelector.tsx]"]
  node_header["Header and navigation<br/>[Header.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_transition["Page transition<br/>[PageTransition.tsx]"]
  node_toast["Toast display<br/>[toast.tsx]"]
  node_tooltip["Tooltip provider<br/>[tooltip.tsx]"]
end

node_visitor(("Viewer"))
node_tmdbservice{{"TMDB API"}}

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_quizpage
node_app -->|"routes to"| node_result
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_history
node_app -->|"renders"| node_toast
node_app -->|"provides"| node_tooltip
node_landing -->|"renders"| node_hero
node_landing -->|"renders"| node_mode
node_quizpage -->|"requests pick"| node_recommend
node_quizpage -->|"saves result"| node_historydata
node_recommend -->|"gets questions"| node_questions
node_recommend -->|"scores catalog"| node_content
node_content -->|"imports catalog"| node_movies
node_content -->|"imports catalog"| node_anime
node_content -->|"imports catalog"| node_animated
node_content -->|"imports catalog"| node_webseries
node_recommend -->|"uses catalog"| node_legacy
node_result -->|"requests poster"| node_tmdb
node_tmdb -->|"searches posters"| node_tmdbservice
node_history -->|"reads history"| node_historydata
node_landing -->|"renders"| node_header
node_landing -->|"renders"| node_footer
node_about -->|"renders"| node_header
node_about -->|"renders"| node_footer
node_history -->|"renders"| node_header
node_history -->|"renders"| node_footer
node_landing -->|"wraps content"| node_transition
node_about -->|"wraps content"| node_transition
node_history -->|"wraps content"| node_transition
node_quizpage -->|"wraps content"| node_transition
node_result -->|"wraps content"| node_transition

click node_app "https://github.com/beastmas065/sceneva/blob/main/src/App.tsx"
click node_landing "https://github.com/beastmas065/sceneva/blob/main/src/pages/Landing.tsx"
click node_about "https://github.com/beastmas065/sceneva/blob/main/src/pages/About.tsx"
click node_history "https://github.com/beastmas065/sceneva/blob/main/src/pages/History.tsx"
click node_quizpage "https://github.com/beastmas065/sceneva/blob/main/src/pages/Quiz.tsx"
click node_result "https://github.com/beastmas065/sceneva/blob/main/src/pages/Result.tsx"
click node_recommend "https://github.com/beastmas065/sceneva/blob/main/src/data/index.ts"
click node_questions "https://github.com/beastmas065/sceneva/blob/main/src/data/questions.ts"
click node_historydata "https://github.com/beastmas065/sceneva/blob/main/src/data/index.ts"
click node_content "https://github.com/beastmas065/sceneva/blob/main/src/data/content.ts"
click node_movies "https://github.com/beastmas065/sceneva/blob/main/src/data/movies.ts"
click node_legacy "https://github.com/beastmas065/sceneva/blob/main/src/data/movies-legacy.ts"
click node_anime "https://github.com/beastmas065/sceneva/blob/main/src/data/anime.ts"
click node_animated "https://github.com/beastmas065/sceneva/blob/main/src/data/animated.ts"
click node_webseries "https://github.com/beastmas065/sceneva/blob/main/src/data/webseries.ts"
click node_tmdb "https://github.com/beastmas065/sceneva/blob/main/src/lib/tmdb.ts"
click node_hero "https://github.com/beastmas065/sceneva/blob/main/src/components/landing/HeroSection.tsx"
click node_mode "https://github.com/beastmas065/sceneva/blob/main/src/components/landing/ModeSelector.tsx"
click node_header "https://github.com/beastmas065/sceneva/blob/main/src/components/layout/Header.tsx"
click node_footer "https://github.com/beastmas065/sceneva/blob/main/src/components/layout/Footer.tsx"
click node_transition "https://github.com/beastmas065/sceneva/blob/main/src/components/ui/PageTransition.tsx"
click node_toast "https://github.com/beastmas065/sceneva/blob/main/src/components/ui/toast.tsx"
click node_tooltip "https://github.com/beastmas065/sceneva/blob/main/src/components/ui/tooltip.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_landing,node_about,node_history,node_visitor toneBlue
class node_quizpage,node_result,node_recommend,node_questions,node_historydata,node_tmdb toneAmber
class node_content,node_movies,node_legacy,node_anime,node_animated,node_webseries,node_tmdbservice toneMint
class node_hero,node_mode,node_header,node_footer,node_transition,node_toast,node_tooltip toneRose
```

## Components

### App and pages

- [App router](https://github.com/beastmas065/sceneva/blob/main/src/App.tsx): `src/App.tsx`
- [Landing page](https://github.com/beastmas065/sceneva/blob/main/src/pages/Landing.tsx): `src/pages/Landing.tsx`
- [About page](https://github.com/beastmas065/sceneva/blob/main/src/pages/About.tsx): `src/pages/About.tsx`
- [History page](https://github.com/beastmas065/sceneva/blob/main/src/pages/History.tsx): `src/pages/History.tsx`

### Quiz and recommendations

- [Quiz flow](https://github.com/beastmas065/sceneva/blob/main/src/pages/Quiz.tsx): `src/pages/Quiz.tsx`
- [Result view](https://github.com/beastmas065/sceneva/blob/main/src/pages/Result.tsx): `src/pages/Result.tsx`
- [Recommendation logic](https://github.com/beastmas065/sceneva/blob/main/src/data/index.ts): `src/data/index.ts`
- [Quiz questions](https://github.com/beastmas065/sceneva/blob/main/src/data/questions.ts): `src/data/questions.ts`
- [Saved history](https://github.com/beastmas065/sceneva/blob/main/src/data/index.ts): `src/data/index.ts`
- [TMDB service](https://github.com/beastmas065/sceneva/blob/main/src/lib/tmdb.ts): `src/lib/tmdb.ts`

### Content catalog

- [Catalog aggregator](https://github.com/beastmas065/sceneva/blob/main/src/data/content.ts): `src/data/content.ts`
- [Movie catalog](https://github.com/beastmas065/sceneva/blob/main/src/data/movies.ts): `src/data/movies.ts`
- [Legacy movie catalog](https://github.com/beastmas065/sceneva/blob/main/src/data/movies-legacy.ts): `src/data/movies-legacy.ts`
- [Anime catalog](https://github.com/beastmas065/sceneva/blob/main/src/data/anime.ts): `src/data/anime.ts`
- [Animation catalog](https://github.com/beastmas065/sceneva/blob/main/src/data/animated.ts): `src/data/animated.ts`
- [Web series catalog](https://github.com/beastmas065/sceneva/blob/main/src/data/webseries.ts): `src/data/webseries.ts`

### Shared interface

- [Landing hero](https://github.com/beastmas065/sceneva/blob/main/src/components/landing/HeroSection.tsx): `src/components/landing/HeroSection.tsx`
- [Mode selector](https://github.com/beastmas065/sceneva/blob/main/src/components/landing/ModeSelector.tsx): `src/components/landing/ModeSelector.tsx`
- [Header and navigation](https://github.com/beastmas065/sceneva/blob/main/src/components/layout/Header.tsx): `src/components/layout/Header.tsx`
- [Footer](https://github.com/beastmas065/sceneva/blob/main/src/components/layout/Footer.tsx): `src/components/layout/Footer.tsx`
- [Page transition](https://github.com/beastmas065/sceneva/blob/main/src/components/ui/PageTransition.tsx): `src/components/ui/PageTransition.tsx`
- [Toast display](https://github.com/beastmas065/sceneva/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`
- [Tooltip provider](https://github.com/beastmas065/sceneva/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`

### Other components

- **Viewer**
- **TMDB API**

## Connections

- Viewer → App router: opens
- App router → Landing page: routes to (evidence: `src/App.tsx`)
- App router → Quiz flow: routes to (evidence: `src/App.tsx`)
- App router → Result view: routes to (evidence: `src/App.tsx`)
- App router → About page: routes to (evidence: `src/App.tsx`)
- App router → History page: routes to (evidence: `src/App.tsx`)
- App router → Toast display: renders (evidence: `src/App.tsx`)
- App router → Tooltip provider: provides (evidence: `src/App.tsx`)
- Landing page → Landing hero: renders (evidence: `src/pages/Landing.tsx`)
- Landing page → Mode selector: renders (evidence: `src/pages/Landing.tsx`)
- Quiz flow → Recommendation logic: requests pick (evidence: `src/pages/Quiz.tsx`)
- Quiz flow → Saved history: saves result (evidence: `src/pages/Quiz.tsx`)
- Recommendation logic → Quiz questions: gets questions (evidence: `src/data/index.ts`)
- Recommendation logic → Catalog aggregator: scores catalog (evidence: `src/data/index.ts`)
- Catalog aggregator → Movie catalog: imports catalog (evidence: `src/data/content.ts`)
- Catalog aggregator → Anime catalog: imports catalog (evidence: `src/data/content.ts`)
- Catalog aggregator → Animation catalog: imports catalog (evidence: `src/data/content.ts`)
- Catalog aggregator → Web series catalog: imports catalog (evidence: `src/data/content.ts`)
- Recommendation logic → Legacy movie catalog: uses catalog (evidence: `src/data/index.ts`)
- Result view → TMDB service: requests poster (evidence: `src/pages/Result.tsx`)
- TMDB service → TMDB API: searches posters (evidence: `src/lib/tmdb.ts`)
- History page → Saved history: reads history (evidence: `src/pages/History.tsx`)
- Landing page → Header and navigation: renders (evidence: `src/pages/Landing.tsx`)
- Landing page → Footer: renders (evidence: `src/pages/Landing.tsx`)
- About page → Header and navigation: renders (evidence: `src/pages/About.tsx`)
- About page → Footer: renders (evidence: `src/pages/About.tsx`)
- History page → Header and navigation: renders (evidence: `src/pages/History.tsx`)
- History page → Footer: renders (evidence: `src/pages/History.tsx`)
- Landing page → Page transition: wraps content (evidence: `src/pages/Landing.tsx`)
- About page → Page transition: wraps content (evidence: `src/pages/About.tsx`)
- History page → Page transition: wraps content (evidence: `src/pages/History.tsx`)
- Quiz flow → Page transition: wraps content (evidence: `src/pages/Quiz.tsx`)
- Result view → Page transition: wraps content (evidence: `src/pages/Result.tsx`)
