Last updated

ibl.ai/lms

Mirrored from iblai/lms Β· README.md. This page is generated β€” edit it in the repository, not here.

Open Source Agentic Learning Management System.

Next.js React TypeScript Tailwind CSS Tauri

Features β€’ Quick Start β€’ Deployment β€’ Architecture β€’ Configuration β€’ Contributing

Use it on the Web Download for macOS Download for Windows

Download for iOS Download for Android

Windows ARM64 Β· older builds Β· Linux β†’ all downloads


AGENTS.md

Agent-facing guidance for AI assistants (Claude Code, Cursor, etc.) lives in AGENTS.md. It covers prettier formatting, the --no-verify ban on git pushes, and the e2e coverage maintenance protocol. CLAUDE.md is a symlink to AGENTS.md.

Skill files referenced from AGENTS.md:


What is LMS?

LMS is a production-ready learning and skills management platform that connects learners with courses, tracks competency growth, issues credentials, and delivers actionable analytics. It ships as a modern web application backed by a powerful multi-tenant API with integrated LMS and AI mentor capabilities.

Whether you're an enterprise building an internal upskilling program, a university offering online courses, or an EdTech startup creating a branded learning marketplace β€” LMS gives you the complete stack out of the box.


Features

Course Discovery & Enrollment

  • Faceted search β€” filter courses by subject, difficulty, skills, credential type, and content type
  • Personalized recommendations β€” AI-powered course suggestions based on learner profile and goals
  • Course detail pages β€” rich metadata with syllabus, learning outcomes, instructor bios, and prerequisites
  • Flexible enrollment β€” self-enrollment, invitation-only, and Stripe-powered paid courses
  • EdX LMS integration β€” embedded course content, progress tracking, and grading via iframe

Skills & Competency Tracking

  • Skill inventory β€” track earned skills with proficiency levels (0–5 scale)
  • Skill points β€” accumulate points from course and unit completions
  • Skill leaderboards β€” compare mastery across learners and cohorts
  • Self-reported skills β€” onboarding flow for learners to declare existing competencies
  • Skills-to-course mapping β€” see which courses develop which skills

Credentials & Badges

  • Digital credentials β€” earn and display certificates, badges, and micro-credentials
  • Credential verification β€” issuer metadata, expiration tracking, and sharing
  • Course-linked credentials β€” automatic credential issuance on course completion

Programs & Learning Pathways

  • Multi-course programs β€” structured program enrollments with progress tracking
  • Curated pathways β€” guided learning sequences toward specific career goals
  • Program management β€” pricing, enrollment windows, and custom metadata
  • Pathway creation β€” build and share custom pathways for teams or organizations

Learner Profile & Analytics

  • Activity dashboard β€” courses enrolled, courses completed, skills acquired, time spent
  • Time-spent charts β€” daily/weekly learning activity visualization
  • Public profile β€” shareable learner profile with education, experience, and credentials
  • Resume builder β€” education history, work experience, and portfolio links

Analytics (Admin)

  • Overview dashboard β€” platform-wide usage stats and engagement metrics
  • User analytics β€” per-learner activity and cohort trends
  • Topic analysis β€” most popular subjects and content breakdowns
  • Transcript viewer β€” searchable session and activity logs
  • Financial reporting β€” revenue tracking and billing analytics
  • Custom reports β€” generate and download data exports

Enterprise & Platform

  • Multi-tenancy β€” full tenant isolation with per-org configuration, branding, and user management
  • Role-based access control (RBAC) β€” granular permissions with roles, policies, and group-based access
  • SSO authentication β€” Single Sign-On with configurable identity providers
  • Stripe billing β€” paid courses, subscription management, and checkout flows
  • Notifications β€” in-app notification system with alert templates
  • White-labeling β€” custom themes, logos, and advanced CSS per tenant
  • AI mentor sidebar β€” embedded conversational AI assistant for learner support
  • Configurable onboarding β€” skill self-assessment and profile setup flows

Tech Stack

LayerTechnology
FrameworkNext.js 15, React 19, TypeScript 5.9
StylingTailwind CSS 4, Radix UI, shadcn/ui
StateRedux Toolkit, React-Redux
FormsReact Hook Form, TanStack Form, Zod
ChartsRecharts
AnimationFramer Motion
PDFreact-pdf, pdfjs-dist
DesktopTauri 2 (Windows, macOS, Linux, iOS, Android shell)
TestingVitest, Testing Library, Playwright
SDK@iblai/iblai-js β€” unified data layer, components, and utilities

