How pratikonly/pirateone-lovable works
Pirate-v2 is a media discovery and streaming web app. Users browse movie, series, and anime catalogs, search for titles, open a watch page, and track viewing progress or saved titles. Live and sports pages are additional product areas. The graph reflects the sampled client routing and service calls; several page implementations and server proxy handlers were not sampled, so their internal relationships are omitted where unverified.
Main entry points: App.tsx App routes · Watch.tsx Watch page · Index.tsx Home catalog · tmdb.ts TMDb client
Components 23
App routing
- App routes
src/App.tsx - Help
src/pages/Help.tsx
Media discovery
- Home catalog
src/pages/Index.tsx - Search
src/pages/Search.tsx - Catalog pages
src/components/CatalogPage.tsx - Media rows
src/components/MovieRow.tsx - Community reviews
src/components/TMDBReviews.tsx - Sports
src/pages/Sports.tsx - Live media
src/pages/Live.tsx
Viewing and lists
- Watch page
src/pages/Watch.tsx - Video player
src/components/VideoPlayer.tsx - Watch progress
src/lib/watchProgress.ts - Continue watching
src/components/ContinueWatching.tsx - Watchlist data
src/lib/watchlistDb.ts - Watchlist page
src/pages/Watchlist.tsx
Identity and state
- Authentication
src/contexts/AuthContext.tsx - Pirate identity
src/contexts/PirateIdentityContext.tsx - Settings
src/pages/Settings.tsx
Data services
- Supabase client
src/integrations/supabase/client.ts - TMDb client
src/lib/tmdb.ts - TMDb proxy endpoint
api/tmdb-proxy.ts - AniList client
src/lib/anilist.ts
Other components
- Viewer
Connections 33
- Viewer → App routes: opens app
src/App.tsx - App routes → Home catalog: routes to
src/App.tsx - App routes → Search: routes to
src/App.tsx - App routes → Watch page: routes to
src/App.tsx - App routes → Watchlist page: routes to
src/App.tsx - App routes → Sports: routes to
src/App.tsx - App routes → Live media: routes to
src/App.tsx - App routes → Settings: routes to
src/App.tsx - App routes → Help: routes to
src/App.tsx - App routes → Authentication: provides context
src/App.tsx - App routes → Pirate identity: provides context
src/App.tsx - Home catalog → TMDb client: fetches catalog
src/pages/Index.tsx - Home catalog → AniList client: fetches anime
src/pages/Index.tsx - Home catalog → Watch progress: loads progress
src/pages/Index.tsx - Home catalog → Media rows: renders rows
src/pages/Index.tsx - Home catalog → Continue watching: renders progress
src/pages/Index.tsx - Search → TMDb client: searches titles
src/pages/Search.tsx - Watch page → TMDb client: loads title data
src/pages/Watch.tsx - Watch page → AniList client: loads anime data
src/pages/Watch.tsx - Watch page → Video player: renders player
src/pages/Watch.tsx - Watch page → Watch progress: updates progress
src/pages/Watch.tsx - Watch page → Watchlist data: uses saved titles
src/pages/Watch.tsx - Watch page → Community reviews: renders reviews
src/pages/Watch.tsx - Continue watching → TMDb client: loads title details
src/components/ContinueWatching.tsx - Continue watching → Watch progress: reads progress
src/components/ContinueWatching.tsx - Watchlist page → Watchlist data: uses watchlist data
- Authentication → Supabase client: authenticates with
src/contexts/AuthContext.tsx - Pirate identity → Authentication: reads user
src/contexts/PirateIdentityContext.tsx - Pirate identity → Supabase client: reads profiles
src/contexts/PirateIdentityContext.tsx - Pirate identity → Viewer: loads guest identity
src/contexts/PirateIdentityContext.tsx - TMDb client → TMDb proxy endpoint: posts requests
src/lib/tmdb.ts - Catalog pages → TMDb client: catalog data
- Sports → Live media: related live content