How invokeil/student.web works
Invokeil is the student-facing web application for an online academy. The main student journey is discovering courses, inspecting course content and reviews, purchasing through cart/checkout, then accessing lessons and tracking progress; account, notices, shop, and bilingual/theme features support that journey. Pages compose reusable containers, while API routes handle server operations and shared libraries provide persistence, authentication, caching, payments, and media storage. Edges are limited to relationships shown in excerpts, the source index, or README; unsampled feature routes are represented by their supported directory paths.
Main entry points: api Content API routes · checkout Checkout routes · db.ts Prisma database · auth.ts Session and roles
Components 27
Student experience
- Home and browse
src/containers/home - Course discovery
src/containers/courses - Course detail
src/containers/course-detail - Review form
src/containers/course-detail/reviews-container.tsx - Account and orders
src/containers/account - Sign-in and signup
src/containers/auth
Commerce
- Shop and cart
src/containers/shop - Checkout flow
src/containers/checkout - Checkout routes
src/app/api/checkout - PipraPay gateway
src/lib/piprapay.ts - Payment operations
src/lib/payments.ts - Pricing and fulfillment
src/lib/fulfill.ts
Learning
- Streaming room
src/containers/watch - Learning routes
src/app/api/enrollments/route.ts - Study summaries
src/lib/study.ts - Media streaming
src/app/api/stream/[...key]/route.ts
Platform services
- Session and roles
src/lib/auth.ts - Content API routes
src/app/api - Response cache
src/lib/cache.ts - English and Bangla
src/i18n/en.ts
Persistence and integrations
- Prisma database
src/lib/db.ts - Avatar storage
src/lib/storage.ts - Email delivery
src/lib/email.ts
Other components
- Student
- Supabase Storage
- Cloudflare R2
- Cloudflare KV
Connections 34
- Student → Home and browse: browses
- Student → Course discovery: searches
- Student → Course detail: inspects
- Student → Shop and cart: shops
- Student → Checkout flow: checks out
- Student → Streaming room: studies
- Student → Account and orders: manages account
- Review form → Content API routes: submits review
src/containers/course-detail/reviews-container.tsx - Home and browse → Content API routes: loads home data
- Course discovery → Content API routes: searches courses
- Course detail → Content API routes: loads course
- Checkout flow → Checkout routes: starts payment
- Checkout routes → Session and roles: checks session
src/app/api/checkout/piprapay/route.ts - Checkout routes → Pricing and fulfillment: prices cart
src/app/api/checkout/piprapay/route.ts - Checkout routes → Payment operations: checks eligibility
src/app/api/checkout/piprapay/route.ts - Checkout routes → PipraPay gateway: creates payment
src/app/api/checkout/piprapay/route.ts - Checkout routes → Prisma database: writes order
src/app/api/checkout/piprapay/route.ts - Payment operations → Pricing and fulfillment: fulfills orders
src/lib/payments.ts - Payment operations → Email delivery: sends notices
src/lib/payments.ts - Learning routes → Session and roles: checks session
src/app/api/enrollments/route.ts - Learning routes → Prisma database: reads enrollment
src/app/api/enrollments/route.ts - Learning routes → Study summaries: summarizes activity
src/app/api/enrollments/route.ts - Study summaries → Prisma database: reads progress
src/lib/study.ts - Media streaming → Prisma database: checks access
src/app/api/stream/[...key]/route.ts - Content API routes → Prisma database: serves records
src/app/api/home/route.ts - Content API routes → Response cache: caches hot data
src/app/api/home/route.ts - Content API routes → Session and roles: authenticates requests
src/app/api/home/route.ts - Response cache → Cloudflare KV: reads and writes
src/lib/cache.ts - Sign-in and signup → Content API routes: authenticates
- Session and roles → Prisma database: loads user
src/lib/auth.ts - Sign-in and signup → Avatar storage: uploads avatar
- Avatar storage → Supabase Storage: uploads image
src/lib/storage.ts - Avatar storage → Cloudflare R2: fallback upload
src/lib/storage.ts - Home and browse → English and Bangla: displays translations