How anishadhikari7/gyan-garage works
Gyan Garage is a student-and-teacher learning workspace. Users enter through the Next.js pages, select role-aware learning areas, and manage homework, resources, quizzes, and study targets; quiz attempts have a dedicated runner. The sampled managers show Supabase-backed records and filtering, while role and onboarding state are stored in browser localStorage. The README is only a stock Next.js template, so it does not document product capabilities. Some feature routes and integrations are represented from the source index; unsampled behavior and links are omitted where evidence is limited.
Main entry points: supabase.ts Supabase client · page.tsx Role dashboard · quiz-manager.tsx Quiz manager · study-tools-manager.tsx Study tools
Components 20
App entry
- Home
src/app/page.tsx - Role dashboard
src/app/dashboard/page.tsx - Student dashboard
src/app/dashboard/student/page.tsx - Teacher dashboard
src/app/dashboard/teacher/page.tsx - Profile
src/app/profile/page.tsx - Onboarding dialog
src/components/onboarding/onboarding-dialog.tsx
Learning workflows
- Homework manager
src/components/homework/homework-manager.tsx - Resource library
src/components/resources/resource-manager.tsx - Quiz manager
src/components/quiz/quiz-manager.tsx - Quiz attempt runner
src/components/quiz/quiz-attempt-runner.tsx - Question papers
src/app/question-papers/page.tsx
Planning and tools
- Study planner
src/components/planner/planner-manager.tsx - Study tools
src/components/tools/study-tools-manager.tsx - Stopwatch and timer
src/components/tools
Shared services
- Role and profile state
src/context/role-context.tsx - Supabase client
src/lib/supabase.ts - Supabase data store
- Learning data types
src/types/database.ts - Shared UI primitives
src/components/ui
Other components
- Learner or teacher
Connections 18
- Learner or teacher → Home: opens
src/app/page.tsx - Learner or teacher → Role dashboard: opens
src/app/dashboard/page.tsx - Role dashboard → Student dashboard: routes to
src/app/dashboard/page.tsx - Role dashboard → Teacher dashboard: routes to
src/app/dashboard/page.tsx - Learner or teacher → Profile: opens
src/app/profile/page.tsx - Role and profile state → Onboarding dialog: controls
src/components/onboarding/onboarding-dialog.tsx - Homework manager → Supabase client: deletes records
src/components/homework/homework-manager.tsx - Resource library → Supabase client: deletes records
src/components/resources/resource-manager.tsx - Study planner → Supabase client: deletes tasks
src/components/planner/planner-manager.tsx - Quiz manager → Supabase client: deletes quizzes
src/components/quiz/quiz-manager.tsx - Supabase client → Supabase data store: connects
src/lib/supabase.ts - Study tools → Study planner: renders targets
src/components/tools/study-tools-manager.tsx - Study tools → Stopwatch and timer: renders tools
src/components/tools/study-tools-manager.tsx - Learner or teacher → Homework manager: manages work
- Learner or teacher → Resource library: browses resources
- Learner or teacher → Quiz manager: browses quizzes
- Quiz manager → Quiz attempt runner: opens attempt
- Learner or teacher → Question papers: opens papers
src/app/question-papers/page.tsx