Overview
Features
Section titled “Features”- First principles, made concrete: chapters derive an idea from its assumptions, work a small example by hand, then connect the reasoning to a complete solution.
- Book library: six primary books, two field guides, and two reading paths. AI model building, applications, evaluation, and responsible deployment share one AI Engineering book.
- Build Your Own LLM System: follow a complete LLM platform (tokenizers, attention, KV caches, kernels, inference, serving, and operations) through annotated reference solutions in
course/solutions/. - Check your understanding: predict a result before revealing it, explain why it follows, and use review questions to find gaps in your reasoning.
- Test and validate: check reference code against its assumptions, invariants, boundary cases, and failure scenarios to decide whether it meets the requirement.
- Worked problem sets: mathematics problem sets show every answer with its derivation and the common wrong answers.
- Read anywhere: use the mobile book reader with full-text search, inline code and equations, or download a published PDF for offline reading.
- Publish from one source: use a course manifest to select the same Markdown lessons for its website, PDF, and downloadable pack.
Installation
Section titled “Installation”Read the website without installing anything, or download PDFs and source packs from releases.
Prerequisites
Section titled “Prerequisites”| Requirement | Used for |
|---|---|
| Git | Clone the repository |
| Python 3.11+ | List, validate, and export courses |
| Pandoc and XeLaTeX | Build course PDFs (optional) |
| Node.js 24 and pnpm | Serve the website locally (optional) |
From source
Section titled “From source”Clone the repository to read the sources locally or publish a course:
git clone https://github.com/urmzd/openlearn.gitcd openlearnQuick Start
Section titled “Quick Start”| Start here | What to expect |
|---|---|
| Technology Foundations | Explore programming, mathematics, systems, data, AI, and other areas of technology at your own pace |
| AI Engineering | Learning foundations, model construction, training, inference, applications, evaluation, and responsible deployment |
| Course catalogue | Subject-specific study plans and other learning routes |
| Programming and Algorithms | Predict-the-output puzzles and data-structure implementations, each with a worked answer |
Predict each step before reading it, explain the result in your own words, then find a test or counterexample that could challenge your explanation. Nothing is graded, and reaching the end of a page is not evidence of mastery. See How to read these books for the full reading method.
List and export a course
Section titled “List and export a course”python3 scripts/course_catalog.py listpython3 scripts/course_catalog.py validatepython3 scripts/course_catalog.py export --course mathematics --zipRead the Markdown sources in outputs/packs/mathematics/ or share outputs/packs/openlearn-mathematics.zip. For a typeset offline edition, download or build a PDF. Export refuses to overwrite an existing destination. Pass --output with a fresh directory for another export.
Build a PDF
Section titled “Build a PDF”Install Pandoc, XeLaTeX, and Bash 4.3 or newer, then run:
./scripts/build-book.sh --course mathematicsThe result is outputs/openlearn-mathematics.pdf. See course publication for the publishing workflow and the build script for rendering options and recommended diagram tools.
Serve a course
Section titled “Serve a course”Install Node.js 24 and pnpm 11.6, then run:
cd apps/webpnpm install --frozen-lockfileOPENLEARN_COURSE=mathematics pnpm devOmit OPENLEARN_COURSE to serve the full catalogue.
Configuration
Section titled “Configuration”| Setting | Purpose |
|---|---|
Course openlearn.json | Reading order, shared lessons, and references |
OPENLEARN_COURSE | Select one course for a website build or development server |
OPENLEARN_SITE_URL | Set the public URL for an independent course deployment |
See course authoring and publication for manifest fields.
Development
Section titled “Development”just course-lint # validate manifests and relative linksjust run-practice-solutions # run every C and C++ reference solutionRebuild the website, then run teasr run --config teasr.toml to refresh the screenshots in showcase/.
Documentation
Section titled “Documentation”- Course authoring and publication
- Web reader
- How to read these books
- Source register: attribution, resource access, and validation evidence
Agent Skill
Section titled “Agent Skill”This repo’s conventions are available as portable agent skills in skills/.
License
Section titled “License”Apache License 2.0. Linked resources and individual assets retain their stated licenses and access terms.