How elatedpk/forgex-ai works
CogniFix is an adaptive STEM tutoring application: learners practice or upload marked work, receive misconception diagnosis and targeted remediation, then review progress through flashcards, knowledge maps, and roadmaps. Teachers have a separate class-analytics portal. The React entry point and several API calls are visible in excerpts; the README documents backend agents and integrations, but server.ts was not sampled, so backend links reflect documented architecture rather than inspected implementation.
Main entry points: App.tsx App coordinator · server.ts Misconception diagnosis · PracticeQuizView.tsx Practice quiz · RoadmapView.tsx Skill roadmaps
Components 18
Learner application
- React entry
src/main.tsx - App coordinator
src/App.tsx - Landing and sign-in
src/components/LandingView.tsx - Authentication modal
src/components/AuthModal.tsx - Student dashboard
src/components/DashboardView.tsx
Adaptive learning
- Practice quiz
src/components/PracticeQuizView.tsx - Spaced flashcards
src/components/FlashcardsView.tsx - Knowledge mind map
src/components/MindMapView.tsx - Skill roadmaps
src/components/RoadmapView.tsx
AI and services
- Misconception diagnosis
server.ts - Remediation generation
server.ts - Uploaded-work analysis
server.ts
Teacher tools
- Class analytics
src/components/TeacherPortalView.tsx
Other components
- Student
- Teacher
- Groq / Gemini
- DuckDuckGo search
- Supabase platform
Connections 24
- Student → React entry: opens app
README.md - React entry → App coordinator: renders
src/main.tsx - App coordinator → Landing and sign-in: renders
src/App.tsx - App coordinator → Authentication modal: renders
src/App.tsx - App coordinator → Student dashboard: renders
src/App.tsx - App coordinator → Practice quiz: renders
src/App.tsx - App coordinator → Spaced flashcards: renders
src/App.tsx - App coordinator → Knowledge mind map: renders
src/App.tsx - App coordinator → Skill roadmaps: renders
src/App.tsx - App coordinator → Class analytics: renders
src/App.tsx - Student → Practice quiz: answers questions
README.md - Practice quiz → Misconception diagnosis: submits responses
README.md - Misconception diagnosis → Remediation generation: flags misconception
README.md - Remediation generation → Groq / Gemini: uses models
README.md - Student dashboard → Uploaded-work analysis: requests diagnosis
src/components/DashboardView.tsx - App coordinator → Uploaded-work analysis: sends upload diagnosis
src/App.tsx - Uploaded-work analysis → Groq / Gemini: uses vision models
README.md - App coordinator → Knowledge mind map: requests map data
src/App.tsx - Skill roadmaps → DuckDuckGo search: grounds resources
README.md - Misconception diagnosis → Supabase platform: persists learning data
README.md - Student → Spaced flashcards: reviews concepts
README.md - Student → Skill roadmaps: chooses skill
README.md - Teacher → Class analytics: reviews class
README.md - Class analytics → Supabase platform: reads class data