How nkipk-nk/bingr works
bingr is a movie and TV tracking app: users discover titles, add them to a library, record ratings and episode progress, and explore diary, stats, lists, and social activity. App.jsx coordinates authentication and the domain hooks, while route-level pages and shared components present those capabilities. The README identifies Supabase for persistence and auth and TMDB for catalogue data. Some feature pages and hooks were not sampled; their inclusion and connections rely on the README and SOURCE INDEX, so uncertain runtime links are omitted.
Main entry points: App.jsx App coordinator · supabase.js Supabase client · DetailPanel.jsx Title details · tmdb.js TMDB catalogue client
Components 23
App and navigation
- App coordinator
src/App.jsx - Navigation shell
src/components/nav/NavShell.jsx
Catalogue and tracking
- Discover titles
src/pages/DiscoverPage.jsx - Title details
src/components/DetailPanel.jsx - Watch library
src/hooks/useLibrary.js - Episode progress
src/hooks/useEpisodes.js - Viewing diary
src/hooks/useDiary.js - Viewing statistics
src/pages/StatsPage.jsx - Curated lists
src/hooks/useLists.js
Community features
- Activity feed
src/hooks/useFeed.js - People and follows
src/hooks/useFollows.js - Title comments
src/hooks/useComments.js - User profiles
src/pages/UserProfilePage.jsx
Data and services
- Supabase client
src/lib/supabase.js - Supabase database
- TMDB catalogue client
src/lib/tmdb.js - TMDB service
- Error logging
src/lib/logger.js - Sentry
Account and operations
- Authentication
src/hooks/useAuth.js - Administration
src/pages/AdminPanel.jsx - Account deletion
supabase/functions/delete-account/index.ts
Other components
- Viewer
Connections 35
- Viewer → App coordinator: uses
src/App.jsx - App coordinator → Authentication: manages session
src/App.jsx - App coordinator → Watch library: loads library
src/App.jsx - App coordinator → Episode progress: loads progress
src/App.jsx - App coordinator → Curated lists: loads lists
src/App.jsx - App coordinator → Viewing diary: loads diary
src/App.jsx - App coordinator → People and follows: loads follows
src/App.jsx - App coordinator → Activity feed: loads feed
src/App.jsx - App coordinator → Navigation shell: renders shell
src/App.jsx - App coordinator → Discover titles: routes to
src/App.jsx - App coordinator → Viewing statistics: routes to
src/App.jsx - App coordinator → User profiles: routes to
src/App.jsx - Discover titles → TMDB catalogue client: searches catalogue
src/pages/DiscoverPage.jsx - Title details → TMDB catalogue client: loads title data
src/components/DetailPanel.jsx - Title details → Episode progress: uses progress
src/components/DetailPanel.jsx - Title details → Curated lists: adds title
- Title details → Title comments: shows comments
src/components/DetailPanel.jsx - User profiles → People and follows: uses follow data
- Watch library → Supabase client: reads and writes
src/hooks/useLibrary.js - Episode progress → Supabase client: reads and writes
src/hooks/useEpisodes.js - Curated lists → Supabase client: reads and writes
src/hooks/useLists.js - Authentication → Supabase client: authenticates
src/hooks/useAuth.js - People and follows → Supabase client: reads and writes
src/hooks/useFollows.js - User profiles → Supabase client: loads profile
src/pages/UserProfilePage.jsx - Administration → Supabase client: admin queries
- Title comments → Supabase client: reads and writes
- Viewing diary → Supabase client: reads and writes
- Activity feed → Supabase client: reads activity
- Viewing statistics → Watch library: summarizes viewing
- Supabase client → Supabase database: queries data
README.md - TMDB catalogue client → TMDB service: requests metadata
src/lib/tmdb.js - Supabase client → Error logging: logs auth events
src/lib/supabase.js - TMDB catalogue client → Error logging: logs failures
src/lib/tmdb.js - Error logging → Sentry: reports errors
src/lib/logger.js - Account deletion → Supabase database: deletes account data