How apolo2426/epopeya works
This is a React-based, Spanish-language historical exploration game: users authenticate, choose an era, play its chapter, make decisions, answer trivia, and can earn collectible rewards. The graph preserves the principal journey and the distinct authentication, era selection, chapter-play, and collectible areas. Relationship evidence is limited to the README and the supplied source excerpts and index; unsampled implementation details are not inferred.
Main entry points: App.tsx App Shell · capitulo.tsx Chapter Screen · AuthProvider.tsx Auth Provider · eras.tsx Era Screen
Components 27
Application
- React Entry
src/main.tsx - App Shell
src/App.tsx
Authentication
- Auth Provider
src/modules/auth/context/AuthProvider.tsx - Auth Context
src/modules/auth/context/AuthContext.ts - Auth State Hook
src/modules/auth/hooks/useAuth.ts - Auth Screen
src/modules/auth/auth.tsx - Email Auth Form
src/modules/auth/_components/EmailAuthForm.tsx - Email Form Logic
src/modules/auth/hooks/useEmailAuthForm.ts - Auth Services
src/modules/auth/services
Era Selection
- Era Screen
src/modules/eras/eras.tsx - Era Data Hook
src/modules/eras/hooks/useEras.ts - Era Catalog
src/modules/eras/utils/erasCatalog.ts
Chapter Gameplay
- Chapter Screen
src/modules/capitulo/capitulo.tsx - Chapter Session
src/modules/capitulo/hooks/useChapterSession.ts - Scene Player
src/modules/capitulo/_components/ScenePlayer.tsx - Chapter Hooks
src/modules/capitulo/hooks - Chapter Services
src/modules/capitulo/services - Trivia Session
src/modules/capitulo/hooks/useTriviaSession.ts - Trivia Screen
src/modules/capitulo/_components/trivia/TriviaScreen.tsx - Answer Service
src/modules/capitulo/services/service_capitulo_completarTest.ts
Shared Experience
- Supabase Client
src/lib/supabase.ts - Collectible Viewer
src/components/shared/three/CollectibleViewer.tsx - Model Registry
src/components/shared/three/modelRegistry.ts - Bell Model
src/components/shared/three/models/CampanaLibertad.tsx - Auth Loader
src/components/shared/AuthLoader.tsx
Other components
- Player
- Supabase
Connections 28
- React Entry → App Shell: renders
src/main.tsx - React Entry → Auth Provider: wraps
src/main.tsx - Auth Provider → Auth Context: provides
src/modules/auth/context/AuthProvider.tsx - Auth Provider → Auth State Hook: uses session hook
src/modules/auth/context/AuthProvider.tsx - App Shell → Auth State Hook: checks auth
src/App.tsx - App Shell → Auth Screen: shows signed-out
src/App.tsx - App Shell → Auth Loader: shows loading
src/App.tsx - App Shell → Era Screen: shows eras
src/App.tsx - App Shell → Chapter Screen: opens chapter
src/App.tsx - Auth Screen → Email Auth Form: renders
src/modules/auth/auth.tsx - Email Auth Form → Email Form Logic: uses form logic
- Email Form Logic → Auth Services: submits credentials
src/modules/auth/hooks/useEmailAuthForm.ts - Auth Services → Supabase Client: calls auth API
src/modules/auth/services/service_auth_signUpWithEmail.ts - Supabase Client → Supabase: connects
src/lib/supabase.ts - Era Screen → Era Data Hook: loads eras
- Era Data Hook → Era Catalog: reads catalog
src/modules/eras/hooks/useEras.ts - Era Screen → Chapter Screen: selects era
src/App.tsx - Chapter Screen → Chapter Session: uses session
src/modules/capitulo/capitulo.tsx - Chapter Session → Chapter Hooks: loads chapter data
src/modules/capitulo/hooks/useChapterSession.ts - Chapter Screen → Scene Player: renders playback
src/modules/capitulo/capitulo.tsx - Chapter Session → Chapter Services: starts chapter
- Chapter Screen → Trivia Screen: renders trivia
src/modules/capitulo/capitulo.tsx - Trivia Screen → Trivia Session: uses session
- Trivia Session → Answer Service: submits answers
src/modules/capitulo/hooks/useTriviaSession.ts - Answer Service → Supabase Client: calls database
src/modules/capitulo/services/service_capitulo_completarTest.ts - Collectible Viewer → Model Registry: selects model
src/components/shared/three/CollectibleViewer.tsx - Model Registry → Bell Model: registers model
src/components/shared/three/modelRegistry.ts - Player → React Entry: opens app