How atuldhull/math-collective works
Math Collective is a competitive mathematics platform for university communities. Students browse problems and roadmaps, get AI study help, submit work, join events and live quizzes, and earn recognition; teachers and administrators manage content, events, payments, and users. The graph follows the user-facing workflow into backend domain handlers and shared services, while retaining major documented branches such as social features, portfolios, messaging, and administration. Some links rely on README descriptions because the corresponding source was not sampled; those relationships are shown as documented rather than inferred from imports.
Main entry points: supabase.js Supabase database · App.jsx Web application · notificationController.js Notification delivery · ProblemDetailPage.jsx Problem study
Components 27
Student experience
- Web application
frontend/src/app/App.jsx
Learning and competition
- Problem catalogue
frontend/src/features/problems/pages/ProblemsListPage.jsx - Problem study
frontend/src/features/problems/pages/ProblemDetailPage.jsx - Problem submission
frontend/src/features/problems/pages/SubmitProblemPage.jsx - Learning roadmaps
frontend/src/features/roadmaps/pages/RoadmapsListPage.jsx - AI study companion
frontend/src/features/problems/components/AiCompanion.jsx - Challenge arena
frontend/src/features/arena/pages/ArenaPage.jsx - Live quizzes
frontend/src/features/student/pages/LiveQuizPage.jsx - Events and attendance
frontend/src/features/events/pages/EventsPage.jsx - Leaderboards and XP
frontend/src/features/public/pages/LeaderboardPage.jsx - Problem domain
backend/controllers/problemController.js - Roadmap domain
backend/controllers/roadmapController.js - Quiz runtime
backend/socket/quiz.js - Event management
backend/controllers/event/eventCrudController.js - PANDA tools
backend/lib/pandaTools.js
Community features
- Profiles and portfolios
frontend/src/features/profile/pages/RichProfilePage.jsx - E2EE messaging
frontend/src/features/student/pages/NotificationsPage.jsx - Notification delivery
backend/controllers/notificationController.js
Administration
- Admin operations
frontend/src/features/admin/pages/AdminOverviewPage.jsx - Admin handlers
backend/controllers/adminController.js
Platform services
- HTTP API
backend/app.js - AI provider layer
backend/lib/llm.js - Supabase database
backend/config/supabase.js - Socket.IO server
backend/socket/index.js
Other components
- Student
- Teacher / admin
- Gemini / OpenRouter
Connections 33
- Student → Web application: uses
README.md - Teacher / admin → Web application: uses
README.md - Web application → Problem catalogue: opens
- Problem catalogue → Problem study: opens
README.md - Problem study → Problem submission: submits
README.md - Problem study → AI study companion: asks for hints
README.md - Student → Learning roadmaps: browses
README.md - Student → Challenge arena: solves challenges
README.md - Student → Live quizzes: joins
README.md - Teacher / admin → Live quizzes: hosts
README.md - Student → Events and attendance: checks in
README.md - Student → Leaderboards and XP: views rankings
README.md - Student → Profiles and portfolios: views
README.md - Student → E2EE messaging: messages
README.md - Web application → HTTP API: requests
- HTTP API → Problem domain: routes requests
- HTTP API → Roadmap domain: routes requests
- Problem domain → Supabase database: reads and writes
backend/controllers/problemController.js - Roadmap domain → Supabase database: reads and writes
backend/controllers/roadmapController.js - Problem domain → Notification delivery: notifies users
backend/controllers/problemController.js - Roadmap domain → Notification delivery: notifies users
backend/controllers/roadmapController.js - AI study companion → AI provider layer: requests tutoring
- AI provider layer → Gemini / OpenRouter: calls models
README.md - AI provider layer → PANDA tools: supports tool calls
- Live quizzes → Socket.IO server: uses realtime
README.md - Socket.IO server → Quiz runtime: dispatches quiz events
- Events and attendance → Event management: registers
- Event management → Supabase database: reads and writes
backend/controllers/event/eventCrudController.js - Teacher / admin → Admin operations: manages
README.md - Admin operations → Admin handlers: requests operations
- Admin handlers → Supabase database: manages records
- Event management → Notification delivery: sends payment notices
backend/controllers/event/eventCrudController.js - Notification delivery → Supabase database: persists notifications
backend/controllers/notificationController.js