Quick Start

Prerequisites

  • Node.js 25.3.0+ (we recommend using nvm)
  • pnpm 10+ β€” npm install -g pnpm

1. Clone the repository

git clone https://github.com/iblai/lms.git
cd lms

The repo is named lms; the application inside is LMS.

2. Install dependencies

pnpm install

3. Configure environment

cp .env.example .env.local

Edit .env.local with your ibl.ai platform URLs and feature flags β€” see Configuration β€Ί Environment Variables for the full reference.

4. Start the dev server

pnpm dev

Open http://localhost:3000 in your browser.

Node.js 25+ note: The dev script already includes NODE_OPTIONS='--no-experimental-webstorage' to prevent conflicts with the SDK's browser storage guards. If you customize the script, keep that flag.

Tests

pnpm test            # vitest unit tests
pnpm test:coverage   # unit tests with coverage report
pnpm test:e2e        # playwright e2e suite (headless)
pnpm test:e2e:ui     # playwright UI mode
pnpm test:e2e:headed # playwright in a headed browser

Playwright auth fixtures live under e2e/. Coverage tracking (e2e/coverage.json + e2e/COVERAGE.md) is enforced by the pre-push hook β€” see .claude/skills/e2e-coverage.md.


Deployment

Docker

Build and run with Docker:

docker build -t lms .
docker run -p 3000:3000 --env-file .env.local lms

Standalone

pnpm build
pnpm start

pnpm start runs pnpm exec next start β€” a standard Next.js production server. Deploy to any host with Node.js 25+ installed.

Desktop & Mobile (Tauri)

LMS ships with a Tauri 2 shell in src-tauri/ so the same Next.js bundle can be packaged as a native desktop app for Windows, macOS, and Linux, or a mobile app for iOS and Android.

There are no pnpm tauri:* scripts β€” invoke the Tauri CLI directly from the src-tauri/ directory:

# desktop dev (hot reload)
cd src-tauri && cargo tauri dev

# desktop production build
cd src-tauri && cargo tauri build

# iOS / Android
cd src-tauri && cargo tauri ios init
cd src-tauri && cargo tauri android init

Requirements: Rust toolchain (rustup), plus platform-specific dependencies (Xcode for iOS, Android SDK + NDK for Android). See the Tauri prerequisites guide.


Architecture

