Adds six collections to Payload for a learning management system: courses, modules, lessons, enrollments, lesson progress and file downloads. Video progress is tracked with auto-completion at a configurable watch threshold, and optional Mautic CRM and Stripe integrations are available. Requires Payload 3.71.1 or later and exports helper functions for enrollment checks and duration calculation.
Comprehensive Learning Management System plugin for Payload CMS with course management, progress tracking, and enrollment
Installation
npm i @superwebpros/payload-lms-plugin14
Stars
2
Forks
0
Open Issues
10 months ago
Last Updated
0
Weekly Downloads
v
npm Version
Dependencies
14+1 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 14 |
| Dec 4, 2026 | 14 |
| Dec 3, 2026 | 14 |
| Dec 2, 2026 | 14 |
| Dec 1, 2026 | 14 |
| Nov 30, 2026 | 14 |
| Nov 29, 2026 | 14 |
| Nov 28, 2026 | 14 |
| Nov 27, 2026 | 14 |
| Nov 26, 2026 | 14 |
| Nov 25, 2026 | 14 |
| Nov 24, 2026 | 14 |
| Nov 23, 2026 | 14 |
| Nov 22, 2026 | 14 |
| Nov 21, 2026 | 14 |
| Nov 20, 2026 | 14 |
| Nov 19, 2026 | 14 |
| Nov 18, 2026 | 14 |
| Nov 17, 2026 | 14 |
| Nov 16, 2026 | 14 |
| Nov 15, 2026 | 14 |
| Nov 14, 2026 | 14 |
| Nov 13, 2026 | 14 |
| Nov 12, 2026 | 14 |
| Nov 11, 2026 | 14 |
| Nov 10, 2026 | 14 |
| Nov 9, 2026 | 14 |
| Nov 8, 2026 | 14 |
| Nov 7, 2026 | 14 |
| Nov 6, 2026 | 14 |
| Nov 5, 2026 | 14 |
| Nov 4, 2026 | 14 |
| Nov 3, 2026 | 14 |
| Nov 2, 2026 | 14 |
| Nov 1, 2026 | 14 |
| Oct 31, 2026 | 14 |
| Oct 30, 2026 | 14 |
| Oct 29, 2026 | 14 |
| Oct 28, 2026 | 14 |
| Oct 27, 2026 | 14 |
| Oct 26, 2026 | 14 |
| Oct 25, 2026 | 14 |
| Oct 24, 2026 | 14 |
| Oct 23, 2026 | 14 |
| Oct 22, 2026 | 14 |
| Oct 21, 2026 | 14 |
| Oct 20, 2026 | 14 |
| Oct 19, 2026 | 14 |
| Oct 18, 2026 | 14 |
| Oct 17, 2026 | 14 |
| Oct 16, 2026 | 14 |
| Oct 15, 2026 | 14 |
| Oct 14, 2026 | 14 |
| Oct 13, 2026 | 14 |
| Oct 12, 2026 | 14 |
| Oct 11, 2026 | 14 |
| Oct 10, 2026 | 14 |
| Oct 9, 2026 | 14 |
| Oct 8, 2026 | 14 |
| Oct 7, 2026 | 14 |
| Oct 6, 2026 | 14 |
| Oct 5, 2026 | 14 |
| Oct 4, 2026 | 14 |
| Oct 3, 2026 | 14 |
| Oct 2, 2026 | 14 |
| Oct 1, 2026 | 14 |
| Sep 30, 2026 | 14 |
| Sep 29, 2026 | 14 |
| Sep 28, 2026 | 14 |
| Sep 27, 2026 | 14 |
| Sep 26, 2026 | 14 |
| Sep 25, 2026 | 14 |
| Sep 24, 2026 | 14 |
| Sep 23, 2026 | 14 |
| Sep 22, 2026 | 14 |
| Sep 21, 2026 | 14 |
| Sep 20, 2026 | 14 |
| Sep 19, 2026 | 14 |
| Sep 18, 2026 | 14 |
| Sep 17, 2026 | 14 |
| Sep 16, 2026 | 14 |
| Sep 15, 2026 | 14 |
| Sep 14, 2026 | 14 |
| Sep 13, 2026 | 13 |
| Sep 12, 2026 | 13 |
| Sep 11, 2026 | 13 |
| Sep 10, 2026 | 13 |
| Sep 9, 2026 | 13 |
| Sep 8, 2026 | 13 |
| Sep 7, 2026 | 13 |
| Sep 6, 2026 | 13 |
Trends appear after 7 days of data. Daily snapshots have not started yet.
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1142870023-root)<a href="https://payloaddirectory.dev/plugins/1142870023-root"><img src="https://payloaddirectory.dev/badge/1142870023-root.svg" alt="Payload Directory"></a>README
A comprehensive Learning Management System (LMS) plugin for Payload CMS featuring course management, video progress tracking, enrollment management, and payment integration.
Status: Active Development | Payload Compatibility: ^3.71.1
.npmrc file:@superwebpros:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
pnpm add @superwebpros/payload-lms-plugin
Add the plugin to your payload.config.ts:
import { buildConfig } from 'payload'
import { lmsPlugin } from '@superwebpros/payload-lms-plugin'
export default buildConfig({
// ... your config
plugins: [
lmsPlugin({
enabled: true,
defaultCompletionThreshold: 90,
enableMauticIntegration: true,
enableStripeIntegration: true,
})
]
})
interface LMSPluginConfig {
/**
* Enable or disable the entire plugin
* @default true
*/
enabled?: boolean
/**
* Enable certificate generation on course completion
* @default false
*/
enableCertificates?: boolean
/**
* Enable Mautic CRM integration for enrollment and progress tracking
* @default true
*/
enableMauticIntegration?: boolean
/**
* Enable Stripe payment integration for course purchases
* @default true
*/
enableStripeIntegration?: boolean
/**
* Default completion threshold (percentage of video watched to auto-complete)
* @default 90
*/
defaultCompletionThreshold?: number
/**
* Admin group name in Payload admin panel
* @default 'LMS'
*/
adminGroupName?: string
/**
* Disable specific collections if you don't need them
* @default []
*/
disableCollections?: Array<'courses' | 'modules' | 'lessons' | 'enrollments' | 'progress' | 'downloads'>
/**
* Insert LMS collections after this collection slug
* @example 'categories' - LMS appears after Categories in admin sidebar
*/
insertAfter?: string
}
The plugin adds 6 collections to your Payload instance:
Main course collection with pricing, instructor assignment, and module relationships.
Admin: /admin/collections/courses
Module collection with lesson relationships and duration calculation.
Admin: /admin/collections/modules
Lesson collection with video integration, rich text content, and downloadable resources.
Admin: /admin/collections/lessons
Enrollment tracking with payment status and progress caching.
Admin: /admin/collections/course-enrollments
Individual lesson progress with video tracking and auto-completion.
Admin: /admin/collections/lesson-progress
Audit trail for downloadable resources (admin-only).
Admin: /admin/collections/file-downloads
PAYLOAD_SECRET=your-secret-key
DATABASE_URI=mongodb://localhost:27017/your-db
# Mautic CRM Integration
MAUTIC_BASE_URL=https://mautic.example.com
MAUTIC_USERNAME=your-username
MAUTIC_PASSWORD=your-password
# Stripe Payment Integration
STRIPE_SECRET_KEY=sk_...
STRIPE_PUBLISHABLE_KEY=pk_...
STRIPE_WEBHOOK_SECRET=whsec_...
/admin/collections/coursesManual Enrollment:
/admin/collections/course-enrollmentsWebhook Enrollment: Enrollments can be created automatically via Mautic or Stripe webhooks.
Navigate to /admin/collections/lesson-progress to view:
The plugin exports useful helper functions:
import {
calculateCourseDuration,
calculateModuleDuration,
isUserEnrolled,
getUserEnrollment
} from '@superwebpros/payload-lms-plugin'
// Check if user is enrolled
const enrolled = await isUserEnrolled(userId, courseId, payload)
// Get enrollment with progress
const enrollment = await getUserEnrollment(userId, courseId, payload)
// Calculate duration
const duration = await calculateCourseDuration(courseId, payload)
# Install dependencies
pnpm install
# Start dev server
pnpm dev
Visit http://localhost:3000/admin to access the Payload admin.
# Run all tests
pnpm test
# Run tests in watch mode
pnpm test:watch
# Type checking
pnpm typecheck
Contributions are welcome! Please read our Contributing Guide for details.
MIT © Super Web Pros
Built with ❤️ by Super Web Pros
payload video stream
Send video uploads from Payload upload collections to Cloudflare Stream and track processing status
5166/wk8v3
plugin adaptive bitrate videos
Automatic HLS adaptive bitrate transcoding for video uploads in Payload collections
4827/wk22v3
video plugin
Queued FFmpeg video variant processing with presets, cropping and an admin panel for Payload upload collections
4561/wk1v3
stripe
Connect Stripe and Payload CMS to work with Stripe data from your Payload project
10022.2k/wk46.1kv3 v4
ecommerce
Ecommerce utilities for Payload with idempotent Stripe confirmation, orders, carts and inventory handling
10019.0k/wk46.1kv3 v4
payload media
Search stock images and videos from Unsplash, Pexels, Pixabay and Openverse inside the Payload admin
83900/wk8v4