How prashantrmane-arch/courselit works
CourseLit is a self-hosted LMS and digital-commerce platform. Its primary workflow is for a creator to author and publish course content, configure payment, and manage learners; learners discover products, enroll, and access lessons. The README also identifies website building, student management, and analytics as product capabilities. The graph combines those documented capabilities with relationships visible in sampled source; unsampled subsystem connections are omitted rather than inferred.
Main entry points: worker.ts Mail worker · page.tsx Admin dashboard · route.ts Payment initiation · db.ts Application database
Components 24
Creator workspace
- Admin dashboard
apps/web/app/(with-contexts)/dashboard/(sidebar)/products/page.tsx - Course authoring
apps/web/app/(with-contexts)/dashboard/(sidebar)/product/[id]/content/page.tsx - Website builder
packages/page-blocks - Email authoring
apps/web/app/(with-contexts)/dashboard/(sidebar)/mails/new/new-mail-page-client.tsx - Blog publishing
apps/web/app/(with-contexts)/dashboard/(sidebar)/blogs/page.tsx
Learner experience
- Course pages
apps/web/app/(with-contexts)/course/[slug]/[id]/page.tsx - Lesson access
apps/web/app/api/products/[productId]/lessons/route.ts - Learning progress
apps/web/app/api/products/[productId]/customers/[userId]/progress/route.ts - Communities
apps/web/app/(with-contexts)/(with-layout)/communities/page.tsx
Commerce and platform
- Product API
apps/web/app/api/products/route.ts - Payment initiation
apps/web/app/api/payment/initiate/route.ts - Application database
apps/web/services/db.ts - Tenant setup
apps/web/app/verify-domain/route.ts - Analytics
apps/queue/src/observability/posthog.ts
Background services
- Job routes
apps/queue/src/job/routes.ts - Mail queue
apps/queue/src/domain/handler.ts - Mail worker
apps/queue/src/domain/worker.ts - Email delivery
apps/queue/src/mail.ts - Notification enqueue
apps/queue/src/notifications/services/enqueue.ts - App notification channel
apps/queue/src/notifications/services/channels/app.ts - Notification stream
apps/queue/src/sse/routes.ts
Other components
- Course creator
- Learner
- Payment provider
Connections 22
- Course creator → Admin dashboard: manages
- Admin dashboard → Course authoring: authors courses
- Course creator → Website builder: builds sales pages
- Course creator → Email authoring: authors email
- Admin dashboard → Blog publishing: publishes content
- Learner → Product API: browses products
- Product API → Application database: reads products
- Learner → Payment initiation: starts enrollment
- Payment initiation → Payment provider: initiates payment
- Payment initiation → Application database: updates membership
- Learner → Course pages: opens course
- Course pages → Lesson access: requests lessons
- Lesson access → Learning progress: records progress
- Learner → Communities: joins communities
- Tenant setup → Application database: connects database
apps/web/app/verify-domain/route.ts - Job routes → Mail queue: enqueues mail
apps/queue/src/job/routes.ts - Mail worker → Mail queue: consumes jobs
apps/queue/src/domain/worker.ts - Mail worker → Email delivery: sends email
apps/queue/src/domain/worker.ts - Job routes → Notification enqueue: enqueues notifications
apps/queue/src/job/routes.ts - App notification channel → Notification enqueue: enqueues notification
apps/queue/src/notifications/services/channels/app.ts - Notification stream → Learner: streams updates
- Mail worker → Analytics: reports errors
apps/queue/src/domain/worker.ts