Skip to content

Architecture

How Sypnia Learn is built: its parts, how they connect, and why exercises run outside the engine.

Applies to EngineCloud
View as Markdown
On this page
  1. Why TypeScript
  2. Why exercises run outside
Figure. Sypnia Learn: the engine renders lessons for you and your project, starts and checks exercises outside itself, and remembers what you learned.
  1. You, App, the CLI or your agent call the API or the MCP server.
  2. A lesson is rendered for your level and filled with items from your project.
  3. Your project is read with your permissions: the map, the tables, the traces, the repository.
  4. An exercise becomes a branch; its checks are sent as a job.
  5. The runner checks the branch in a sandbox and sends back each result.
  6. Explanations and hints come from Sypnia AI, at your level.
  7. When a lesson is done, a note is written in your memory.
Read this diagram as text

The engine is one service with the API, the MCP server, the lesson renderer, the binder that reads your project, the exercise service, the check orchestrator, the offers listener and the memory writer. It keeps its state in Postgres and course files and videos in object storage. Exercises never run inside the engine: a runner checks them in a sandbox.

PartWhat it doesLanguageOpen source
Learn engine: API, MCP, renderer, binder, exercises, checks, offers, memory writereverything in the diagram’s frameTypeScript (Node 22)yes, AGPL-3.0
@sypnia/learn: the lesson format, the CLI, the clientfor learners, authors and their toolsTypeScriptyes, MIT
The runnerchecks exercises in a sandboxSypnia Agent’s sandbox (Rust), or a Docker runneryes
Sypnia’s coursesthe lessons and videos presented by SantiMarkdown and videono
Console at learn.app.sypnia.comcourses, progress and settings in the browserTypeScript (React, @sypnia/ui)no

Why TypeScript

Learn spends its time rendering Markdown and calling other products, not on a hot path. Writing the engine in the same language as @sypnia/learn means the CLI, the console and the engine read lesson files with the same parser, so a lesson that passes learn lint renders the same everywhere.

Why exercises run outside

An exercise is someone’s code. Running it inside the engine would put every learner’s work next to everyone’s progress. The runner is a separate sandbox with only the branch, no secrets and no production access.

  • Request paths

    What happens when you open a lesson, start an exercise, check it, ask for an explanation, and get an offer.

  • Data model

    The tables of the Learn engine and what each one holds.

  • On AWS

    How Sypnia Cloud runs Learn on AWS: the services, where each part runs, and how it scales.

  • Failures and scaling

    What happens to a lesson, an exercise or your progress when a part of Learn, or a product it uses, fails.

  • Codebase

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

  1. Why TypeScript
  2. Why exercises run outside

    Search pages, sections and terms