How narayana276/overthinking works
Overthink is a study and revision application: learners authenticate, organize topics and notes (including uploaded documents), then use scheduled review and question attempts; an AI chat and retrieval-based document/content indexing provide study assistance. The graph captures the client routes, server domain APIs, and background review/RAG processing. Many modules are named only in the source index or tree, and no README is present, so uncertain wiring is omitted rather than inferred.
Main entry points: App.tsx App routing · prisma.ts Application database · Notes.tsx Notes workspace · rag.worker.ts RAG indexing worker
Components 26
Study client
- App routing
client/src/App.tsx - Landing and login
client/src/pages/LandingPage.tsx - Topic workspace
client/src/modules/topic/Topic.tsx - Notes workspace
client/src/modules/notes/Notes.tsx - AI chat panel
client/src/modules/notes/components/ChatbotModal.tsx - Revision workflow
client/src/modules/revision/RevisionPage.tsx - Revision attempt
client/src/modules/revision/Revisionattempt.tsx - Local note cache
client/src/indexdb/db.helper.ts
Application API
- Authentication API
server/src/modules/auth/auth.controler.ts - Topic API
server/src/modules/topic/topic.controler.ts - Notes API
server/src/modules/notes/notes.controler.ts - Document API
server/src/modules/document/document.controler.ts - Chatbot API
server/src/modules/chatbot/chatbot.controler.ts - Review API
server/src/modules/review/review.controler.ts - Question history
server/src/modules/questionHistory/question.controller.ts - Attempt API
server/src/modules/revisionAttempt/revisionAttempt.controler.ts
Background study jobs
- RAG indexing worker
server/src/bull/rag/rag.worker.ts - Review scheduler worker
server/src/bull/review/review.worker.ts - Question generation worker
server/src/bull/questions/question.bull.worker.ts
Persistence and integrations
- Application database
server/src/configs/prisma.ts - Redis queues
server/src/configs/redis.ts - Vector store
server/src/configs/supabaseVector.ts - OCR and text extraction
server/src/configs/ocr.ts - File storage
server/src/configs/cloudinary.ts
Other components
- Learner
- Language model
Connections 29
- Learner → Landing and login: visits
- App routing → Landing and login: routes to
client/src/App.tsx - App routing → Topic workspace: routes to
client/src/App.tsx - App routing → Notes workspace: routes to
client/src/App.tsx - App routing → Revision workflow: routes to
client/src/App.tsx - App routing → Revision attempt: routes to
client/src/App.tsx - Landing and login → Authentication API: authenticates via
- Topic workspace → Topic API: requests topics
- Notes workspace → Notes API: requests notes
client/src/modules/notes/Notes.tsx - Notes workspace → Local note cache: caches notes
client/src/modules/notes/Notes.tsx - Notes workspace → Document API: manages files
- Notes workspace → AI chat panel: opens chat
client/src/modules/notes/Notes.tsx - AI chat panel → Chatbot API: sends prompts
- Revision workflow → Review API: loads reviews
- Revision attempt → Attempt API: submits answers
- Revision attempt → Question history: loads questions
- Notes API → Application database: reads and writes
- Topic API → Application database: reads and writes
- Authentication API → Application database: reads and writes
- Document API → Application database: reads and writes
- Review scheduler worker → Application database: updates reviews
server/src/bull/review/review.worker.ts - Review scheduler worker → Question generation worker: schedules questions
server/src/bull/review/review.worker.ts - Review scheduler worker → Language model: evaluates answers
server/src/bull/review/review.worker.ts - RAG indexing worker → OCR and text extraction: extracts text
server/src/bull/rag/rag.worker.ts - RAG indexing worker → Vector store: indexes content
server/src/bull/rag/rag.worker.ts - RAG indexing worker → Application database: loads and marks records
server/src/bull/rag/rag.worker.ts - RAG indexing worker → Redis queues: connects worker
server/src/bull/rag/rag.worker.ts - Review scheduler worker → Redis queues: connects worker
server/src/bull/review/review.worker.ts - Document API → File storage: stores uploads