How siddu-119/ai-studymate works
AI StudyMate is a student-facing learning companion. Students use its dashboard and study tools to organize tasks and notes, adjust settings, and request explanations, follow-ups, or quizzes. The AI workflow runs from a study page through the client API to the server, which can use built-in demo articles or Google Gemini. Local study data is persisted in browser storage. The excerpts show key frontend and server links; some page behavior and server routing details were not sampled, so those connections are omitted where evidence is insufficient.
Main entry points: AppContext.jsx App State · App.jsx App Routes · Layout.jsx Page Shell · api.js Client API
Components 19
Client Experience
- App Routes
client/src/App.jsx - Page Shell
client/src/components/Layout.jsx - Navigation
client/src/components/Sidebar.jsx - Top Bar
client/src/components/TopBar.jsx - Notifications
client/src/components/Toasts.jsx
Study Tools
- Dashboard
client/src/pages/Dashboard.jsx - AI Assistant
client/src/pages/Assistant.jsx - Quiz Generator
client/src/pages/Quiz.jsx - Study Planner
client/src/pages/Planner.jsx - Study Notes
client/src/pages/Notes.jsx - Settings
client/src/pages/Settings.jsx
Local State
- App State
client/src/context/AppContext.jsx - Browser Storage
client/src/lib/storage.js
AI Service
- Client API
client/src/lib/api.js - AI API Server
server/index.js - Demo Engine
server/demo.js - Study Articles
server/knowledge.js - Google Gemini
Other components
- Student
Connections 28
- Student → App Routes: uses
README.md - App Routes → Page Shell: renders
client/src/App.jsx - App Routes → Dashboard: routes to
client/src/App.jsx - App Routes → AI Assistant: routes to
client/src/App.jsx - App Routes → Quiz Generator: routes to
client/src/App.jsx - App Routes → Study Planner: routes to
client/src/App.jsx - App Routes → Study Notes: routes to
client/src/App.jsx - App Routes → Settings: routes to
client/src/App.jsx - Page Shell → Navigation: renders
client/src/components/Layout.jsx - Page Shell → Top Bar: renders
client/src/components/Layout.jsx - Page Shell → Notifications: renders
client/src/components/Layout.jsx - Navigation → App State: reads status
client/src/components/Sidebar.jsx - Top Bar → App State: reads state
client/src/components/TopBar.jsx - Notifications → App State: reads notices
client/src/components/Toasts.jsx - Dashboard → App State: reads study state
client/src/pages/Dashboard.jsx - AI Assistant → App State: reads and updates
client/src/pages/Assistant.jsx - Quiz Generator → App State: updates history
client/src/pages/Quiz.jsx - Study Planner → App State: reads and updates
client/src/pages/Planner.jsx - Study Notes → App State: reads and updates
client/src/pages/Notes.jsx - Settings → App State: reads and updates
client/src/pages/Settings.jsx - App State → Browser Storage: loads and saves
client/src/context/AppContext.jsx - App State → Client API: checks status
client/src/context/AppContext.jsx - AI Assistant → Client API: requests explanations
client/src/pages/Assistant.jsx - Quiz Generator → Client API: requests quizzes
client/src/pages/Quiz.jsx - Client API → AI API Server: sends API requests
- AI API Server → Demo Engine: dispatches demo requests
server/index.js - Demo Engine → Study Articles: finds article content
server/demo.js - AI API Server → Google Gemini: generates live results
README.md