How aliyan008/wordwise works
WordWise is a React word-guessing game with Supabase-backed accounts and results. The main user flow enters through the app’s page router, starts a game, and—when signed in—records completed games for leaderboard and profile statistics. Separate branches cover authentication and account recovery, profile/avatar management, local gameplay preferences, and FAQ content. The graph follows the sampled calls and imports; some page internals and Supabase schema details were not sampled, so those connections are omitted or documented only where the README supports them.
Main entry points: App.jsx Page router · ProfilePage.jsx Player profile · supabaseClient.js Supabase client · GamePage.jsx Word guessing
Components 18
App and navigation
- Page router
src/App.jsx - Landing page
src/pages/LandingPage.jsx - FAQ page
src/pages/FAQPage.jsx
Gameplay and preferences
- Game settings
src/pages/SettingsPage.jsx - Word guessing
src/pages/GamePage.jsx - Lives display
src/components/LivesDisplay.jsx - Preference controls
src/components/DifficultySelector.jsx
Accounts and profiles
- Authentication UI
src/pages/AuthPage.jsx - Password recovery
src/pages/RecoveryPage.jsx - Auth state
src/context/AuthContext.jsx - Auth and profile service
src/services/authService.js - Player profile
src/pages/ProfilePage.jsx - Avatar cropper
src/components/AvatarCropperModal.jsx - Username setup
src/components/UsernameSetupDialog.jsx
Results and rankings
- Leaderboard
src/pages/LeaderboardPage.jsx - Supabase client
src/supabaseClient.js - Supabase backend
Other components
- Player
Connections 31
- Player → Page router: uses
src/App.jsx - Page router → Auth state: reads auth
src/App.jsx - Page router → Landing page: routes to
src/App.jsx - Page router → Authentication UI: routes to
src/App.jsx - Page router → Game settings: routes to
src/App.jsx - Page router → Word guessing: routes to
src/App.jsx - Page router → Leaderboard: routes to
src/App.jsx - Page router → FAQ page: routes to
src/App.jsx - Page router → Player profile: routes to
src/App.jsx - Page router → Password recovery: routes to
src/App.jsx - Page router → Username setup: renders
src/App.jsx - Player → Landing page: browses
src/pages/LandingPage.jsx - Player → Word guessing: plays
src/pages/GamePage.jsx - Word guessing → Lives display: renders
src/pages/GamePage.jsx - Player → Game settings: changes preferences
src/pages/SettingsPage.jsx - Game settings → Preference controls: renders
src/pages/SettingsPage.jsx - Authentication UI → Auth state: calls auth
src/pages/AuthPage.jsx - Password recovery → Auth state: uses auth
src/pages/RecoveryPage.jsx - Auth state → Auth and profile service: delegates auth
src/context/AuthContext.jsx - Auth and profile service → Supabase client: uses client
src/services/authService.js - Supabase client → Supabase backend: connects
src/supabaseClient.js - Word guessing → Supabase client: records results
src/pages/GamePage.jsx - Leaderboard → Supabase client: loads games
src/pages/LeaderboardPage.jsx - Leaderboard → Auth and profile service: loads profiles
src/pages/LeaderboardPage.jsx - Player profile → Supabase client: loads statistics
src/pages/ProfilePage.jsx - Player profile → Auth and profile service: updates account
src/pages/ProfilePage.jsx - Player profile → Avatar cropper: opens cropper
src/pages/ProfilePage.jsx - Player → Leaderboard: views rankings
src/pages/LeaderboardPage.jsx - Player → Player profile: manages account
src/pages/ProfilePage.jsx - Player → Authentication UI: authenticates
src/pages/AuthPage.jsx - Player → FAQ page: reads help
src/pages/FAQPage.jsx