How khanhtran47/sora works
SORA is a Remix app for exploring and watching movies, TV shows, and anime. The main user journey is to discover or search for a title, inspect its details, then watch available episodes or films in a custom player; accounts and watch history support that experience. Its routes and service tree also show distinct metadata, streaming-provider, subtitle, and authentication subsystems. The README establishes the product capabilities, while sampled source confirms selected service relationships; many route-to-service connections are not shown, so those edges are omitted.
Main entry points: $movieId_.watch.tsx Watch routes · GlobalPlayer.tsx Global player · auth.server.ts Authentication · MediaDetail.tsx Media details
Components 25
Browse catalog
- Browse routes
app/routes/discover+ - Media routes
app/routes/anime+ - Search routes
app/routes/search+ - People routes
app/routes/people+ - Media details
app/components/media/MediaDetail.tsx - Media lists
app/components/media/MediaList.tsx
Watch media
- Watch routes
app/routes/movies+/$movieId_.watch.tsx - Global player
app/components/layouts/GlobalPlayer.tsx - Player settings
app/components/elements/player/PlayerSettings.tsx - Subtitle dialogs
app/components/elements/dialog/SearchSubtitleDialog.tsx - Provider API
app/routes/api+/provider.ts - Subtitle API
app/routes/api+/subtitles.search.ts
Accounts and history
- Sign-in routes
app/routes/_auth+/sign-in.tsx - Authentication
app/services/supabase/auth.server.ts - Session cookies
app/services/supabase/cookie.server.ts - Watch history
app/routes/watch-history.tsx - History API
app/routes/api+/history.ts - History records
app/services/supabase/table.server.ts
Media services
- TMDB metadata
app/services/tmdb/tmdb.server.ts - Stream providers
app/services/provider.server.ts - Supabase client
app/services/supabase/client.server.ts
App experience
- App layout
app/components/layouts/Layout.tsx - User settings
app/utils/react/hooks/useLocalStorage.ts - Translations
app/services/i18n/i18next.server.ts
Other components
- Viewer
Connections 18
- Viewer → Browse routes: browses
- Viewer → Search routes: searches
- Viewer → Watch routes: watches
- Media details → Viewer: presents details
- Watch routes → Global player: plays media
- Global player → Player settings: uses settings
- Global player → Subtitle dialogs: configures subtitles
- Watch routes → Provider API: requests streams
- Subtitle dialogs → Subtitle API: searches subtitles
- Sign-in routes → Authentication: authenticates
- Authentication → Supabase client: calls auth
app/services/supabase/auth.server.ts - Authentication → Session cookies: reads session
app/services/supabase/auth.server.ts - Watch history → History API: loads history
- History API → History records: reads and writes
- History records → Supabase client: queries
app/services/supabase/table.server.ts - Media details → TMDB metadata: loads metadata
- Media lists → Viewer: shows titles
- Provider API → Stream providers: resolves providers