learnhouse/learnhouse: Open-Source Learning Platform with AI & Real-Time Collaboration
Building educational software that doesn't feel clunky is harder than it looks. Most learning management systems (LMS) force a choice: either pay steep SaaS fees for modern features, or wrestle with outdated open-source tools that treat UX as an afterthought. For teams who need full data control, customizable branding, and genuinely interactive content, the options narrow fast.
Enter learnhouse/learnhouse, an open-source learning platform that combines a Next.js↗ Bright Coding Blog frontend, FastAPI backend, and integrated AI tooling into a single deployable system. With 1,859 GitHub stars and active development through mid-2026, it's positioning itself as a next-generation alternative for developers, educators, and organizations who want world-class educational infrastructure without vendor lock-in.
What is learnhouse/learnhouse?
learnhouse/learnhouse is an open-source learning management platform maintained by Sweave (Badr B.) and licensed under GNU AGPL-3.0. The project describes itself as "the next-gen open-source platform for world-class educational content" — a claim backed by a modular architecture that separates concerns across four distinct applications.
The repository's technical footprint is substantial: TypeScript dominates the codebase, with Python↗ Bright Coding Blog handling API logic through FastAPI. The system is designed for self-hosting via an official CLI tool, though enterprise features (payments, SSO, multi-organization support) carry a separate commercial license.
What distinguishes learnhouse from typical LMS projects is its integration depth. Rather than bolting on features, it builds collaborative editing (Yjs/WebSocket), code execution (30+ languages via CodeMirror), AI generation (Gemini, LlamaIndex), and real-time whiteboards into the core architecture. This isn't a wrapper around existing tools — it's a unified platform with explicit contracts between components.
The project's momentum is measurable: 403 forks suggest active community experimentation, and the commit history shows sustained development. For engineering teams evaluating whether to build in-house or adopt open-source, learnhouse offers a credible middle path — enough structure to deploy quickly, enough modularity to customize deeply.
Key Features
Block-Based Content Editor: Built on Tiptap, the editor supports Notion-like composable blocks. This matters for instructional designers who need flexible content structures without fighting markdown↗ Smart Converter or HTML.
Real-Time Collaboration: The apps/collab service uses Hocuspocus and Yjs for operational transformation. Multiple users can edit courses or whiteboards simultaneously with conflict resolution handled automatically — critical for team-based curriculum development.
Code Execution & Auto-Grading: CodeMirror integration supports 30+ languages with sandboxed execution. For technical education (programming, data science), this eliminates the need to integrate external judge systems like Judge0.
AI-Generated Learning Elements: Via Gemini and LlamaIndex, the platform generates interactive simulations, diagrams, and "playgrounds." The implementation appears context-aware rather than generic prompt-chaining, though specific RAG architecture details aren't documented in the README.
Structured Content Organization: Courses live inside Collections, with User Groups controlling access boundaries. This supports both public catalogs and private cohort-based learning.
Built-In Monetization: Stripe integration for course sales, with the explicit enterprise positioning of "no fees and no lock-in" — a direct contrast to platforms like Teachable or Thinkific that take percentage cuts.
SEO & Customization: Metadata, sitemaps, Open Graph tags, plus custom branding and landing pages. These aren't afterthoughts; they're table stakes for any public-facing educational site.
Analytics Pipeline: Tinybird integration suggests event-streaming architecture for engagement metrics, though the README doesn't detail specific dashboards or query patterns.
Use Cases
Technical Bootcamps & Coding Schools: The combination of code execution, auto-grading, and collaborative whiteboards addresses the core workflow of programming education. Instructors can write challenges, students submit solutions in-browser, and feedback loops close without external tooling.
Corporate L&D with Compliance Requirements: AGPL licensing and self-hosting mean data stays on-premise or in controlled cloud environments. SSO (enterprise) and user groups map cleanly to organizational hierarchies. For regulated industries (healthcare, finance), this is often non-negotiable.
Creator-Led Technical Courses: Solo educators selling programming or AI courses get Stripe payments, certificate generation, and SEO-optimized public pages without building from scratch. The CLI-driven deployment lowers DevOps barriers.
Research & University Labs: The modular architecture (separate API, web, collab services) allows institutions to extend specific components. A research group might replace the AI layer with a custom model, or integrate with existing identity systems.
Community-Driven Learning: Discussion forums plus collaborative editing create spaces for peer learning — similar to what Obsidian or Notion communities do, but purpose-built for structured curriculum.
Installation & Setup
LearnHouse provides an official CLI that handles the full lifecycle. The README documents two primary paths: production self-hosting and local development.
Self-Hosted Production
# Run the interactive setup wizard
npx learnhouse@latest setup
The wizard configures domain, database connection, admin credentials, and optional features. It generates configuration files and initializes services automatically.
npx learnhouse start # Start all services
npx learnhouse stop # Graceful shutdown
npx learnhouse update # Pull latest version
npx learnhouse logs # Stream combined logs
npx learnhouse backup # Database snapshot
npx learnhouse doctor # Diagnostic health check
The CLI abstracts Docker Compose orchestration, database migrations (Alembic), and service dependencies. For teams without dedicated DevOps, this significantly reduces deployment friction.
Local Development
git clone https://github.com/learnhouse/learnhouse.git
cd learnhouse
npx learnhouse dev
This single command provisions PostgreSQL↗ Bright Coding Blog and Redis containers, installs Node.js and Python dependencies, and starts three services with hot reload:
- API server (FastAPI) — port varies by generated config
- Web frontend (Next.js) — typically localhost:3000
- Collab server (WebSocket) — handles real-time sync
The development environment mirrors production architecture, reducing "works on my machine" issues when deploying.
Full CLI options are documented at
apps/cli/README.mdin the repository.
Real Code Examples
The README provides two primary command patterns. Here's the self-hosting workflow with step-by-step explanation:
# Install and run the interactive setup wizard
# This creates config files, initializes the database,
# and prompts for domain, admin email, and feature flags
npx learnhouse@latest setup
# After setup completes, start the platform
# This launches Docker containers for PostgreSQL, Redis,
# and the three application services (web, api, collab)
npx learnhouse start
The @latest tag ensures you receive the current stable version. The setup wizard is idempotent — re-running it updates configuration without destroying existing data.
For development, the README documents:
# Clone the monorepo with all four applications
git clone https://github.com/learnhouse/learnhouse.git
# Enter the project root where package.json and workspace config live
cd learnhouse
# Start the complete development environment
# - Provisions PostgreSQL and Redis via Docker
# - Installs Node dependencies for web, collab, and CLI
# - Installs Python dependencies for API
# - Starts all services with file-watching reload
npx learnhouse dev
The npx learnhouse dev command is the critical entry point for contributors. It eliminates manual service orchestration that typically requires separate terminal windows or tmux sessions. The hot reload applies to both frontend (Next.js Fast Refresh) and backend (FastAPI auto-reload).
These are the only code examples explicitly provided in the README. The project appears to prioritize CLI abstraction over manual configuration — consistent with its goal of reducing operational complexity for educators who may not be infrastructure specialists.
Advanced Usage & Best Practices
Infrastructure Hardening: The CLI generates initial configs, but production deployments should review Docker Compose security contexts, PostgreSQL connection pooling, and Redis persistence settings. The learnhouse doctor command surfaces common misconfigurations.
AI Integration Limits: Gemini and LlamaIndex integrations require API keys and incur usage costs. For predictable scaling, implement rate limiting at the API gateway level rather than relying solely on provider quotas.
Collaboration Scaling: The Yjs/Hocuspocus collab server maintains document state in memory. For deployments with hundreds of simultaneous editors, consider horizontal scaling with Redis-backed presence awareness — though the README doesn't document this explicitly.
Backup Strategy: learnhouse backup handles database dumps, but object storage (AWS S3 for media uploads) requires separate lifecycle policies. Test restore procedures before relying on backups for compliance.
License Compliance: AGPL-3.0 requires source code disclosure for network-accessible deployments. If you're building proprietary extensions, architect them as external services communicating via the REST API rather than linked code.
Comparison with Alternatives
| Platform | Architecture | Self-Host | Code Execution | AI Features | License |
|---|---|---|---|---|---|
| learnhouse/learnhouse | Next.js + FastAPI monorepo | ✅ Official CLI | ✅ Built-in (30+ langs) | ✅ Gemini, LlamaIndex | AGPL-3.0 / Commercial |
| Moodle | PHP monolith | ✅ Manual | ⚠️ Plugin-dependent | ❌ None | GPL-3.0 |
| Canvas LMS | Ruby/Rails + React | ✅ Complex | ⚠️ LTI integrations | ❌ None | AGPL-3.0 |
| Teachable | Closed SaaS | ❌ No | ❌ No | ⚠️ Basic (platform-controlled) | Proprietary |
Moodle has deeper institutional adoption and plugin ecosystem, but its PHP architecture and UI patterns feel dated for modern technical education. Canvas offers robust LTI standards compliance for enterprise LMS interoperability, but self-hosting complexity is substantially higher. Teachable wins on zero-configuration startup for non-technical creators, but lacks data portability and charges transaction fees.
learnhouse occupies a specific niche: teams with technical capacity who want modern developer experience, full source access, and integrated AI/collaboration without SaaS constraints.
FAQ
Does learnhouse require Docker knowledge? The CLI abstracts Docker for standard operations, but debugging production issues benefits from container familiarity.
What's the database requirement? PostgreSQL is required; Redis handles caching and real-time state. The dev CLI auto-provisions both.
Can I use my own AI models instead of Gemini? The README mentions LlamaIndex for orchestration, suggesting pluggable retrieval. Custom model integration would require API-layer modifications.
Is the enterprise license source-available? Enterprise features (payments, SSO, multi-org) are proprietary. The core platform remains AGPL-3.0.
How active is maintenance? Last commit dated 2026-07-10 with ongoing issue triage. Single primary maintainer (Sweave) with community contributions.
Does it support SCORM/xAPI? Not documented in the README. For LTI compliance needs, evaluate Canvas or commercial alternatives.
What's the minimum server spec for self-hosting? Undocumented; estimate based on concurrent users and AI feature usage. Start with 2 CPU / 4GB RAM for small deployments.
Conclusion
learnhouse/learnhouse is a technically ambitious project that delivers what it promises: a modern, extensible learning platform with genuine differentiators in real-time collaboration, code execution, and AI integration. It's not a drop-in replacement for Moodle's institutional breadth or Teachable's simplicity, but it doesn't try to be.
The ideal adopters are technical teams — bootcamps, developer relations programs, internal tooling teams — who need customizable infrastructure and can benefit from the TypeScript/Python skillset the project demands. The CLI-first approach lowers operational barriers without hiding complexity that matters.
The AGPL license and single-primary-maintainer structure are genuine considerations for risk-averse organizations. But for teams aligned with open-source values and willing to contribute back, learnhouse offers a foundation that competing platforms simply don't provide at any price.
Ready to evaluate it? Clone the repository and run npx learnhouse dev to explore the full stack↗ Bright Coding Blog locally, or visit https://github.com/learnhouse/learnhouse for the latest release.
For teams comparing open-source LMS options, see our analysis of [INTERNAL_LINK: self-hosted developer education platforms] for additional context on deployment patterns and long-term maintenance considerations.