How yust777/icpchue works
ICPC HUE is a competitive-programming learning and practice platform. A user can open Mirror Mode, enter a Codeforces problem, and work in an integrated editor with tests and a whiteboard; the README also describes session review, curriculum, analytics, and gamification. The sampled problem-data hook calls the problem-stats API, while the drawer excerpt shows URL parsing. Other product branches are retained from the README and route tree; their internal wiring is not asserted where source was not sampled.
Main entry points: register/route.ts Registration · ProblemDrawer.tsx Problem picker · useProblemData.ts Problem data · discipline/route.ts Practice tracking
Components 20
Mirror Practice
- Mirror workspace
next-app/components/mirror/Whiteboard.tsx - Problem picker
next-app/components/mirror/problem/ProblemDrawer.tsx - Problem data
next-app/hooks/contest/useProblemData.ts - Problem statistics API
next-app/app/api/codeforces/problem-stats/route.ts - Code editor
next-app/components/mirror/editor/CodeWorkspace.tsx - Whiteboard
next-app/components/mirror/WhiteboardEditor.tsx - Submission analysis
next-app/app/api/submissions/route.ts
Learning Content
- Session library
next-app/lib/sessionData.tsx - Session lessons
next-app/lib/content/sessions/Session5Content.tsx - Curriculum
next-app/lib/content/curriculum.ts - Devlog
next-app/lib/content/devlog.ts
Progress and Mentoring
- Achievements
next-app/lib/services/achievements.ts - Leaderboards
next-app/app/api/leaderboard/route.ts - Mentor tools
next-app/app/api/mentor/trainee/[id]/route.ts - Practice tracking
next-app/app/api/discipline/route.ts
Identity and Platform
- Registration
next-app/app/api/auth/register/route.ts - Rate limiting
next-app/lib/cache/rate-limit.ts - Application database
next-app/lib/db/db.ts
Other components
- Learner
- Codeforces
Connections 16
- Learner → Problem picker: chooses problem
- Problem picker → Problem data: opens workspace
- Problem data → Problem statistics API: fetches stats
next-app/hooks/contest/useProblemData.ts - Mirror workspace → Codeforces: loads problems
- Learner → Code editor: writes solution
- Learner → Whiteboard: draws ideas
- Learner → Submission analysis: reviews submissions
- Session library → Session lessons: renders lesson
next-app/lib/sessionData.tsx - Learner → Curriculum: follows path
- Learner → Devlog: reads updates
- Learner → Achievements: earns rewards
- Learner → Leaderboards: checks ranking
- Mentor tools → Practice tracking: reviews practice
- Registration → Rate limiting: limits requests
next-app/app/api/auth/register/route.ts - Registration → Application database: queries records
next-app/app/api/auth/register/route.ts - Practice tracking → Application database: reads and writes
next-app/app/api/discipline/route.ts