How arthurbonetti/nextwatch works
NextWatch helps users discover streaming titles from their active subscriptions, choose what to watch, and manage subscription costs. Its main flow loads a provider-filtered catalog, supports roulette selection and title details, and records saved titles or viewing decisions. Separate branches cover account access and subscription finances. The README describes offline local persistence and authenticated Supabase synchronization; sampled excerpts show some context-to-service calls, but not every screen or storage operation.
Main entry points: authApi.ts Auth client · CatalogContext.tsx Catalog state · index.tsx Home and roulette · SubscriptionsContext.tsx Subscription state
Components 24
Discovery and viewing
- Home and roulette
app/(tabs)/index.tsx - Catalog search
app/(tabs)/tab2.tsx - Title details
app/title/[id].tsx - My List
app/my-list.tsx - Draw history
app/draw-history.tsx - Catalog state
contexts/CatalogContext.tsx - Static catalog
constants/catalog.ts - Roulette flow
components/organisms/DrawModal/DrawFlowModal.tsx
User data and sync
- Subscription dashboard
app/subscriptions.tsx - Subscription state
contexts/SubscriptionsContext.tsx - Saved titles
contexts/MyListContext.tsx - Decision history
contexts/DrawHistoryContext.tsx - Series progress
hooks/useSeriesProgress.ts
Authentication
- Login and registration
app/(auth)/login.tsx - Auth state
contexts/AuthContext.tsx - Auth client
services/authApi.ts - Secure session store
services/secureStore.ts
External services
- Catalog service
services/tmdb.ts - TMDB proxy
supabase/functions/tmdb-proxy/index.ts - TMDB
- Supabase Auth and data
Interface components
- Title detail sections
components/organisms/TitleDetails - Subscription editor
components/organisms/SubscriptionEditorModal.tsx
Other components
- Viewer
Connections 35
- Viewer → Home and roulette: opens
README.md - Viewer → Catalog search: searches
README.md - Viewer → Login and registration: signs in
README.md - Viewer → Subscription dashboard: manages
README.md - Home and roulette → Catalog state: reads catalog
app/(tabs)/index.tsx - Home and roulette → Subscription state: reads providers
app/(tabs)/index.tsx - Home and roulette → Roulette flow: opens
app/(tabs)/index.tsx - Home and roulette → Decision history: records decisions
app/(tabs)/index.tsx - Home and roulette → Title details: opens details
app/(tabs)/index.tsx - Catalog search → Catalog state: searches
app/(tabs)/tab2.tsx - Catalog search → Subscription state: filters by providers
app/(tabs)/tab2.tsx - Title details → Title detail sections: renders
app/title/[id].tsx - Title details → Catalog state: reads title data
app/title/[id].tsx - Title details → Saved titles: saves title
app/title/[id].tsx - My List → Saved titles: reads saved titles
app/my-list.tsx - My List → Catalog state: resolves title data
app/my-list.tsx - Draw history → Decision history: reads decisions
README.md - Catalog state → Static catalog: uses fallback
contexts/CatalogContext.tsx - Catalog state → Subscription state: uses active providers
contexts/CatalogContext.tsx - Catalog state → Catalog service: fetches and searches
contexts/CatalogContext.tsx - Subscription dashboard → Subscription state: reads and updates
app/subscriptions.tsx - Subscription dashboard → Subscription editor: opens editor
app/subscriptions.tsx - Subscription state → Auth state: gets session
contexts/SubscriptionsContext.tsx - Subscription state → Auth client: syncs subscriptions
contexts/SubscriptionsContext.tsx - Saved titles → Auth client: syncs saved titles
contexts/MyListContext.tsx - Decision history → Auth client: syncs decisions
contexts/DrawHistoryContext.tsx - Series progress → Auth client: syncs progress
hooks/useSeriesProgress.ts - Login and registration → Auth state: submits credentials
- Auth state → Auth client: authenticates
contexts/AuthContext.tsx - Auth client → Secure session store: stores session
services/authApi.ts - Auth client → Supabase Auth and data: auth and data requests
README.md - Catalog service → TMDB proxy: requests catalog data
README.md - TMDB proxy → TMDB: forwards requests
README.md - Catalog service → Auth client: uses authenticated requests
services/tmdb.ts - Title detail sections → Catalog service: loads detail data
app/title/[id].tsx