How pankajpatel19/studymate-ai-powered-personal-learning-assistant works
StudyMate is a learning web application with study tools, AI-generated learning materials, personal study records, and collaborative rooms. Its typical workflow is a learner using a tool to create or practice material, with server routes handling requests and shared AI, authentication, and storage services supporting the work. The tree documents many distinct capabilities, but their page-to-route wiring is mostly unsampled; those relationships are shown as unverified rather than asserted as calls. The README is the generic Next.js starter README, so feature coverage is based on the source tree and index.
Main entry points: auth.ts Authentication and database · chat/route.ts AI chat route · generate/route.ts Quiz generation · bedrock.ts Bedrock models
Components 23
Learning experience
- Home and navigation
app/page.tsx - Accounts
app/(view)/(auth)/login/page.tsx - Dashboard and progress
app/(view)/dashboard/page.tsx
Study tools
- AI study tools
app/(view)/essay/page.tsx - Exam practice
app/(view)/exam/page.tsx - Quiz practice
app/(view)/quiz/page.tsx - Flashcard study
app/(view)/flashcards/page.tsx - AI chat route
app/api/chat/route.ts - Quiz generation
app/api/quiz/generate/route.ts
Study records
- Notes and cloze
app/(view)/notes/page.tsx - Study rooms
app/(view)/rooms/[roomId]/page.tsx - Learning roadmap
app/(view)/roadmap/page.tsx - Focus sessions
app/(view)/focus/page.tsx - Flashcard records
app/api/flashcards/route.ts - Notes records
app/api/notes/route.ts - Room management
app/api/rooms/route.ts
Platform services
- Authentication and database
app/lib/auth.ts - Bedrock models
app/lib/ai/bedrock.ts - Pinecone retrieval
app/lib/vectors/pincone.ts - Response cache
app/lib/utils/cache.ts - Premium billing
app/lib/hooks/useRazorpay.ts
Other components
- Learner
- AWS Bedrock
Connections 25
- Learner → Home and navigation: uses
app/page.tsx - Learner → Accounts: signs in
- Learner → Dashboard and progress: tracks study
- Learner → AI study tools: creates materials
- Learner → Exam practice: practices
- Learner → Quiz practice: practices
- Learner → Flashcard study: reviews cards
- Learner → Notes and cloze: writes notes
- Learner → Study rooms: joins rooms
- Learner → Learning roadmap: plans learning
- Learner → Focus sessions: starts focus
- AI chat route → Authentication and database: checks session
app/api/chat/route.ts - AI chat route → Pinecone retrieval: retrieves context
app/api/chat/route.ts - AI chat route → Bedrock models: invokes model
app/api/chat/route.ts - Quiz generation → Authentication and database: checks session
app/api/quiz/generate/route.ts - Quiz generation → Pinecone retrieval: searches content
app/api/quiz/generate/route.ts - Quiz generation → Bedrock models: invokes model
app/api/quiz/generate/route.ts - Flashcard records → Response cache: reads and invalidates
app/api/flashcards/route.ts - Flashcard records → Authentication and database: checks session
app/api/flashcards/route.ts - Notes records → Response cache: reads and invalidates
app/api/notes/route.ts - Notes records → Authentication and database: checks session
app/api/notes/route.ts - Room management → Response cache: reads and invalidates
app/api/rooms/route.ts - Room management → Authentication and database: checks session
app/api/rooms/route.ts - Bedrock models → AWS Bedrock: calls models
- Learner → Premium billing: upgrades