How haidirwf/vs-tebak works
Skillungo is a gamified learning platform: students sign in, study interactive modules or compete in quizzes, then earn XP and progress their RPG character, quests, and rewards. The map emphasizes those domain stages and the documented leaderboard, streak, and voucher capabilities. Evidence is limited to the README and indexed excerpts; unsampled route and client wiring is therefore shown only where documented, or omitted.
Main entry points: route.ts XP & Activity API · battle/page.tsx Battle Arena · character/page.tsx Character Setup · modules Learning Modules
Components 28
Learning
- Learning Modules
app/(dashboard)/modules - Content Cache
stores/contentStore.ts
Quiz Battles
- Battle Arena
app/(dashboard)/battle/page.tsx - Computer Practice
app/(dashboard)/battle/computer - Battle Room
app/(dashboard)/battle/[roomId] - Battle Room API
app/api/battle/route.ts - Battle State
stores/battleStore.ts - Combat Stage
components/battle/BattleArenaStage.tsx
RPG Progression
- Character Setup
app/(dashboard)/character/page.tsx - Role & Stats Rules
lib/game/character.ts - Equipment Catalog
lib/game/items.ts - Character Visuals
components/character/CharacterVisual.tsx - Player Cache
stores/userStore.ts - XP & Activity API
app/api/xp/route.ts - XP & Level Rules
lib/game/xp.ts - Daily Quests
lib/game/dailyQuests.ts - Quest Progress
lib/game/quests.ts - Streak Rules
lib/game/streak.ts - Achievement Badges
lib/game/badges.ts
Rewards & Rankings
- Voucher Store
app/(dashboard)/voucher/VoucherStoreClient.tsx - Voucher Redemption
app/api/vouchers/redeem/route.ts - Leaderboards
app/(dashboard)/leaderboard - Progress Dashboard
app/(dashboard)/dashboard/page.tsx
Identity & Data
- Landing
components/landing/LandingClient.tsx - Sign in / Register
app/(auth) - Auth & Profile
lib/auth/get-user.ts - Supabase
Other components
- Student
Connections 34
- Student → Landing: visits
- Landing → Sign in / Register: links to
components/landing/LandingClient.tsx - Student → Sign in / Register: signs in
- Sign in / Register → Supabase: authenticates
app/(auth)/login/page.tsx - Auth & Profile → Supabase: reads profile
lib/auth/get-user.ts - Student → Learning Modules: studies
- Learning Modules → Content Cache: uses cache
app/(dashboard)/modules/ModulesClient.tsx - Student → Battle Arena: starts duel
- Student → Computer Practice: practices
- Battle Arena → Battle Room API: creates or joins
app/(dashboard)/battle/page.tsx - Battle Arena → Battle Room: opens room
- Battle Room → Battle State: syncs state
- Battle Room → Combat Stage: renders combat
- Computer Practice → Combat Stage: renders combat
- Battle Room API → Supabase: reads and writes
app/api/battle/route.ts - Student → Character Setup: chooses class
- Character Setup → Role & Stats Rules: uses role rules
app/(dashboard)/character/page.tsx - Character Setup → Equipment Catalog: uses catalog
app/(dashboard)/character/page.tsx - Character Setup → Player Cache: reads player state
app/(dashboard)/character/page.tsx - Character Visuals → Role & Stats Rules: renders stats
components/character/CharacterVisual.tsx - Character Visuals → Equipment Catalog: renders equipment
components/character/CharacterVisual.tsx - Learning Modules → XP & Activity API: awards completion XP
- Battle Arena → XP & Activity API: reports battle result
- XP & Activity API → Supabase: updates progress
app/api/xp/route.ts - XP & Activity API → XP & Level Rules: calculates reward
app/api/xp/route.ts - XP & Activity API → Quest Progress: updates quests
app/api/xp/route.ts - XP & Activity API → Daily Quests: ensures daily quests
app/api/xp/route.ts - XP & Activity API → Streak Rules: checks streak
app/api/xp/route.ts - XP & Activity API → Achievement Badges: ensures badges
app/api/xp/route.ts - Student → Voucher Store: spends rewards
- Voucher Store → Voucher Redemption: redeems voucher
- Voucher Redemption → Supabase: records redemption
app/api/vouchers/redeem/route.ts - Student → Leaderboards: checks rankings
- Student → Progress Dashboard: reviews progress