# mustafasadeer12-cyber/usepopcorn architecture

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

- Interactive diagram: https://gitdiagram.com/mustafasadeer12-cyber/usepopcorn
- Repository: https://github.com/mustafasadeer12-cyber/usepopcorn

## Overview

usePopcorn is a small in-process React movie-browsing and rating interface. Its runtime starts at the React mount, renders sample movie and watched lists, and includes a configurable star-rating widget. The search field currently holds its own query state; the shown code does not connect it to movie filtering or an external search service. Source excerpts support the component relationships below; the README only identifies the product as in-process React.

Main entry points: [`src/App.jsx`](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx) (App composition), [`src/StarRating.jsx`](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/StarRating.jsx) (Star rating), [`src/main.jsx`](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/main.jsx) (React mount)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_mount["React mount<br/>[main.jsx]"]
end

subgraph group_movies["Movie interface"]
  node_app["App composition<br/>[App.jsx]"]
  node_search["Search input<br/>[App.jsx]"]
  node_movie_list["Movie list<br/>[App.jsx]"]
  node_movie_item["Movie item<br/>[App.jsx]"]
  node_watched_summary["Watched summary<br/>[App.jsx]"]
  node_watched_list["Watched list<br/>[App.jsx]"]
  node_watched_item["Watched item<br/>[App.jsx]"]
end

subgraph group_rating["Rating widget"]
  node_star_rating["Star rating<br/>[StarRating.jsx]"]
  node_star["Star control<br/>[StarRating.jsx]"]
end

node_viewer(("Viewer"))

node_mount -->|"renders"| node_app
node_app -->|"renders"| node_search
node_app -->|"renders"| node_movie_list
node_movie_list -->|"renders"| node_movie_item
node_app -->|"renders"| node_watched_summary
node_app -->|"renders"| node_watched_list
node_watched_list -->|"renders"| node_watched_item
node_app -->|"renders"| node_star_rating
node_star_rating -->|"renders"| node_star
node_viewer -->|"enters query"| node_search
node_viewer -->|"sets rating"| node_star_rating

click node_mount "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/main.jsx"
click node_app "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx"
click node_search "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx"
click node_movie_list "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx"
click node_movie_item "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx"
click node_watched_summary "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx"
click node_watched_list "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx"
click node_watched_item "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx"
click node_star_rating "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/StarRating.jsx"
click node_star "https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/StarRating.jsx"

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_mount,node_viewer toneBlue
class node_app,node_search,node_movie_list,node_movie_item,node_watched_summary,node_watched_list,node_watched_item toneAmber
class node_star_rating,node_star toneMint
```

## Components

### Application entry

- [React mount](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/main.jsx): `src/main.jsx`

### Movie interface

- [App composition](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx): `src/App.jsx`
- [Search input](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx): `src/App.jsx`
- [Movie list](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx): `src/App.jsx`
- [Movie item](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx): `src/App.jsx`
- [Watched summary](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx): `src/App.jsx`
- [Watched list](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx): `src/App.jsx`
- [Watched item](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/App.jsx): `src/App.jsx`

### Rating widget

- [Star rating](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/StarRating.jsx): `src/StarRating.jsx`
- [Star control](https://github.com/mustafasadeer12-cyber/usepopcorn/blob/main/src/StarRating.jsx): `src/StarRating.jsx`

### Other components

- **Viewer**

## Connections

- React mount → App composition: renders (evidence: `src/main.jsx`)
- App composition → Search input: renders (evidence: `src/App.jsx`)
- App composition → Movie list: renders (evidence: `src/App.jsx`)
- Movie list → Movie item: renders (evidence: `src/App.jsx`)
- App composition → Watched summary: renders (evidence: `src/App.jsx`)
- App composition → Watched list: renders (evidence: `src/App.jsx`)
- Watched list → Watched item: renders (evidence: `src/App.jsx`)
- App composition → Star rating: renders (evidence: `src/App.jsx`)
- Star rating → Star control: renders (evidence: `src/StarRating.jsx`)
- Viewer → Search input: enters query (evidence: `src/App.jsx`)
- Viewer → Star rating: sets rating (evidence: `src/StarRating.jsx`)
