How johnbenedictjavier/videocall works
StudyMatch is a peer-learning app: students sign in, discover complementary study buddies or peer groups, send requests, and continue in conversations with messaging and calls. A separate Random Meet flow queues participants and opens a private Daily room, with reporting and blocking options. The app supports a local demo and Supabase-backed production mode. Edges use the supplied excerpts and README; unsampled page and backend details are represented only where documented, without assuming their internal call paths.
Main entry points: App.tsx App routing · AppDataContext.tsx App data state · supabaseService.ts Supabase operations · CallContext.tsx Call state
Components 25
Student experience
- App routing
src/App.tsx - Sign-in and signup
src/pages/AuthPage.tsx - Study dashboard
src/pages/DashboardPage.tsx - Student profile
src/pages/ProfilePage.tsx - Skill GPS
src/pages/SkillGPSPage.tsx
Matching and meet
- Match and Meet
src/pages/MatchPage.tsx - Match scoring
src/features/matching/matching.ts - Match requests
src/components/MatchRequestOverlay.tsx
Communication
- Conversation chat
src/pages/ChatPage.tsx - Message inbox
src/pages/MessagesPage.tsx - Typing indicators
src/hooks/useTyping.ts - Call state
src/context/CallContext.tsx - Call controls
src/components/CallModal.tsx
Identity and data
- App data state
src/context/AppDataContext.tsx - Authentication state
src/context/AuthContext.tsx - Demo profiles and data
src/data/demoData.ts - Demo local storage
src/lib/storage.ts - Supabase operations
src/services/supabaseService.ts - Supabase client
src/lib/supabase.ts
External services
- Supabase platform
- Supabase Realtime
- Supabase Storage
- Daily room function
supabase/functions/create-daily-room/index.ts - Daily rooms
Other components
- Student
Connections 34
- Student → App routing: uses
README.md - App routing → Sign-in and signup: routes to
src/App.tsx - App routing → Study dashboard: routes to
src/App.tsx - App routing → Match and Meet: routes to
src/App.tsx - App routing → Conversation chat: routes to
src/App.tsx - App routing → Message inbox: routes to
src/App.tsx - App routing → Student profile: routes to
src/App.tsx - App routing → Skill GPS: routes to
src/App.tsx - Sign-in and signup → Authentication state: authenticates through
src/pages/AuthPage.tsx - Authentication state → Supabase operations: fetches profiles
src/context/AuthContext.tsx - Authentication state → Demo local storage: loads demo identity
src/context/AuthContext.tsx - Demo local storage → Demo profiles and data: seeds from
src/lib/storage.ts - Study dashboard → Match scoring: calculates matches
src/pages/DashboardPage.tsx - Study dashboard → App data state: reads app data
src/pages/DashboardPage.tsx - Match and Meet → App data state: uses app data
src/pages/MatchPage.tsx - Match requests → App data state: updates requests
src/components/MatchRequestOverlay.tsx - App data state → Demo local storage: persists demo data
src/context/AppDataContext.tsx - App data state → Supabase operations: loads and writes
src/context/AppDataContext.tsx - Conversation chat → App data state: reads and sends
src/pages/ChatPage.tsx - Conversation chat → Typing indicators: uses indicators
src/pages/ChatPage.tsx - Message inbox → App data state: reads conversations
src/pages/MessagesPage.tsx - App data state → Supabase Realtime: subscribes to events
README.md - Typing indicators → Supabase Realtime: broadcasts typing
README.md - Call state → Supabase operations: creates call invites
src/context/CallContext.tsx - Call state → Supabase Realtime: receives call events
README.md - Call state → Call controls: opens call controls
- Call controls → Supabase operations: requests room
src/components/CallModal.tsx - Supabase operations → Supabase client: uses client
src/services/supabaseService.ts - Supabase client → Supabase platform: connects to
src/lib/supabase.ts - Supabase operations → Supabase platform: reads and writes
src/services/supabaseService.ts - Supabase operations → Supabase Storage: uploads chat images
src/services/supabaseService.ts - Call controls → Daily room function: requests Daily room
README.md - Daily room function → Daily rooms: creates private room
README.md - Daily room function → Supabase platform: persists room details
README.md