lms/
β”œβ”€β”€ app/                          # Next.js App Router
β”‚   β”œβ”€β”€ home/                     # Learner dashboard
β”‚   β”œβ”€β”€ discover/                 # Course discovery & search
β”‚   β”œβ”€β”€ recommended/              # Personalized recommendations
β”‚   β”œβ”€β”€ courses/[course_id]/      # Course details & enrollment
β”‚   β”œβ”€β”€ course-content/           # EdX LMS integration (iframe)
β”‚   β”‚   └── [course_id]/          # Course, progress, bookmarks, forums
β”‚   β”œβ”€β”€ programs/[program_id]/    # Program enrollments
β”‚   β”œβ”€β”€ profile/                  # Learner profile
β”‚   β”‚   β”œβ”€β”€ skills/               # Skills inventory
β”‚   β”‚   β”œβ”€β”€ credentials/          # Earned credentials
β”‚   β”‚   β”œβ”€β”€ courses/              # Enrollment history
β”‚   β”‚   β”œβ”€β”€ programs/             # Program enrollments
β”‚   β”‚   β”œβ”€β”€ pathways/             # Learning pathways
β”‚   β”‚   └── public/               # Shareable profile
β”‚   β”œβ”€β”€ analytics/                # Admin analytics
β”‚   β”‚   β”œβ”€β”€ courses/              # Course-level analytics
β”‚   β”‚   β”œβ”€β”€ users/                # User-level analytics
β”‚   β”‚   β”œβ”€β”€ programs/             # Program analytics
β”‚   β”‚   β”œβ”€β”€ topics/               # Topic breakdowns
β”‚   β”‚   β”œβ”€β”€ transcripts/          # Activity transcripts
β”‚   β”‚   β”œβ”€β”€ financial/            # Revenue & billing
β”‚   β”‚   β”œβ”€β”€ monetization/         # Monetization metrics
β”‚   β”‚   └── reports/              # Custom analytics reports
β”‚   β”œβ”€β”€ notifications/            # Notification center
β”‚   β”‚   └── [notificationId]/     # Notification detail
β”‚   β”œβ”€β”€ reports/[tenantKey]/      # Per-tenant reports
β”‚   β”œβ”€β”€ start/                    # Onboarding flow
β”‚   β”œβ”€β”€ sso-login/                # SSO authentication
β”‚   β”œβ”€β”€ sso-login-complete/       # SSO completion handler
β”‚   β”œβ”€β”€ error/[code]/             # Error pages
β”‚   └── version/                  # App version info
β”‚
β”œβ”€β”€ components/                   # React components
β”‚   β”œβ”€β”€ ui/                       # 52 shadcn/ui primitives
β”‚   β”œβ”€β”€ header/                   # Navigation & user profile
β”‚   β”œβ”€β”€ profile/                  # Profile cards (education, experience, skills)
β”‚   β”œβ”€β”€ edx-iframe/               # LMS content embedding
β”‚   β”œβ”€β”€ onboarding/               # Setup wizard slides
β”‚   β”œβ”€β”€ chat/                     # Chat / mentor UI
β”‚   └── ...                       # Feature components (course cards, dialogs, skeletons)
β”‚
β”œβ”€β”€ hooks/                        # 58 custom React hooks
β”‚   β”œβ”€β”€ courses/                  # Course data, enrollment, navigation
β”‚   β”œβ”€β”€ profile/                  # Profile stats, time spent, pathways
β”‚   β”œβ”€β”€ skills/                   # Skill tracking & reporting
β”‚   β”œβ”€β”€ discover/                 # Search & filtering
β”‚   β”œβ”€β”€ search/                   # Catalog search & personalization
β”‚   └── ...
β”‚
β”œβ”€β”€ features/                     # Feature modules (state + logic)
β”‚   β”œβ”€β”€ mentor/                   # AI mentor sidebar
β”‚   β”œβ”€β”€ rbac/                     # Role-based access control
β”‚   └── tenant/                   # Multi-tenant context
β”‚
β”œβ”€β”€ services/                     # API service definitions
β”œβ”€β”€ types/                        # TypeScript interfaces
β”œβ”€β”€ config/                       # Runtime configuration
β”œβ”€β”€ providers/                    # React context providers
β”œβ”€β”€ lib/                          # Utilities
β”œβ”€β”€ styles/                       # Global CSS
β”œβ”€β”€ src-tauri/                    # Tauri desktop / mobile shell
β”œβ”€β”€ e2e/                          # Playwright e2e suite + coverage tracking
β”œβ”€β”€ docs/                         # Project docs ([theme-customization.md](docs/theme-customization.md))
└── public/                       # Static assets

Data Flow

User β†’ React Components β†’ Custom Hooks β†’ Redux (RTK Query) β†’ ibl.ai API
                                              ↓
                                        @iblai/iblai-js SDK
                                        β”œβ”€β”€ /data-layer  (API slices, reducers)
                                        β”œβ”€β”€ /web-utils   (auth, providers, tenant hooks)
                                        └── /web-containers (shared UI components)

The app uses @iblai/iblai-js as its unified SDK, which bundles the data layer, authentication utilities, and shared components under a single package.


Configuration

Environment Variables

All app config is NEXT_PUBLIC_* (exposed to the browser). Defaults below match .env.example.

