How mukund-xo/watchparty works
SynCinema is a browser-based campus watch-party application: users browse a film catalog, create or join a passkey room, then watch together with synchronized playback and room chat. The main app coordinates the lobby and room view; room controls use a cross-tab sync channel, while account and theme settings are client-side contexts. The graph reflects the sampled source and SOURCE INDEX references; unsampled implementations are represented only where their relationships are evidenced.
Main entry points: App.tsx App Coordinator · security.ts Input and Sync Validation · CreateRoomModal.tsx Room Setup · WatchRoomView.tsx Room Playback and Chat
Components 16
Lobby Experience
- App Coordinator
src/App.tsx - Top Bar
src/components/TopBar.tsx - Hero Section
src/components/HeroSection.tsx - Film Listings
src/components/ListingsGrid.tsx - Sync Guide
src/components/HowSyncWorks.tsx - Lobby Footer
src/components/Footer.tsx - Clapper Logo
src/components/ClapperLogo.tsx
Watch Rooms
- Room Setup
src/components/CreateRoomModal.tsx - Room Playback and Chat
src/components/WatchRoomView.tsx - Sync Channel
src/components/SyncEngine.ts
Identity and Theme
- Account Settings
src/components/AccountModal.tsx - User Identity
src/context/AuthContext.tsx - Theme Settings
src/context/ThemeContext.tsx
App Foundations
- Film Catalog
src/data/movies.ts - Input and Sync Validation
src/utils/security.ts
Other components
- Viewer
Connections 25
- Viewer → App Coordinator: uses
- App Coordinator → Top Bar: renders
src/App.tsx - App Coordinator → Hero Section: renders
src/App.tsx - App Coordinator → Film Listings: renders
src/App.tsx - App Coordinator → Sync Guide: renders
src/App.tsx - App Coordinator → Lobby Footer: renders
src/App.tsx - App Coordinator → Room Setup: opens
src/App.tsx - App Coordinator → Room Playback and Chat: renders
src/App.tsx - App Coordinator → Film Catalog: selects film from
src/App.tsx - App Coordinator → Input and Sync Validation: validates room code with
src/App.tsx - Top Bar → Account Settings: opens
src/components/TopBar.tsx - Top Bar → Clapper Logo: renders
src/components/TopBar.tsx - Film Listings → Film Catalog: reads
src/components/ListingsGrid.tsx - Room Setup → Film Catalog: selects from
src/components/CreateRoomModal.tsx - Room Setup → Sync Channel: generates room code with
src/components/CreateRoomModal.tsx - Room Setup → User Identity: reads host identity
src/components/CreateRoomModal.tsx - Room Setup → Input and Sync Validation: validates inputs with
src/components/CreateRoomModal.tsx - Room Playback and Chat → Sync Channel: creates and receives from
src/components/WatchRoomView.tsx - Room Playback and Chat → User Identity: reads current user
src/components/WatchRoomView.tsx - Room Playback and Chat → Input and Sync Validation: rate limits chat with
src/components/WatchRoomView.tsx - Sync Channel → Input and Sync Validation: validates actions with
src/components/SyncEngine.ts - Account Settings → User Identity: updates identity through
src/components/AccountModal.tsx - Account Settings → Theme Settings: updates appearance through
src/components/AccountModal.tsx - Account Settings → Input and Sync Validation: sanitizes text with
src/components/AccountModal.tsx - User Identity → Input and Sync Validation: sanitizes nickname with
src/context/AuthContext.tsx