# nithinreddy0007/memento architecture

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

- Interactive diagram: https://gitdiagram.com/nithinreddy0007/memento
- Repository: https://github.com/nithinreddy0007/memento

## Overview

Memento Watch History is a film and television discovery and watch-history web application. Its visible product areas include category browsing, title details, analysis, and a “someday” list; the server excerpt also exposes search, trending and curated-feed APIs. The sampled server connects title metadata and trailer workflows to TMDB and optional IMDb enrichment to OMDb. Frontend source was not sampled and the README is empty, so frontend-to-API links and unsampled behavior are not asserted.

Main entry points: [`backend/server.js`](https://github.com/nithinreddy0007/memento/blob/master/backend/server.js) (HTTP API), [`assets/app.js`](https://github.com/nithinreddy0007/memento/blob/master/assets/app.js) (Browser application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_app["Browser application<br/>[app.js]"]
  node_api_config["API configuration<br/>[api-config.js]"]
  node_category_pages["Category browsing<br/>[index.html]"]
  node_title_page["Title details<br/>[index.html]"]
  node_analysis_page["Viewing analysis<br/>[index.html]"]
  node_someday_page["Someday list<br/>[index.html]"]
  node_other_category_pages["More categories<br/>[index.html]"]
end

subgraph group_service["Catalog service"]
  node_api["HTTP API<br/>[server.js]"]
  node_title_details["Title enrichment<br/>[server.js]"]
  node_trailer_lookup["Trailer lookup<br/>[server.js]"]
  node_cinematic_feed["Cinematic feed<br/>[server.js]"]
end

subgraph group_providers["Content providers"]
  node_tmdb["TMDB catalog"]
  node_omdb["OMDb metadata"]
end

node_viewer(("Viewer"))

node_viewer -->|"uses"| node_app
node_api -->|"routes details"| node_title_details
node_api -->|"routes trailers"| node_trailer_lookup
node_api -->|"routes feed"| node_cinematic_feed
node_title_details -->|"requests title data"| node_tmdb
node_title_details -->|"enriches ratings"| node_omdb
node_trailer_lookup -->|"requests videos"| node_tmdb
node_cinematic_feed -->|"discovers titles"| node_tmdb

click node_app "https://github.com/nithinreddy0007/memento/blob/master/assets/app.js"
click node_api_config "https://github.com/nithinreddy0007/memento/blob/master/assets/api-config.js"
click node_category_pages "https://github.com/nithinreddy0007/memento/blob/master/pages/movies/index.html"
click node_title_page "https://github.com/nithinreddy0007/memento/blob/master/pages/details/index.html"
click node_analysis_page "https://github.com/nithinreddy0007/memento/blob/master/pages/analysis/index.html"
click node_someday_page "https://github.com/nithinreddy0007/memento/blob/master/pages/someday/index.html"
click node_other_category_pages "https://github.com/nithinreddy0007/memento/blob/master/pages/anime/index.html"
click node_api "https://github.com/nithinreddy0007/memento/blob/master/backend/server.js"
click node_title_details "https://github.com/nithinreddy0007/memento/blob/master/backend/server.js"
click node_trailer_lookup "https://github.com/nithinreddy0007/memento/blob/master/backend/server.js"
click node_cinematic_feed "https://github.com/nithinreddy0007/memento/blob/master/backend/server.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_app,node_api_config,node_category_pages,node_title_page,node_analysis_page,node_someday_page,node_other_category_pages,node_viewer toneBlue
class node_api,node_title_details,node_trailer_lookup,node_cinematic_feed toneAmber
class node_tmdb,node_omdb toneMint
```

## Components

### Web experience

- [Browser application](https://github.com/nithinreddy0007/memento/blob/master/assets/app.js): `assets/app.js`
- [API configuration](https://github.com/nithinreddy0007/memento/blob/master/assets/api-config.js): `assets/api-config.js`
- [Category browsing](https://github.com/nithinreddy0007/memento/blob/master/pages/movies/index.html): `pages/movies/index.html`
- [Title details](https://github.com/nithinreddy0007/memento/blob/master/pages/details/index.html): `pages/details/index.html`
- [Viewing analysis](https://github.com/nithinreddy0007/memento/blob/master/pages/analysis/index.html): `pages/analysis/index.html`
- [Someday list](https://github.com/nithinreddy0007/memento/blob/master/pages/someday/index.html): `pages/someday/index.html`
- [More categories](https://github.com/nithinreddy0007/memento/blob/master/pages/anime/index.html): `pages/anime/index.html`

### Catalog service

- [HTTP API](https://github.com/nithinreddy0007/memento/blob/master/backend/server.js): `backend/server.js`
- [Title enrichment](https://github.com/nithinreddy0007/memento/blob/master/backend/server.js): `backend/server.js`
- [Trailer lookup](https://github.com/nithinreddy0007/memento/blob/master/backend/server.js): `backend/server.js`
- [Cinematic feed](https://github.com/nithinreddy0007/memento/blob/master/backend/server.js): `backend/server.js`

### Content providers

- **TMDB catalog**
- **OMDb metadata**

### Other components

- **Viewer**

## Connections

- Viewer → Browser application: uses
- HTTP API → Title enrichment: routes details (evidence: `backend/server.js`)
- HTTP API → Trailer lookup: routes trailers (evidence: `backend/server.js`)
- HTTP API → Cinematic feed: routes feed (evidence: `backend/server.js`)
- Title enrichment → TMDB catalog: requests title data (evidence: `backend/server.js`)
- Title enrichment → OMDb metadata: enriches ratings (evidence: `backend/server.js`)
- Trailer lookup → TMDB catalog: requests videos (evidence: `backend/server.js`)
- Cinematic feed → TMDB catalog: discovers titles (evidence: `backend/server.js`)
