How baby666-bot/study-concierge works
AI Study Concierge is a web-and-mobile AI study assistant. In the visible web workflow, a student submits a chat message or uploads a PDF; the web app sends chat requests to an API route or passes extracted notes into study tools. API routes use Groq for chat, flashcard generation, and quiz generation/grading; PDF text extraction is handled by the upload route. Supabase provides web authentication and chat-history storage. The README also documents mobile, text-to-speech, and web-aware study capabilities; mobile implementation details and some web request wiring were not sampled.
Main entry points: page.tsx Study workspace · supabase.ts Browser client · PDFUploader.tsx PDF uploader · UserMenu.tsx User menu
Components 17
Web experience
- Study workspace
nextjs-app/app/page.tsx - PDF uploader
nextjs-app/app/components/PDFUploader.tsx - User menu
nextjs-app/app/components/UserMenu.tsx
Study workflows
- PDF extraction
nextjs-app/app/api/upload/route.ts - Chat endpoint
nextjs-app/app/api/chat/route.ts - Flashcard generator
nextjs-app/app/api/flashcards/route.ts - Quiz generator and grader
nextjs-app/app/api/quiz/route.ts
Identity and history
- Sign-in page
nextjs-app/app/auth/page.tsx - Browser client
nextjs-app/app/lib/supabase.ts - Auth callback
nextjs-app/app/api/auth/callback/route.ts - Chat history
nextjs-app/app/page.tsx
Mobile app
- Flutter app
flutter-app/lib/main.dart - Mobile API client
flutter-app/lib/services/api_service.dart
Other components
- Student
- Groq LLM service
- PDF parser
- Supabase service
Connections 17
- Student → Study workspace: uses
README.md - Study workspace → PDF uploader: renders
nextjs-app/app/page.tsx - Study workspace → User menu: renders
nextjs-app/app/page.tsx - PDF uploader → PDF extraction: uploads PDF
nextjs-app/app/components/PDFUploader.tsx - PDF extraction → PDF parser: extracts text
nextjs-app/app/api/upload/route.ts - Study workspace → Chat endpoint: posts chat
nextjs-app/app/page.tsx - Chat endpoint → Groq LLM service: requests completion
nextjs-app/app/api/chat/route.ts - Flashcard generator → Groq LLM service: requests cards
nextjs-app/app/api/flashcards/route.ts - Quiz generator and grader → Groq LLM service: generates and grades
nextjs-app/app/api/quiz/route.ts - Sign-in page → Browser client: creates client
nextjs-app/app/auth/page.tsx - User menu → Browser client: creates client
nextjs-app/app/components/UserMenu.tsx - Study workspace → Browser client: creates client
nextjs-app/app/page.tsx - Auth callback → Supabase service: exchanges session
nextjs-app/app/api/auth/callback/route.ts - Study workspace → Chat history: inserts messages
nextjs-app/app/page.tsx - Chat history → Supabase service: stores history
- Student → Flutter app: uses
README.md - Flutter app → Mobile API client: uses client