How suryansdev/ocd-repo works
Open Code Developers is a coding-practice tracker for learners and mentors. Learners sign up, complete onboarding, and use a dashboard to track assigned work and platform progress; mentors and administrators manage users, assign tasks, and schedule rollouts. Server routes handle task and profile operations, while synchronization updates coding-platform statistics and task streaks. The README is too sparse to confirm additional capabilities. Connections below are limited to routes, imports, and calls visible in the provided excerpts or source index; unsampled route internals are not inferred.
Main entry points: syncEngine.ts Platform and streak sync · client.ts Browser Supabase client · admin.ts Admin Supabase client · route.ts Task operations
Components 24
User experience
- Sign-in and onboarding
src/app/login/page.tsx - Progress dashboard
src/app/dashboard/page.tsx - Profile management
src/app/profile/page.tsx - Admin console
src/app/admin/page.tsx - Navigation
src/components/Navbar.tsx
Tasks and scheduling
- Rollout calendar
src/components/ScheduleCalendar.tsx - Task operations
src/app/api/tasks/route.ts - Scheduled tasks
src/app/api/tasks/schedule/route.ts - Mentee lookup
src/app/api/tasks/mentees/route.ts - Task link parser
src/lib/taskParser.ts - IST date utilities
src/lib/dateUtils.ts - CSES helpers
src/lib/cses.ts
Progress synchronization
- Sync endpoints
src/app/api/cron/sync/route.ts - Leaderboard sync
src/app/api/leaderboard/sync/route.ts - Profile API
src/app/api/users/profile/route.ts - Handle verification
src/app/api/verify/route.ts - Platform and streak sync
src/lib/syncEngine.ts - Handle normalization
src/lib/handles.ts
Identity and persistence
- Supabase data store
- Browser Supabase client
src/lib/supabase/client.ts - Admin Supabase client
src/lib/supabase/admin.ts
Other components
- Learner or mentor
- Codeforces
- LeetCode
Connections 32
- Learner or mentor → Sign-in and onboarding: signs up
src/app/login/page.tsx - Sign-in and onboarding → Browser Supabase client: authenticates with
src/app/login/page.tsx - Progress dashboard → Browser Supabase client: reads data
src/app/dashboard/page.tsx - Profile management → Browser Supabase client: updates profile
src/app/profile/page.tsx - Admin console → Browser Supabase client: manages users
src/app/admin/page.tsx - Progress dashboard → Navigation: renders
src/app/dashboard/page.tsx - Admin console → Navigation: renders
src/app/admin/page.tsx - Profile management → Navigation: renders
src/app/profile/page.tsx - Progress dashboard → Rollout calendar: renders
src/app/dashboard/page.tsx - Rollout calendar → Task link parser: formats tasks
src/components/ScheduleCalendar.tsx - Rollout calendar → IST date utilities: formats dates
src/components/ScheduleCalendar.tsx - Task operations → Task link parser: parses links
src/app/api/tasks/route.ts - Task operations → IST date utilities: validates schedule dates
src/app/api/tasks/route.ts - Task operations → Platform and streak sync: rolls out due tasks
src/app/api/tasks/route.ts - Scheduled tasks → Task link parser: parses links
src/app/api/tasks/schedule/route.ts - Task link parser → CSES helpers: uses
src/lib/taskParser.ts - Task operations → Admin Supabase client: creates client
src/app/api/tasks/route.ts - Scheduled tasks → Admin Supabase client: uses
src/app/api/tasks/schedule/route.ts - Mentee lookup → Admin Supabase client: uses
src/app/api/tasks/mentees/route.ts - Sync endpoints → Platform and streak sync: runs sync
src/app/api/cron/sync/route.ts - Leaderboard sync → Platform and streak sync: runs sync
src/app/api/leaderboard/sync/route.ts - Profile API → Platform and streak sync: uses
src/app/api/users/profile/route.ts - Handle verification → Handle normalization: normalizes handles
src/app/api/verify/route.ts - Profile API → Handle normalization: normalizes handles
src/app/api/users/profile/route.ts - Leaderboard sync → Handle normalization: normalizes handles
src/app/api/leaderboard/sync/route.ts - Platform and streak sync → Handle normalization: cleans handles
src/lib/syncEngine.ts - Platform and streak sync → IST date utilities: gets IST date
src/lib/syncEngine.ts - Platform and streak sync → Admin Supabase client: creates client
src/lib/syncEngine.ts - Browser Supabase client → Supabase data store: connects to
src/lib/supabase/client.ts - Admin Supabase client → Supabase data store: connects to
src/lib/supabase/admin.ts - Platform and streak sync → Codeforces: fetches profile data
src/lib/syncEngine.ts - Platform and streak sync → LeetCode: fetches profile data
src/lib/syncEngine.ts