# Codebase

> Where Learn's code, the lesson format and the sample project live.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://learn.docs.sypnia.com/architecture/codebase/

For agents: Repos (Sypnia Git, mirrored to GitHub): sespinosav/sypnia-learn (open source): engine/ (TypeScript service, AGPL-3.0), packages/learn (@sypnia/learn: format, client, CLI, checks; MIT), spec/lesson-format.md and spec/openapi.yaml, spec/mcp.json, docker/, cases/ (Learn's own map: open-lesson, start-exercise, check-exercise, explain-item, offer-lesson, delete-progress). sespinosav/sypnia-learn-espiga (open, MIT): the sample bakery project. Sypnia's courses (lessons and videos) in a private repository of Sypnia's organization; the console is private.

| Repository                       | What it holds                                                                                                                                          | License                                 |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------- |
| `sespinosav/sypnia-learn`        | the engine (`engine/`), `@sypnia/learn` (`packages/learn/`), the format and API specs (`spec/`), Docker files, and Learn's own map of cases (`cases/`) | engine AGPL-3.0; package and format MIT |
| `sespinosav/sypnia-learn-espiga` | La Espiga, the sample bakery: map, design guide, tables, code and tests                                                                                | MIT                                     |
| Sypnia's courses                 | the lessons and videos presented by Santi                                                                                                              | private                                 |
| The console                      | `learn.app.sypnia.com`                                                                                                                                 | private                                 |

The repositories live in [Sypnia Git](https://git.docs.sypnia.com/), with a copy on GitHub.

## Learn's own map

Learn is built the way it teaches. Its cases include `open-lesson`, `start-exercise`, `check-exercise`, `explain-item`, `offer-lesson` and `delete-progress`, each with its failures, and its traces in Telemetry are grouped by them.