VariableRequiredDefaultDescription
NODE_ENVNodevelopmentNode environment
NEXT_PUBLIC_API_BASE_URLYeshttps://api.iblai.appBase API URL β€” /dm, /axd, /lms, /studio are derived from this
NEXT_PUBLIC_LMS_URLYeshttps://learn.iblai.appEdX LMS host
NEXT_PUBLIC_DM_URL_TESTNoOverride DM URL for testing
NEXT_PUBLIC_AUTH_URLYeshttps://login.iblai.appAuthentication service URL
NEXT_PUBLIC_MFE_URLYeshttps://apps.learn.iblai.appOpen edX micro-frontends host
NEXT_PUBLIC_SPA_ANALYTICS_URLNohttps://analytics.iblai.appAnalytics SPA URL
NEXT_PUBLIC_MENTOR_URLNohttps://mentorai.iblai.appAI mentor service URL
NEXT_PUBLIC_PLATFORM_BASE_DOMAINNoTenant subdomain root
NEXT_PUBLIC_SUPPORT_EMAILNosupport@ibl.aiSupport contact email
NEXT_PUBLIC_HELP_CENTER_URLNohttps://ibl.ai/supportDefault Help link in the profile dropdown
NEXT_PUBLIC_COPYRIGHTNoFooter copyright string
NEXT_PUBLIC_HIDE_RECOMMENDED_TABNofalseHide the recommendations page
NEXT_PUBLIC_COURSE_ELIGIBILITY_ENABLEDNofalseEnable enrollment prerequisite checks
NEXT_PUBLIC_ENABLE_COURSE_ELIGIBILITY_LICENSE_CHECKNofalseGate eligibility on license status
NEXT_PUBLIC_ENABLE_START_ROLENofalseEnable onboarding skill self-assessment
NEXT_PUBLIC_ENABLE_MENTORNotrueEnable embedded AI mentor sidebar
NEXT_PUBLIC_ENABLE_GRAVATAR_ON_PROFILE_PICNotrueUse Gravatar for profile pictures
NEXT_PUBLIC_ENABLE_RBACNofalseEnable role-based access control
NEXT_PUBLIC_USE_FOOTER_MENUSNofalseEnable custom footer navigation
NEXT_PUBLIC_ENABLE_COMBINED_RECOMMENDATION_REPORTNofalseAggregate recommendation reports
NEXT_PUBLIC_DISCOVER_FACETS_FILTERS_TO_HIDENoComma-separated list of discover facets to hide
NEXT_PUBLIC_FOOTER_MENUSNoJSON array of footer menu items
NEXT_PUBLIC_DEFAULT_EMBEDDED_MENTOR_NAMENomentorAIDefault mentor identifier
NEXT_PUBLIC_COMBINED_RECOMMENDATION_REPORTSNoCombined recommendation reports config

Theming

Brand colors, fonts, and theme override entrypoints are documented in docs/theme-customization.md. Tenant-specific theming lives in tenant metadata.

Feature Flags

Feature flags are set via NEXT_PUBLIC_* environment variables and control which features are visible at runtime:

  • Onboarding flow β€” NEXT_PUBLIC_ENABLE_START_ROLE=true
  • AI mentor β€” NEXT_PUBLIC_ENABLE_MENTOR=true
  • RBAC β€” NEXT_PUBLIC_ENABLE_RBAC=true
  • Course eligibility β€” NEXT_PUBLIC_COURSE_ELIGIBILITY_ENABLED=true
  • Recommendations tab β€” NEXT_PUBLIC_HIDE_RECOMMENDED_TAB=false
  • Skill leaderboard β€” configured via tenant metadata (isSkillsLeaderBoardEnabled)

Scripts

ScriptDescription
pnpm devStart dev server (port 3000)
pnpm buildProduction build
pnpm startStart production server (next start)
pnpm lintESLint with auto-fix + typecheck
pnpm typecheckTypeScript type checking
pnpm formatFormat with Prettier
pnpm testUnit tests (Vitest)
pnpm test:coverageUnit tests with coverage report
pnpm test:e2ePlaywright e2e suite (headless)
pnpm test:e2e:uiPlaywright UI mode
pnpm test:e2e:headedPlaywright in a headed browser
pnpm releaseRelease via release-it
pnpm prepareHusky pre-commit / pre-push hook install

Tauri builds are not exposed as npm scripts β€” run cargo tauri dev / cargo tauri build from src-tauri/ directly (see Deployment β€Ί Desktop & Mobile).


ibl.ai Platform

LMS is built on the ibl.ai platform. To use this app, you need access to an ibl.ai backend instance which provides:

  • Skills & Course API β€” course catalog, enrollment, progress tracking, and skill management
  • EdX LMS β€” course content delivery, grading, and certificate issuance
  • Authentication β€” SSO, OAuth, JWT-based auth with multi-tenant support
  • Data Platform β€” analytics, billing, user management, and notification services
  • AI Mentor API β€” conversational AI for learner support (optional)

Visit ibl.ai to set up your backend or request a hosted instance.


Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines on how to get started.

Before pushing, review AGENTS.md and the skill files under .claude/skills/ β€” the pre-push hook runs build, lint, typecheck, unit tests, coverage, and e2e validation, and --no-verify is not an option.


Built With


Made with care by the ibl.ai team

Copyright Β© ibl.ai | support@iblai.zendesk.com