How trikshala/notepilot works
notePilot is a study-management platform: students register, organize courses into chapters, upload study documents, generate notes and quizzes, and review quiz progress. The React app routes users through those tasks and sends authenticated requests to a FastAPI API. API routers own the domain workflows, delegate persistence to CRUD modules, and invoke extraction or generation services where needed. The README also describes learning-progress tracking; analytics is included, though its implementation was not sampled. Some subsystem links are omitted where source evidence was unavailable.
Main entry points: main.py FastAPI app · crud Domain CRUD · App.jsx App routing · api.js API client
Components 25
Student interface
- App routing
frontend/src/App.jsx - Login and registration
frontend/src/features/public/Login.jsx - Auth context
frontend/src/context/AuthContext.jsx - Course management
frontend/src/features/courses/Courses.jsx - Chapter study view
frontend/src/features/chapters/ChapterView.jsx - Quiz experience
frontend/src/features/quiz/QuizPage.jsx - Learning analytics
frontend/src/features/analytics/Analytics.jsx - API client
frontend/src/services/api.js
API workflows
- FastAPI app
backend/main.py - Account endpoints
backend/app/routers/user_routes.py - Course endpoints
backend/app/routers/course_routes.py - Chapter endpoints
backend/app/routers/chapter_routes.py - Document endpoints
backend/app/routers/document_routes.py - Notes endpoints
backend/app/routers/note_routes.py - Quiz and attempts
backend/app/routers/quiz_attempt_routes.py
Study content and AI
- Text extraction
backend/app/services/text_extractor.py - Notes generation
backend/app/services/notes_generator.py - Quiz generation
backend/app/services/quiz_generator.py - AI model adapter
backend/app/services/ai_model.py
Persistence and identity
- Token security
backend/app/core/security.py - Domain CRUD
backend/app/crud - Study records
backend/app/models - Database sessions
backend/app/db/session.py
Other components
- Student
- SQL database
Connections 36
- Student → App routing: uses
frontend/src/App.jsx - App routing → Login and registration: routes to
frontend/src/App.jsx - App routing → Course management: routes to
frontend/src/App.jsx - App routing → Chapter study view: routes to
frontend/src/App.jsx - App routing → Quiz experience: routes to
frontend/src/App.jsx - App routing → Learning analytics: routes to
frontend/src/App.jsx - Login and registration → Auth context: uses
frontend/src/features/public/Login.jsx - Login and registration → API client: requests
frontend/src/features/public/Login.jsx - Course management → API client: requests
frontend/src/features/courses/Courses.jsx - Chapter study view → API client: requests
frontend/src/features/chapters/ChapterView.jsx - Quiz experience → API client: requests
frontend/src/features/quiz/QuizPage.jsx - API client → FastAPI app: sends requests
- FastAPI app → Account endpoints: registers
backend/main.py - FastAPI app → Course endpoints: registers
backend/main.py - FastAPI app → Chapter endpoints: registers
backend/main.py - FastAPI app → Document endpoints: registers
backend/main.py - FastAPI app → Notes endpoints: registers
backend/main.py - FastAPI app → Quiz and attempts: registers
backend/main.py - Account endpoints → Token security: issues tokens
backend/app/routers/user_routes.py - Account endpoints → Domain CRUD: delegates account data
backend/app/routers/user_routes.py - Course endpoints → Domain CRUD: delegates course data
backend/app/routers/course_routes.py - Chapter endpoints → Domain CRUD: delegates chapter data
backend/app/routers/chapter_routes.py - Document endpoints → Domain CRUD: stores documents
backend/app/routers/document_routes.py - Document endpoints → Text extraction: extracts text
backend/app/routers/document_routes.py - Notes endpoints → Domain CRUD: stores notes
backend/app/routers/note_routes.py - Notes endpoints → Notes generation: generates notes
backend/app/routers/note_routes.py - Notes endpoints → Domain CRUD: loads source documents
backend/app/routers/note_routes.py - Quiz and attempts → Domain CRUD: loads documents
backend/app/routers/quiz_attempt_routes.py - Quiz and attempts → Quiz generation: generates questions
backend/app/routers/quiz_attempt_routes.py - Quiz and attempts → Domain CRUD: saves attempts
backend/app/routers/quiz_attempt_routes.py - Notes generation → AI model adapter: uses model
backend/app/services/notes_generator.py - Quiz generation → AI model adapter: uses model
backend/app/services/quiz_generator.py - Domain CRUD → Study records: queries records
backend/app/crud/document_crud.py - FastAPI app → Database sessions: creates tables
backend/main.py - Database sessions → SQL database: connects to
backend/app/db/session.py - Learning analytics → API client: requests progress