How mal-xa/sora-s-stream works
Sora’s Stream is a React/Capacitor video-streaming app backed by Supabase. Users enter through the routed app, authenticate, browse video categories and collections, and play or rent content; administrators manage videos, rentals, and users. The graph also shows the internal data-access layer. Some feature modules are documented or indexed but were not excerpted, so their connections are included only where the README documents the capability; edges from source excerpts cite the file showing the relationship.
Main entry points: App.tsx Routed app · useVideos.ts Video data hooks · VideoPlayer.tsx Video player · AuthContext.tsx Authentication state
Components 17
App and navigation
- Routed app
src/App.tsx
Identity and platform
- Authentication page
src/pages/Auth.tsx - Authentication state
src/context/AuthContext.tsx - Native Google auth
src/plugins/native-google-auth.ts - Supabase client
src/lib/supabase.ts
Streaming and library
- Home and browse
src/pages/Index.tsx - Video categories
src/pages/Category - Favorites and wishlist
src/pages/Profile - Video player
src/components/VideoPlayer.tsx - Video rental
src/components/RentalModal.tsx - Video data hooks
src/hooks/useVideos.ts - Video domain types
src/types/video.ts
Administration
- Admin management
src/pages/Admin - Admin UI
src/components/Admin - Database helpers
src/lib/db-utils.ts
Other components
- Viewer
- Supabase service
Connections 24
- Viewer → Routed app: opens
README.md - Routed app → Home and browse: routes to
src/App.tsx - Routed app → Authentication page: routes to
src/App.tsx - Routed app → Video categories: routes to
src/App.tsx - Routed app → Favorites and wishlist: routes to
src/App.tsx - Authentication page → Authentication state: uses auth
src/pages/Auth.tsx - Routed app → Authentication state: provides auth
src/App.tsx - Authentication state → Supabase client: initializes
src/context/AuthContext.tsx - Supabase client → Supabase service: connects
src/lib/supabase.ts - Authentication state → Native Google auth: loads native auth
src/context/AuthContext.tsx - Home and browse → Video data hooks: loads videos
src/pages/Index.tsx - Video categories → Video data hooks: loads videos
src/pages/Category/Movies.tsx - Video data hooks → Supabase client: queries through
src/hooks/useVideos.ts - Video data hooks → Database helpers: uses insert helper
src/hooks/useVideos.ts - Video data hooks → Supabase service: reads and writes
src/hooks/useVideos.ts - Home and browse → Video player: renders player
src/pages/Index.tsx - Video player → Supabase client: checks access
src/components/VideoPlayer.tsx - Video player → Video rental: opens rental
src/components/VideoPlayer.tsx - Video player → Supabase service: reads rental access
src/components/VideoPlayer.tsx - Admin management → Admin UI: uses admin UI
- Admin management → Supabase service: manages content and users
README.md - Viewer → Favorites and wishlist: saves videos
README.md - Viewer → Video rental: rents videos
README.md - Video data hooks → Video domain types: uses types
src/hooks/useVideos.ts