How medelbou3/netflix works
This is an Electron-hosted movie and TV streaming application. The main user journey is browsing a TMDb-backed catalog, opening title details, and watching selected media; account sign-in and synced watch progress/watchlists support that journey. The tree also shows live TV, community discussions and lists, and settings. Edges reflect calls visible in sampled excerpts or direct service use; wiring among unsampled screens is intentionally omitted, and the README provides no additional architecture evidence.
Main entry points: firebase-auth.js Firebase authentication · liveTvView.js Live TV interface · firebase-firestore.js Firestore services · app.js App orchestrator
Components 24
Catalog and discovery
- App orchestrator
js/app.js - TMDb service
js/api/tmdb.js - Fallback catalog
js/api/mockData.js - Title details
js/components/detailView.js - Media cards and grid
js/components/mediaGrid.js - Catalog filters
js/components/filterBar.js
Viewing and live TV
- Video playback
js/components/playerView.js - Player component
js/components/videoPlayer.js - TV episodes
js/components/tvEpisodes.js - Live TV interface
js/components/liveTvView.js - M3U parser
js/live-tv/m3uParser.js - Live stream player
js/live-tv/liveTvPlayer.js - Playlist and favorites
js/live-tv/liveTvStore.js
Accounts and saved state
- Authentication UI
js/components/auth/AuthView.js - Firebase authentication
js/firebase/firebase-auth.js - Watch progress and lists
js/utils/storage.js - Firestore services
js/firebase/firebase-firestore.js - Account settings
js/components/settingsView.js - Firebase platform
js/firebase/firebase-app.js
Community and engagement
- Community discussions
js/components/community/CommunityView.js - Community data service
js/firebase/firebase-community.js
Other components
- Viewer
- TMDb API
- Firebase services
Connections 22
- Viewer → App orchestrator: uses
- App orchestrator → TMDb service: requests catalog data
- TMDb service → Fallback catalog: uses fallback data
- TMDb service → TMDb API: fetches metadata
- App orchestrator → Watch progress and lists: uses saved state
- Viewer → Authentication UI: submits credentials
- Authentication UI → Firebase authentication: authenticates
- Account settings → Firebase authentication: observes and changes auth
- Watch progress and lists → Firebase authentication: observes current user
- Watch progress and lists → Firestore services: syncs saved state
- Firebase authentication → Firestore services: syncs profile
- Firestore services → Firebase platform: uses platform
- Firebase authentication → Firebase platform: uses platform
- Firestore services → Firebase services: reads and writes
- Firebase authentication → Firebase services: authenticates
- Viewer → Live TV interface: loads channels
- Live TV interface → M3U parser: parses playlists
- Live TV interface → Live stream player: controls playback
- Live TV interface → Playlist and favorites: loads and saves preferences
- Viewer → Community discussions: posts and discusses
- Community discussions → Community data service: manages posts and comments
- Community data service → Firebase platform: uses platform