How ansh-raj08/moodsync works
MoodSync is a couples’ mood-tracking web app. Users create accounts, pair via codes and requests, log daily moods, then view shared trends and relationship-health insights; they can also chat, review history, manage dissolution, share location, and place voice calls. The static pages load browser JavaScript that uses a shared Supabase client for authentication, database access, and realtime features. Edges follow README statements or shown source calls; location and voice features are included from the source index, but their page wiring and some integrations were not fully sampled.
Main entry points: auth.js Authentication · dashboard.js Relationship dashboard · chat.js Partner chat · voice-call.js Voice calling
Components 19
Account and pairing
- Account pages
login.html - Authentication
js/auth.js - Pairing page
pair.html - Partner pairing
js/pairing.js - Relationship settings
js/settings.js
Mood insights
- Mood check-in
mood.html - Mood logging
js/mood.js - Relationship dashboard
js/dashboard.js - Health score
js/algorithm.js - Mood history
js/mood-history.js
Partner connections
- Partner chat
js/chat.js - Voice calling
js/voice-call.js - Call interface
js/voice-call-ui.js - Location sharing
js/location.js
Shared platform
- Data utilities
js/data.js - Supabase client
js/supabaseClient.js - Shared UI helpers
js/ui.js
Other components
- Couple user
- Supabase services
Connections 29
- Couple user → Account pages: signs in
README.md - Account pages → Authentication: submits credentials
README.md - Authentication → Supabase client: uses client
js/auth.js - Supabase client → Supabase services: auth and data
js/supabaseClient.js - Authentication → Pairing page: redirects unpaired
js/auth.js - Couple user → Pairing page: enters pair code
README.md - Pairing page → Partner pairing: submits request
README.md - Partner pairing → Supabase services: reads and writes pairing
README.md - Couple user → Mood check-in: logs mood
README.md - Mood check-in → Mood logging: submits entry
README.md - Mood logging → Supabase services: writes mood log
README.md - Relationship dashboard → Data utilities: loads mood data
js/dashboard.js - Relationship dashboard → Health score: calculates score
README.md - Couple user → Relationship dashboard: views insights
README.md - Relationship dashboard → Supabase services: subscribes to updates
README.md - Couple user → Mood history: views history
README.md - Mood history → Supabase services: reads and deletes logs
js/mood-history.js - Couple user → Relationship settings: manages relationship
README.md - Relationship settings → Data utilities: uses dissolution utilities
- Couple user → Partner chat: messages partner
README.md - Partner chat → Supabase services: loads and syncs messages
README.md - Partner chat → Voice calling: initializes calls
js/chat.js - Voice calling → Call interface: initializes interface
- Voice calling → Supabase services: signals calls
js/voice-call.js - Couple user → Location sharing: shares location
- Location sharing → Supabase services: stores location
- Data utilities → Supabase services: queries and subscribes
js/data.js - Authentication → Supabase services: authenticates users
js/auth.js - Couple user → Shared UI helpers: receives feedback