Torollo is an open-source interactive visual playground designed to learn system design and networking, all locally.
Torollo is an open-source interactive visual playground designed to learn system design and networking, all locally.
The Packet Tracer of backend engineering. Draw an architecture on a canvas where every node is a real Docker container on your machine, then follow guided roadmaps that grade each step against the actual state of your system.
Drawing boxes is easy; plenty of tools do it. Torollo is different in one specific way: when you draw a link, a real firewall rule is written; when you add a database, a real database starts; and when a roadmap step says "traffic from the public subnet must not reach Postgres", Torollo checks it by probing your live containers, not by comparing your answer to a diagram. You can't bluff it, and that's the point.
Real run, no mocks: the database accepts 5432 from anywhere → Validate → ✗ with the reason → the firewall is tightened to the two app servers → Validate → ✓ → roadmap complete.
Website: torollo.app · Package: npm · License: MIT
Docker must be running. Then, without cloning or installing anything permanently:
npx torollo startOpen the app and pick Start learning on the first-run screen (the Learning tab in the left rail brings the catalogue back at any time). The best first contact with Torollo is a guided roadmap, not an empty canvas. Start with Deploy a resilient three-tier app: it walks you from a single web server to a load-balanced, firewalled, database-backed architecture in ten validated steps.
The first run downloads the node images (a few minutes, once); torollo start shows which image it is on and opens the browser only when the backend answers. Pass --no-open to skip opening the browser.
torollo start stops with an errorRun the built-in environment check:
npx torollo doctorIt checks the active Node.js version, the Docker CLI, access to the same Docker daemon Torollo will use, the default frontend and backend ports, available disk space, and the installed Torollo version. Checks that block startup produce a non-zero exit code; occupied default ports are only a warning because Torollo can select the next available ports automatically.
For a machine-readable support report that can be pasted into an issue:
npx torollo doctor --jsonHome-directory paths are replaced with ~ in the report.
The CLI probes Docker through the same socket the backend uses and names the problem it found, with the fix for your OS:
| Message | Meaning | Fix |
|---|---|---|
| Docker's socket was not found | No daemon socket where Torollo looked | Start Docker (Desktop, or sudo systemctl start docker). On macOS, enable Allow the default Docker socket to be used in Docker Desktop's Advanced settings, or set DOCKER_HOST to your provider's socket. |
| Your user is not allowed to open Docker's socket | Socket exists, permission denied | sudo usermod -aG docker $USER, then log out and back in. |
| Docker is not running | Socket exists, no daemon answering | Start the daemon, then run torollo start again. |
| Docker is not answering | The daemon hung for more than 10 s | Wait for it to finish starting, then retry. |
| Rootless Docker detected | Containers work, but subnets, NAT and cross-subnet security groups need host iptables rules a rootless daemon cannot apply | Use a rootful daemon for the full network engine. |
torollo start honours DOCKER_HOST and, when it is unset, the active docker context — so the backend always targets the daemon your docker CLI talks to. The backend log lives in ~/.torollo/logs/backend.log; attach it when you open an issue.
The Compose setup builds the frontend and backend, serves them through one local URL, mounts the host Docker socket so Torollo can create lab resources, and persists projects and learning progress in a named volume.
Prerequisites:
docker compose version).Start the production stack:
cp .env.example .env # optional: defaults work for localhost
docker compose up --build -d
docker compose logs -fOpen http://localhost:23232. The first boot can take several minutes while Torollo prepares its node images; follow the backend logs to see progress. Stop the application without deleting its state with:
docker compose downFor development with Vite and nodemon hot reload:
docker compose -f compose.yaml -f compose.dev.yaml up --buildThe development override also publishes the backend at http://localhost:23233. Source and roadmap changes are bind-mounted; rebuild after changing dependencies.
Compose reads these optional settings from the root .env file:
| Variable | Default | Purpose |
|---|---|---|
COMPOSE_PROJECT_NAME |
torollo |
Prefix for containers, networks, and volumes |
TOROLLO_BIND_ADDRESS |
127.0.0.1 |
Host address used for published ports |
TOROLLO_FRONTEND_PORT |
23232 |
Browser-facing frontend/proxy port |
TOROLLO_BACKEND_PORT |
23233 |
Backend port published only by the development override |
TOROLLO_DOCKER_SOCKET |
/var/run/docker.sock |
Host Docker socket to mount into the backend |
TOROLLO_ALLOWED_ORIGINS |
empty | Comma-separated extra browser origins |
Project and roadmap-progress data live in the torollo-data named volume. docker compose down preserves it; docker compose down -v permanently deletes it.
⚠️ Docker access: The socket mount gives the backend control of the host Docker daemon, which is Torollo's core function. Torollo has no authentication, so anyone who can reach the published port inherits that control — the default
TOROLLO_BIND_ADDRESS=127.0.0.1is what keeps the stack private, notTOROLLO_ALLOWED_ORIGINS, which only covers browsers. Read Self-Hosting & Network Exposure before changing it, and do not run untrusted Torollo images. Rootless Docker users can setTOROLLO_DOCKER_SOCKET=/run/user//docker.sock.
The learning engine is what Torollo is really about. A roadmap is a sequence of steps (instructions, progressive hints, a solution if you're stuck), and every step is closed by validators that assert against the real state of your lab:
A green check means your architecture actually does what the step asked. A red one tells you what was expected and what was observed instead — reading that gap is where the learning happens.
Current catalogue (English and French):
| Roadmap | Difficulty | ~Time | You practice |
|---|---|---|---|
| Deploy a resilient three-tier app | intermediate | 40 min | Load balancing, security groups, private subnets, autoscaling |
| Cache-aside with Redis | intermediate | 45 min | Caching strategy, TTLs, invalidation, measuring hit rates, surviving a cache outage |
| Workers & the Redis job queue | intermediate | 40 min | Async decoupling, queues, scaling workers under load, poison messages |
Roadmaps are plain JSON — no code. The format is open and documented in the Roadmap Authoring Reference; drop a valid file into roadmaps/ — or import any roadmap file or .zip pack from the Learning page, no repo checkout needed (how it works) — and it appears in the catalogue. Community-authored roadmaps are very welcome. The validation HTTP API is documented in learning-api.md.
Every node maps 1:1 to a real Docker container running locally.
iptables rules inside the containers.ip_forward and MASQUERADE routing.Beyond the nodes themselves: a traffic simulator to watch requests flow through your topology, root web terminals into any container, and clickable localhost shortcuts that appear when your firewall rules actually allow the traffic.
By default, the Torollo API binds to 127.0.0.1 and only accepts cross-origin requests from local origins (localhost, 127.0.0.1, [::1]). Other machines on your network cannot reach it, and no configuration is needed for normal use.
To access Torollo from another machine (e.g. a home lab server), opt in explicitly:
TOROLLO_HOST=0.0.0.0 TOROLLO_ALLOWED_ORIGINS=http://:23232 npx torollo startFor Compose, set the equivalent root .env values and restart the stack:
TOROLLO_BIND_ADDRESS=0.0.0.0
TOROLLO_ALLOWED_ORIGINS=http://:23232TOROLLO_HOST — address the API binds to (default 127.0.0.1; set to 0.0.0.0 to listen on all interfaces).TOROLLO_ALLOWED_ORIGINS — comma-separated list of exact extra origins allowed to call the API from a browser (the address you type into the browser, e.g. http://192.168.1.5:23232).⚠️ Warning: Torollo has no authentication. Exposing it gives everyone on the network terminal access to its containers and control over Docker on your machine. Only do this on a trusted network, or put it behind an authenticating reverse proxy.
Torollo can send anonymous, opt-in usage events so we can see where the roadmaps lose people. Nothing is ever sent unless you explicitly enable it — the app asks once on the home screen, and until you answer (or if you decline) it makes zero telemetry requests.
If you opt in, exactly these events are sent, and nothing else:
| Event | Sent when | Extra props |
|---|---|---|
app_started |
the app loads | — |
runtime_check_started |
the app probes whether Docker is reachable (right after app_started) |
— |
runtime_ready |
that probe finds Docker running | — |
runtime_failed |
that probe fails | reason: backend_unreachable, timeout, socket_not_found, permission_denied, connection_refused or unknown |
image_pull_failed |
a node can't be created because its Docker image failed to download | node: the node type (redis, postgres, …) |
first_validator_run |
the very first time this install runs a step validation | roadmap, step |
roadmap_started |
you open a roadmap with no saved progress | roadmap |
step_validated |
a step's validators all pass | roadmap, step |
step_failed |
a validation runs and the step doesn't pass (engine errors are not counted) | roadmap, step |
roadmap_completed |
the last remaining step of a roadmap passes | roadmap |
roadmap_abandoned |
you leave a roadmap before finishing it | roadmap, step |
Every event also carries the app version and a random install id generated locally (never derived from your machine). roadmap and step are the ids from the catalogue; reason and node are fixed codes. No personal data, no project names, no socket paths, no error messages, no container conte
No open issues yet, or sync has not completed.