How esheliko/typecast works
Typecast is a private, installable watch-tracking app: users search films and series, inspect details and streaming availability, then mark titles and track progress in a personal library. That library also powers actor/title connections, spoiler-aware viewing, and “where do I know them from?” lookups. The graph preserves documented capabilities including Letterboxd import, calendar feeds, and in-watch answers. Several subsystems are represented by their exact source directories because their implementation was not sampled; those links are documented or omitted rather than inferred.
Main entry points: library.ts Library reads and sync · tmdb.ts Film and TV metadata · TitleView.tsx Title details · answer.ts Answer assembly
Components 20
App experience
- Search and browse
src/components/Search.tsx - Title details
src/components/TitleView.tsx - Person details
src/components/PersonView.tsx - Watching answers
src/components/Watching.tsx
Discovery and people
- Cast connections
src/components/cast - Actor finder
src/components/who - Shared cast
src/lib/connect.ts - Cast and credit data
src/lib/who-data.ts
Personal library
- Library and stats
src/components/LibraryView.tsx - Watch status and progress
src/app/actions.ts - Library reads and sync
src/lib/library.ts - Letterboxd import
src/lib/letterboxd.ts - Calendar feed
src/lib/ical.ts
Data services
- Film and TV metadata
src/lib/tmdb.ts - Answer assembly
src/lib/answer.ts
Account and platform
- Supabase database and auth
src/lib/supabase/server.ts - Installable app
public/sw.js
Other components
- Viewer
- TMDB service
- Signed-in account
Connections 25
- Viewer → Search and browse: searches titles
README.md - Search and browse → Film and TV metadata: finds titles
- Film and TV metadata → TMDB service: fetches metadata
README.md - Viewer → Title details: opens details
README.md - Title details → Film and TV metadata: shows details
README.md - Title details → Watch status and progress: updates watch status
- Signed-in account → Watch status and progress: marks titles
src/app/actions.ts - Watch status and progress → Supabase database and auth: writes library rows
src/app/actions.ts - Library and stats → Library reads and sync: reads library
src/lib/library.ts - Library reads and sync → Supabase database and auth: reads saved titles
src/lib/library.ts - Library reads and sync → Film and TV metadata: checks new episodes
src/lib/library.ts - Viewer → Cast connections: browses cast
README.md - Cast connections → Shared cast: finds shared titles
README.md - Viewer → Actor finder: asks where known
README.md - Actor finder → Cast and credit data: loads cast data
- Cast and credit data → Film and TV metadata: loads credits
src/lib/who-data.ts - Viewer → Watching answers: asks mid-watch
README.md - Watching answers → Answer assembly: requests answers
README.md - Answer assembly → Library reads and sync: uses library
src/app/api/ask/route.ts - Answer assembly → Film and TV metadata: uses TMDB
README.md - Viewer → Letterboxd import: imports watch list
README.md - Letterboxd import → Library reads and sync: syncs titles
src/lib/library.ts - Viewer → Calendar feed: subscribes to feed
README.md - Calendar feed → Library reads and sync: uses library
src/app/api/event/route.ts - Viewer → Installable app: installs app
README.md