How pradyumnakolya-ship-it/study works
StudyGPT is a web-based AI study platform: students use the frontend to ask questions, study materials, generate learning plans and quizzes, track progress, and collaborate in guilds or direct messages. The backend exposes these capabilities through FastAPI routers, with AI services and persistence beneath them. The graph preserves the documented product branches and the substantial core modules. Some frontend-to-API wiring and unsampled service internals are not shown in the excerpts, so those relationships are omitted rather than inferred.
Main entry points: features.py Learning endpoints · guilds.py Guild endpoints · auth_service.py User and token service · database.py MongoDB access
Components 29
Study frontend
- AI tutor chat
frontend/src/app/chat/page.tsx - Study materials
frontend/src/app/materials/page.tsx - Roadmap planner
frontend/src/app/roadmap/page.tsx - Quiz practice
frontend/src/app/quiz/page.tsx - Practice drills
frontend/src/app/practice/page.tsx - Progress analytics
frontend/src/app/progress/page.tsx - Guild learning
frontend/src/app/home/page.tsx - Social messaging
frontend/src/app/connect/page.tsx - Sign-in screens
frontend/src/app/auth/login/page.tsx
AI learning services
- Question endpoint
backend/routers/ask.py - Learning endpoints
backend/routers/features.py - Gemini generation
backend/services/gemini_service.py - Material retrieval
backend/services/rag_service.py - Conversation storage
backend/services/conversation_store.py - Progress storage
backend/services/progress_store.py
Guilds and social
- Guild endpoints
backend/routers/guilds.py - Guild AI learning
backend/services/guild_ai_service.py - Guild persistence
backend/services/guild_store.py - Social endpoints
backend/routers/features.py - Live messaging
backend/services/websocket_manager.py
Identity and persistence
- Authentication endpoints
backend/routers/auth.py - User and token service
backend/services/auth_service.py - User schemas
backend/models/user.py - Learning schemas
backend/models/extra.py - Guild schemas
backend/models/guild.py - Material schemas
backend/models/material.py - MongoDB access
backend/database.py - Runtime settings
backend/config.py
Other components
- Student
Connections 22
- Student → AI tutor chat: asks questions
README.md - Student → Study materials: studies materials
README.md - Student → Roadmap planner: plans study
README.md - Student → Quiz practice: takes quizzes
README.md - Student → Guild learning: learns together
README.md - AI tutor chat → Question endpoint: asks via API
README.md - Learning endpoints → Learning schemas: uses schemas
backend/routers/features.py - Learning endpoints → Gemini generation: generates answers
backend/routers/features.py - Learning endpoints → Conversation storage: loads conversations
backend/routers/features.py - Learning endpoints → Progress storage: updates progress
backend/routers/features.py - Material retrieval → Material schemas: builds material chunks
backend/services/rag_service.py - Material retrieval → Gemini generation: requests generation
backend/services/rag_service.py - Guild endpoints → Guild schemas: uses schemas
backend/routers/guilds.py - Guild endpoints → Guild AI learning: generates roadmaps
backend/routers/guilds.py - Guild endpoints → Guild persistence: persists guilds
backend/routers/guilds.py - Social endpoints → Live messaging: dispatches messages
backend/routers/features.py - Live messaging → MongoDB access: stores messages
backend/services/websocket_manager.py - Authentication endpoints → User and token service: authenticates users
backend/routers/auth.py - Authentication endpoints → User schemas: uses user schemas
backend/routers/auth.py - User and token service → User schemas: handles user records
backend/services/auth_service.py - User and token service → MongoDB access: reads and writes users
backend/services/auth_service.py - MongoDB access → Runtime settings: reads settings
backend/database.py