# harshit18523/framelog architecture

> Architecture diagram of the GitHub repository harshit18523/framelog, 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/harshit18523/framelog
- Repository: https://github.com/harshit18523/framelog

## Overview

FrameLog is a social film diary and tracker. The intended user journey is discovering a film, viewing its details, and logging it to a personal diary or watchlist; profiles, reviews, activity, and curated lists extend that experience. The client tree shows these product areas, but sampled code indicates much of the current experience uses local sample data and in-memory library state. The README describes the backend health endpoint and lists authentication, TMDb data, and real-time social features as planned; links for unsampled behavior are therefore documented or marked unverified.

Main entry points: [`client/src/pages/Discover.tsx`](https://github.com/harshit18523/framelog/blob/main/client/src/pages/Discover.tsx) (Discover films), [`client/src/contexts/LibraryContext.tsx`](https://github.com/harshit18523/framelog/blob/main/client/src/contexts/LibraryContext.tsx) (Personal library state), [`client/src/App.tsx`](https://github.com/harshit18523/framelog/blob/main/client/src/App.tsx) (Client app), [`client/src/components/film/FilmReviews.tsx`](https://github.com/harshit18523/framelog/blob/main/client/src/components/film/FilmReviews.tsx) (Film reviews)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client experience"]
  node_app["Client app<br/>[App.tsx]"]
  node_auth["Sign in and register<br/>[Login.tsx]"]
  node_social_auth["Social auth controls"]
  node_screen_state["Screen initialization<br/>[useScreenInit.js]"]
  node_screen_manifest["Screen state manifest<br/>[canvas.manifest.js]"]
  node_shared_ui["Shared UI primitives"]
end

subgraph group_catalog["Film discovery"]
  node_discover["Discover films<br/>[Discover.tsx]"]
  node_discover_data["Discovery collections<br/>[discover.ts]"]
  node_film_catalog["Film catalog<br/>[films.ts]"]
  node_film_utilities["Film lookup and search<br/>[films.ts]"]
  node_spotlight["Film spotlight<br/>[SpotlightCard.tsx]"]
  node_film_detail["Film details<br/>[FilmDetail.tsx]"]
  node_film_poster["Film poster<br/>[Poster.tsx]"]
end

subgraph group_community["Diary and community"]
  node_library["Personal library state<br/>[LibraryContext.tsx]"]
  node_library_seed["Diary and watchlist data<br/>[library.ts]"]
  node_diary["Diary and logging<br/>[Diary.tsx]"]
  node_log_dialog["Log film dialog<br/>[LogFilmDialog.tsx]"]
  node_reviews["Film reviews<br/>[FilmReviews.tsx]"]
  node_activity_data["Activity and reviews data<br/>[activity.ts]"]
  node_profile["Member profile<br/>[Profile.tsx]"]
  node_feed["Social activity feed<br/>[Home.tsx]"]
  node_lists["Curated lists<br/>[Profile.tsx]"]
end

subgraph group_backend["Backend API"]
  node_health_api["Health API route<br/>[health.routes.ts]"]
  node_health_controller["Health controller"]
  node_health_service["Health service<br/>[health.service.ts]"]
  node_api_client["HTTP client<br/>[client.ts]"]
  node_api_service["Health API client<br/>[health.api.ts]"]
  node_api_server["FrameLog API<br/>[server.ts]"]
end

node_viewer(("Film fan"))

node_viewer -->|"uses"| node_app
node_app -.->|"routes to"| node_auth
node_auth -->|"renders"| node_social_auth
node_viewer -->|"browses"| node_discover
node_discover -->|"reads"| node_discover_data
node_discover -->|"searches with"| node_film_utilities
node_discover -->|"looks up"| node_film_catalog
node_discover -->|"renders"| node_spotlight
node_discover -->|"renders"| node_film_poster
node_film_utilities -.->|"searches"| node_film_catalog
node_viewer -.->|"opens"| node_film_detail
node_viewer -->|"logs films"| node_diary
node_diary -.->|"reads and updates"| node_library
node_library -->|"initializes from"| node_library_seed
node_library -->|"initializes from"| node_screen_state
node_screen_state -->|"reads"| node_screen_manifest
node_viewer -->|"reads and writes"| node_reviews
node_reviews -->|"opens log through"| node_library
node_reviews -->|"reads"| node_activity_data
node_viewer -->|"views"| node_profile
node_viewer -->|"shares activity"| node_feed
node_viewer -->|"curates films"| node_lists
node_app -.->|"uses"| node_shared_ui
node_viewer -->|"requests health"| node_api_server
node_api_server -.->|"serves"| node_health_api
node_health_api -.->|"dispatches to"| node_health_controller
node_health_controller -.->|"delegates to"| node_health_service
node_api_service -.->|"uses"| node_api_client
node_api_client -.->|"requests"| node_health_api

click node_app "https://github.com/harshit18523/framelog/blob/main/client/src/App.tsx"
click node_auth "https://github.com/harshit18523/framelog/blob/main/client/src/pages/Login.tsx"
click node_social_auth "https://github.com/harshit18523/framelog/blob/main/client/src/components/auth/SocialAuthButtons.tsx"
click node_screen_state "https://github.com/harshit18523/framelog/blob/main/client/src/useScreenInit.js"
click node_screen_manifest "https://github.com/harshit18523/framelog/blob/main/client/src/canvas.manifest.js"
click node_discover "https://github.com/harshit18523/framelog/blob/main/client/src/pages/Discover.tsx"
click node_discover_data "https://github.com/harshit18523/framelog/blob/main/client/src/data/discover.ts"
click node_film_catalog "https://github.com/harshit18523/framelog/blob/main/client/src/data/films.ts"
click node_film_utilities "https://github.com/harshit18523/framelog/blob/main/client/src/utils/films.ts"
click node_spotlight "https://github.com/harshit18523/framelog/blob/main/client/src/components/discover/SpotlightCard.tsx"
click node_film_detail "https://github.com/harshit18523/framelog/blob/main/client/src/pages/FilmDetail.tsx"
click node_film_poster "https://github.com/harshit18523/framelog/blob/main/client/src/components/film/Poster.tsx"
click node_library "https://github.com/harshit18523/framelog/blob/main/client/src/contexts/LibraryContext.tsx"
click node_library_seed "https://github.com/harshit18523/framelog/blob/main/client/src/data/library.ts"
click node_diary "https://github.com/harshit18523/framelog/blob/main/client/src/pages/Diary.tsx"
click node_log_dialog "https://github.com/harshit18523/framelog/blob/main/client/src/components/diary/LogFilmDialog.tsx"
click node_reviews "https://github.com/harshit18523/framelog/blob/main/client/src/components/film/FilmReviews.tsx"
click node_activity_data "https://github.com/harshit18523/framelog/blob/main/client/src/data/activity.ts"
click node_profile "https://github.com/harshit18523/framelog/blob/main/client/src/pages/Profile.tsx"
click node_feed "https://github.com/harshit18523/framelog/blob/main/client/src/pages/Home.tsx"
click node_lists "https://github.com/harshit18523/framelog/blob/main/client/src/pages/Profile.tsx"
click node_shared_ui "https://github.com/harshit18523/framelog/tree/main/client/src/components/ui"
click node_health_api "https://github.com/harshit18523/framelog/blob/main/server/src/routes/health.routes.ts"
click node_health_controller "https://github.com/harshit18523/framelog/blob/main/server/src/controllers/health.controller.ts"
click node_health_service "https://github.com/harshit18523/framelog/blob/main/server/src/services/health.service.ts"
click node_api_client "https://github.com/harshit18523/framelog/blob/main/client/src/api/client.ts"
click node_api_service "https://github.com/harshit18523/framelog/blob/main/client/src/api/health.api.ts"
click node_api_server "https://github.com/harshit18523/framelog/blob/main/server/src/server.ts"

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_auth,node_social_auth,node_screen_state,node_screen_manifest,node_shared_ui toneBlue
class node_discover,node_discover_data,node_film_catalog,node_film_utilities,node_spotlight,node_film_detail,node_film_poster toneAmber
class node_library,node_library_seed,node_diary,node_log_dialog,node_reviews,node_activity_data,node_profile,node_feed,node_lists toneMint
class node_health_api,node_health_controller,node_health_service,node_api_client,node_api_service,node_api_server toneRose
class node_viewer toneIndigo
```

## Components

### Client experience

- [Client app](https://github.com/harshit18523/framelog/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Sign in and register](https://github.com/harshit18523/framelog/blob/main/client/src/pages/Login.tsx): `client/src/pages/Login.tsx`
- [Social auth controls](https://github.com/harshit18523/framelog/blob/main/client/src/components/auth/SocialAuthButtons.tsx): `client/src/components/auth/SocialAuthButtons.tsx`
- [Screen initialization](https://github.com/harshit18523/framelog/blob/main/client/src/useScreenInit.js): `client/src/useScreenInit.js`
- [Screen state manifest](https://github.com/harshit18523/framelog/blob/main/client/src/canvas.manifest.js): `client/src/canvas.manifest.js`
- [Shared UI primitives](https://github.com/harshit18523/framelog/tree/main/client/src/components/ui): `client/src/components/ui`

### Film discovery

- [Discover films](https://github.com/harshit18523/framelog/blob/main/client/src/pages/Discover.tsx): `client/src/pages/Discover.tsx`
- [Discovery collections](https://github.com/harshit18523/framelog/blob/main/client/src/data/discover.ts): `client/src/data/discover.ts`
- [Film catalog](https://github.com/harshit18523/framelog/blob/main/client/src/data/films.ts): `client/src/data/films.ts`
- [Film lookup and search](https://github.com/harshit18523/framelog/blob/main/client/src/utils/films.ts): `client/src/utils/films.ts`
- [Film spotlight](https://github.com/harshit18523/framelog/blob/main/client/src/components/discover/SpotlightCard.tsx): `client/src/components/discover/SpotlightCard.tsx`
- [Film details](https://github.com/harshit18523/framelog/blob/main/client/src/pages/FilmDetail.tsx): `client/src/pages/FilmDetail.tsx`
- [Film poster](https://github.com/harshit18523/framelog/blob/main/client/src/components/film/Poster.tsx): `client/src/components/film/Poster.tsx`

### Diary and community

- [Personal library state](https://github.com/harshit18523/framelog/blob/main/client/src/contexts/LibraryContext.tsx): `client/src/contexts/LibraryContext.tsx`
- [Diary and watchlist data](https://github.com/harshit18523/framelog/blob/main/client/src/data/library.ts): `client/src/data/library.ts`
- [Diary and logging](https://github.com/harshit18523/framelog/blob/main/client/src/pages/Diary.tsx): `client/src/pages/Diary.tsx`
- [Log film dialog](https://github.com/harshit18523/framelog/blob/main/client/src/components/diary/LogFilmDialog.tsx): `client/src/components/diary/LogFilmDialog.tsx`
- [Film reviews](https://github.com/harshit18523/framelog/blob/main/client/src/components/film/FilmReviews.tsx): `client/src/components/film/FilmReviews.tsx`
- [Activity and reviews data](https://github.com/harshit18523/framelog/blob/main/client/src/data/activity.ts): `client/src/data/activity.ts`
- [Member profile](https://github.com/harshit18523/framelog/blob/main/client/src/pages/Profile.tsx): `client/src/pages/Profile.tsx`
- [Social activity feed](https://github.com/harshit18523/framelog/blob/main/client/src/pages/Home.tsx): `client/src/pages/Home.tsx`
- [Curated lists](https://github.com/harshit18523/framelog/blob/main/client/src/pages/Profile.tsx): `client/src/pages/Profile.tsx`

### Backend API

- [Health API route](https://github.com/harshit18523/framelog/blob/main/server/src/routes/health.routes.ts): `server/src/routes/health.routes.ts`
- [Health controller](https://github.com/harshit18523/framelog/blob/main/server/src/controllers/health.controller.ts): `server/src/controllers/health.controller.ts`
- [Health service](https://github.com/harshit18523/framelog/blob/main/server/src/services/health.service.ts): `server/src/services/health.service.ts`
- [HTTP client](https://github.com/harshit18523/framelog/blob/main/client/src/api/client.ts): `client/src/api/client.ts`
- [Health API client](https://github.com/harshit18523/framelog/blob/main/client/src/api/health.api.ts): `client/src/api/health.api.ts`
- [FrameLog API](https://github.com/harshit18523/framelog/blob/main/server/src/server.ts): `server/src/server.ts`

### Other components

- **Film fan**

## Connections

- Film fan → Client app: uses (evidence: `README.md`)
- Client app → Sign in and register: routes to
- Sign in and register → Social auth controls: renders
- Film fan → Discover films: browses (evidence: `README.md`)
- Discover films → Discovery collections: reads (evidence: `client/src/pages/Discover.tsx`)
- Discover films → Film lookup and search: searches with (evidence: `client/src/pages/Discover.tsx`)
- Discover films → Film catalog: looks up (evidence: `client/src/pages/Discover.tsx`)
- Discover films → Film spotlight: renders (evidence: `client/src/pages/Discover.tsx`)
- Discover films → Film poster: renders (evidence: `client/src/pages/Discover.tsx`)
- Film lookup and search → Film catalog: searches
- Film fan → Film details: opens
- Film fan → Diary and logging: logs films (evidence: `README.md`)
- Diary and logging → Personal library state: reads and updates
- Personal library state → Diary and watchlist data: initializes from (evidence: `client/src/contexts/LibraryContext.tsx`)
- Personal library state → Screen initialization: initializes from (evidence: `client/src/contexts/LibraryContext.tsx`)
- Screen initialization → Screen state manifest: reads (evidence: `client/src/useScreenInit.js`)
- Film fan → Film reviews: reads and writes (evidence: `README.md`)
- Film reviews → Personal library state: opens log through (evidence: `client/src/components/film/FilmReviews.tsx`)
- Film reviews → Activity and reviews data: reads (evidence: `client/src/components/film/FilmReviews.tsx`)
- Film fan → Member profile: views (evidence: `README.md`)
- Film fan → Social activity feed: shares activity (evidence: `README.md`)
- Film fan → Curated lists: curates films (evidence: `README.md`)
- Client app → Shared UI primitives: uses
- Film fan → FrameLog API: requests health (evidence: `README.md`)
- FrameLog API → Health API route: serves
- Health API route → Health controller: dispatches to
- Health controller → Health service: delegates to
- Health API client → HTTP client: uses
- HTTP client → Health API route: requests
