How yadavsonur/vidyapith works
Vidhyapith is a role-aware LMS. Learners browse published courses, enroll free or pay through Stripe, study lessons and quizzes, track progress, and receive certificates after server-checked completion. Teachers author and publish courses; administrators govern users, content, payments, and moderation. The map combines sampled call references with README-documented capabilities; many unsampled routes are represented by their exact route directories, so their internal call wiring is not inferred.
Main entry points: db.js Prisma application data · [courseId]/page.jsx Course overview · [chapterId]/page.jsx Lesson player · route.js Payment event handling
Components 22
Learner experience
- Course discovery
actions/get-courses.js - Course overview
app/(course)/courses/[courseId]/page.jsx - Enrollment and checkout
app/api/courses/[courseId]/checkout/route.js - Lesson player
app/(course)/courses/[courseId]/chapters/[chapterId]/page.jsx - Protected video
app/(course)/courses/[courseId]/chapters/[chapterId]/_components/video-player.jsx - Quiz attempts
app/(course)/courses/[courseId]/quizzes/[quizId]/_components/quiz-player.jsx - Certificates
app/api/certificates/verify/route.js - Notes and bookmarks
app/api/courses/[courseId]/notes/route.js - Reviews and discussions
app/(course)/courses/[courseId]/_components/discussion-panel.jsx
Teaching workspace
- Course authoring
app/(dashboard)/(routes)/teacher/courses/[courseId]/_components/chapters-form.jsx - Teacher analytics
app/(dashboard)/(routes)/teacher/analytics/page.jsx
Administration
- Governance and moderation
app/(dashboard)/(routes)/admin/page.jsx - Admin APIs
app/api/admin
Application services
- Identity and access
lib/auth.js - Stripe payments
- Payment event handling
app/api/webhook/route.js - Learning progress
lib/progress.js - Completion evaluator
lib/services/completion.js - Notifications
app/api/notifications/route.js - Prisma application data
lib/db.js - Mux video service
Other components
- Learner
Connections 26
- Learner → Identity and access: signs in
- Learner → Course discovery: browses courses
- Course discovery → Course overview: opens course
app/(course)/courses/[courseId]/page.jsx - Course overview → Enrollment and checkout: starts enrollment
- Enrollment and checkout → Stripe payments: creates checkout
- Stripe payments → Payment event handling: sends events
- Payment event handling → Prisma application data: records purchases
app/api/webhook/route.js - Payment event handling → Notifications: creates alerts
app/api/webhook/route.js - Course overview → Lesson player: opens lesson
app/(course)/courses/[courseId]/page.jsx - Lesson player → Protected video: renders player
app/(course)/courses/[courseId]/chapters/[chapterId]/page.jsx - Lesson player → Mux video service: signs playback
app/(course)/courses/[courseId]/chapters/[chapterId]/page.jsx - Learner → Quiz attempts: takes assessment
- Learner → Notes and bookmarks: uses study tools
- Learner → Reviews and discussions: reviews and discusses
- Lesson player → Learning progress: updates progress
- Quiz attempts → Completion evaluator: supplies results
- Learning progress → Completion evaluator: supplies progress
- Completion evaluator → Certificates: issues credentials
- Learner → Certificates: verifies credential
- Course authoring → Prisma application data: manages courses
- Course authoring → Teacher analytics: reviews analytics
- Governance and moderation → Admin APIs: governs platform
- Admin APIs → Prisma application data: updates records
- Identity and access → Prisma application data: loads app user
lib/auth.js - Course overview → Prisma application data: loads course data
app/(course)/courses/[courseId]/page.jsx - Payment event handling → Prisma application data: deduplicates events
app/api/webhook/route.js