LearnHouse is a next-generation open-source LMS designed for educators, course creators, and institutions seeking a modern, all-in-one platform to build and deliver interactive educational content. It solves the fragmentation of traditional LMS tools by integrating course creation, AI-assisted learning, real-time collaboration, code execution, and monetization into a single, cohesive system. Built for both individual creators and enterprises, it eliminates vendor lock-in through self-hosting and full API access.
The platform is built on a modular architecture using Next.js for the frontend, FastAPI and Python for the backend, and Yjs for real-time collaboration. It supports PostgreSQL for data storage, Redis for caching, and Docker for deployment. The official CLI simplifies setup, updates, and scaling, while enterprise features like SSO, multi-tenancy, and SCORM import extend its reach to organizations.
What You Get
- Block-based Editor - A Notion-like, Tiptap-powered editor with support for text, videos, code blocks, quizzes, embeds, and file uploads in a single rich content canvas.
- Code Playgrounds - AI-generated interactive simulations and diagrams with real code execution and auto-grading across 30+ programming languages using CodeMirror.
- Real-time Collaborative Boards - Live whiteboards powered by Yjs and Hocuspocus for group learning, brainstorming, and peer review.
- AI-Powered Learning Tools - Context-aware AI assistants for content generation, quiz creation, and student support, integrated with Gemini and LlamaIndex.
- Built-in Payments & Monetization - Sell courses with 0% platform fees via Stripe, supporting 40+ countries with no lock-in or hidden costs.
- Podcast Integration - Embed and manage audio content directly within courses for on-the-go learning experiences.
- Course Analytics Dashboard - Track student engagement, completion rates, quiz performance, and time-on-task with visual metrics.
- Certification Engine - Auto-generate and issue customizable certificates upon course completion with digital verification.
- Multi-language Support - Full i18n support with 19 languages out of the box to reach global learners.
- Headless API & Self-hosting - Full REST API access and Docker-based self-hosting with CLI tools for setup, backup, and updates.
- SEO & Open Graph Optimization - Automatic metadata generation, sitemaps, and social sharing tags for course discoverability.
- Enterprise SSO & RBAC - Single sign-on via OAuth providers and fine-grained role-based access control for institutions.
Common Use Cases
- Running a paid coding bootcamp - An instructor uses LearnHouse to build interactive Python and JavaScript courses with live code playgrounds, auto-graded assignments, and Stripe payments—all self-hosted to avoid platform fees.
- Creating a corporate training portal - A company deploys LearnHouse internally to deliver onboarding modules with AI-generated summaries, collaborative boards for team exercises, and SSO integration with their existing identity provider.
- Launching a language learning platform - A language educator publishes multilingual courses with embedded video, audio podcasts, and AI-powered pronunciation feedback, reaching learners in 19 languages.
- Building a university MOOC - A university uses LearnHouse to host open courses with SCORM import, analytics dashboards, and certificate issuance—while maintaining full control over data and infrastructure.
Under The Hood
Architecture
- Clear separation of concerns between web frontend and API backend via a monorepo structure, with standalone server mode for optimized production deployment
- Microservice-style modularity achieved by isolating the collab server as a independently deployable service within the same repository
- Centralized, environment-aware configuration management using dedicated config classes and runtime injection to avoid hard-coded secrets
- Docker multi-stage builds enforce strict isolation between frontend compilation, backend dependency resolution, and final runtime images, minimizing attack surface
Tech Stack
- Python backend powered by FastAPI and SQLModel with SQLAlchemy and Alembic for database migrations, enhanced with pgvector for AI embeddings
- Next.js 14 frontend with Bun as the package manager, optimized via custom server wrapper and standalone deployment mode
- Collab server built in TypeScript with Bun, compiled to a standalone output for seamless integration into the Docker image
- Comprehensive dependency management via Renovate with granular groupings across frontend, backend, and infrastructure layers
- Production infrastructure leverages Nginx as reverse proxy, PM2 for process orchestration, and environment-aware build flags for OSS/EE variants
Code Quality
- Extensive test coverage spanning unit, integration, and E2E scenarios with robust mocking of external services and database dependencies
- Strong type safety enforced through Pydantic models and explicit validation, with comprehensive testing of error paths and edge cases
- Consistent, domain-aligned naming conventions and test organization that map directly to auth, RBAC, features, and security boundaries
- Robust error handling with custom HTTP exceptions and structured validation responses, particularly in permission and feature flag enforcement
- Comprehensive security testing including password hashing, JWT validation, and input sanitization for Unicode and special characters
What Makes It Unique
- Integrated native code execution environment within the editor, providing real-time error feedback across multiple programming languages without external tools
- Dynamic certification system that generates verifiable, metadata-rich learning artifacts tied directly to course completion
- Advanced analytics pipeline visualizing learner progress through context-aware stacked charts that preserve course identity
- Lexical editor extensions that auto-detect compiler errors from stdout/stderr without requiring language-specific plugins
- Unified API layer that abstracts course, certification, and analytics endpoints with request-context-aware authorization
- Organizational configuration system that dynamically adapts features and automation per tenant, enabling true multi-tenant SaaS without code duplication