Main app of the aivopod platform.
  • TypeScript 94.8%
  • PLpgSQL 2.9%
  • CSS 1.6%
  • JavaScript 0.4%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
oliver.maklott 75a5e14d99
Some checks are pending
check / check (pull_request) Successful in 27m33s
e2e / e2e (pull_request) Successful in 32m8s
publish / release (push) Waiting to run
e2e / e2e (push) Has started running
check / check (push) Has started running
Tests that read all of src skip the lint probes
lint.test.ts writes probe files into src/pages for a moment; a test
walking src in parallel listed one and failed to read it once it was
gone (CI run 13176, ENOENT LintErrorProbe.tsx). The three walkers now
skip the probes by name. Linting the probes as text instead does not
work: typed linting needs the file on disk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 02:02:31 +00:00
.forgejo/workflows CR74: small findings of review 3: logout token on an account switch, courses of a template, sessions from the command line, device codes per site, loads with another try, releases that can be repeated (D633) 2026-11-28 00:54:21 +00:00
.githooks B03: move CI to Forgejo workflows and add the pre-push hook 2026-09-26 21:00:58 +00:00
apps Tests that read all of src skip the lint probes 2026-12-02 02:02:31 +00:00
deploy Release 0.95.0: questions on steps, knowledge questions, review queues, who chose what 2026-12-01 18:00:08 +00:00
docker CR60: pupils see the video they embedded: a click-gated video mode of the preview, and MP4, WebM and WebVTT as pack assets (D581) 2026-11-17 01:25:22 +00:00
docs AT13: who chose what, for knowledge questions only 2026-12-01 17:59:04 +00:00
e2e AT07: entering a class flow is held; pause and resume 2026-12-01 16:03:11 +00:00
packages AT09a: the CLI's texts say Arbeitsform too 2026-12-01 18:00:08 +00:00
scripts CR97: note a game's count that is too small for a judgement instead of dropping it (D641) 2026-11-28 17:37:11 +00:00
.dockerignore B25: packs only in their own repositories 2026-09-27 16:39:46 +00:00
.editorconfig A01: scaffold pnpm monorepo 2026-09-25 21:13:54 +00:00
.gitignore Release 0.45.2: the login service's files in idp/ instead of op/, apcmd configure --idp instead of --op (D429) 2026-10-27 18:43:23 +00:00
.npmrc Skill titles from the core catalog @aivopod/skills: course view, a student's view, CSV and track suggestions (Plan 18, SK02, D325) 2026-10-20 16:43:55 +00:00
.nvmrc B02: switch to Node 26 2026-09-26 20:50:30 +00:00
.prettierignore MK03: marker detector, /check/scan and the test sheet (Plan 24, D498) 2026-11-08 19:28:36 +00:00
.prettierrc.json A01: scaffold pnpm monorepo 2026-09-25 21:13:54 +00:00
CLAUDE.md AT01: tabs that stay and dialogs that only hide 2026-12-01 13:36:08 +00:00
eslint.config.js CR45: request paths read the injected clock, a lint rule keeps it so (D585) 2026-11-17 08:56:06 +00:00
LICENSE.md Aivopod is licensed under FSL-1.1-ALv2 (Copyright 2026 Oliver Maklott, Belowtoxic e.U.): LICENSE.md, license fields, the license in npm packages, images and the frontend archive; why, the e.U., the period and AI-assisted work in D287 2026-10-17 09:26:18 +00:00
package.json Release 0.95.0: questions on steps, knowledge questions, review queues, who chose what 2026-12-01 18:00:08 +00:00
pnpm-lock.yaml KL07: v2 sheets read back by the detector; scan test sheet made ahead (D536) 2026-11-10 19:27:01 +00:00
pnpm-workspace.yaml Release 0.67.1: dependencies raised within their ranges (DU01, D512) 2026-11-10 09:35:52 +00:00
README.md CR81: paths are English in code; a language brings its own segments, German the ones in use (D635) 2026-11-28 11:21:14 +00:00
tsconfig.base.json A01: scaffold pnpm monorepo 2026-09-25 21:13:54 +00:00
tsconfig.json B25: packs only in their own repositories 2026-09-27 16:39:46 +00:00
vitest.config.ts B26: merge Plan 2 into the SPEC, operations handbook with apcmd 2026-09-27 17:59:05 +00:00

Aivopod

Aivopod is a learning platform for programming lessons at school. Students work through small, fine-grained exercises ("challenges") in JavaScript and on the web: reading code, predicting output, marking and ordering parts of code, matching, running, changing and writing code, and building small web pages. Each challenge has three levels (normal, advanced, expert). Teachers run lessons from the browser, see how the class is doing, and get CSV exports for their own analysis in Excel.

What sets it apart:

  • No accounts for students. They join with a printed card (code and QR code) or a course code. Only a pseudonym is visible to other students.
  • Student code never runs on the server. It runs in a sandboxed iframe on its own origin, inside a Web Worker with a time limit, without network access or cookies.
  • Nothing is lost. Code is saved continuously through an offline outbox in IndexedDB. It reaches the server after a lost connection and comes back on another device.
  • Content lives in packs: challenge packs and games in their own repositories, written with a small TypeScript SDK (defineChallenge, defineGame, step kinds, declarative checkers), tested like code and built with the aivopod CLI. An instance reads them from pack sources (Forgejo/GitHub organizations or single repositories) and installs versions on demand.
  • Lessons in the classroom: lessons with tracks, the bell, polls, print material, a stage for the projector, class games in a shared game world, stars and rewards, and an estimate per student and skill with practice for the weakest skills.
  • Schools on one instance: roles (user, composer, creator, manager, auditor), course templates, students with tags, skins per audience (children, teenagers, adults) with a WCAG 2.2 AA contrast check.
  • Teachers sign in via OIDC with the school's identity provider. They work in the teacher view (/teacher) or with the aivopod CLI. Operators run the server with apcmd.
  • Everything is translatable (i18next with ICU messages). German is the first language.

The binding specification is docs/SPEC.md (German), decisions are in docs/decisions.md, and the remaining differences from the plan are in docs/deviations.md. Operations are described in docs/betrieb.md (German), the CI and releases in docs/ci.md, and the upgrade notes per version in deploy/MIGRATION_NOTES.md.

Infrastructure

Aivopod runs as a Docker Compose stack behind Caddy on one server, with these origins:

Origin Serves Notes
forge.<domain> Web app (React SPA), the API under /api, installed skins Strict CSP; session cookies HttpOnly; Secure; SameSite
run.<domain> Runner frame (sandboxed iframe) connect-src 'none', no cookies; runs student code and checkers in Blob workers
assets.<domain> Pack bundles and images, addressed by SHA-256 Content-Security-Policy: sandbox, immutable caching
<preview domain> Preview frame for the web pages students build Must be its own registrable domain, so student pages share nothing with the app
stage.<domain> (*) The stage at the projector Optional (apcmd configure --stage-host); without it, the instance has no stage
Compose service Role
caddy TLS (Let's Encrypt or a local CA), the host names, security headers, static files of the web app, runner and preview frame
api Fastify API (Node 26, TypeScript)
worker pg-boss jobs: decides submissions (RUNNER=client), installs pack versions, queues game replays, reads pack sources and skins hourly
replay Replays of game runs and tables of class games: pack code in child processes, no database, no secrets, internal network
postgres PostgreSQL 16; every table with student data carries school_id and is protected by row-level security
db-init One-off: creates roles and database, runs migrations and sets up the job-queue schema
ops One-off: the operator commands (dist/ops.js), called by apcmd
backup Nightly pg_dump plus the asset volume, encrypted with age, optionally copied off-site with rsync

Caddy either holds ports 80 and 443 itself (eigenstaendig) or sits behind a web server already on the host (hinter-proxy, deploy/compose.hinter-proxy.yml).

Stack: TypeScript (strict), pnpm workspace, React + Vite + React Router, CodeMirror 6, @lezer/javascript, Fastify, valibot (shared schemas), PostgreSQL 16 with Kysely, pg-boss, i18next (ICU), openid-client, marked + DOMPurify, lucide, sharp, esbuild-wasm, Vitest and Playwright. The aivopod CLI and apcmd are written in Deno and compiled to single executables.

Repository layout

apps/
  api/             Fastify API, migrations, operator commands (dist/ops.js), worker, replay service
  web/             React SPA: student view, teacher view (/teacher), stage, join page
  runner-frame/    Sandboxed runner: loads pack bundles hash-checked, runs code and checkers
  preview-frame/   Preview origin for the web pages students build (and the learning server)
packages/
  shared/          valibot schemas for the API and the postMessage protocol, route registry, zip reader
  sdk/             Pack authoring SDK (defineChallenge, defineGame, step kinds) and test helpers
  checkers/        Checker blocks, named error patterns, feedback IDs
  harness/         Runs code with limits (Node and browser) and applies the checkers
  analysis/        lezer-based code analysis (nodes, ranges, node-level diff)
  packtools/       Builds, checks and tests packs (used by the CLI)
  welt/            The game world: maps, robot actions, sensors, limits and replay as pure functions
  skintools/       Checks for skins: contrast gate (WCAG 2.2 AA) and token tools
  i18n/            i18next setup, catalogs (locales/de), formatting, CSV writer
  release-tools/   Deploy bundle and release-trust.json for the publish workflow
  device-check/    `pnpm devices`: a challenge on real devices at BrowserStack
deploy/            Production compose.yml, .env.example, caddy/Caddyfile, MIGRATION_NOTES.md (the deploy bundle)
docker/            Dockerfile, compose.dev.yml, compose.e2e.yml (test IdP), backup scripts, header tests
scripts/           CI and E2E helpers; scripts/release/ for images, bundle and uploads (docs/ci.md)
e2e/               Playwright tests against the running stack, incl. the lesson scenario
e2e/packs/         Pack repositories checked out for the E2E tests (git-ignored)
docs/              SPEC, decisions, deviations, operations manual, CI, plans
aivopod-cli/       Checkout of the CLI repository (own Git repository, git-ignored)
apcmd/             Checkout of the apcmd repository (own Git repository, git-ignored)

Related repositories on git.belowtoxic.cloud: aivopod/aivopod-cli (the aivopod CLI and the author handbook), aivopod/apcmd (server management), the challenge packs in aivopod-challenges, the games in aivopod-games and the skins in aivopod-skins.

Requirements

  • Node.js 26 (.nvmrc) and pnpm 12 (npm install -g corepack && corepack enable; Node 26 no longer ships corepack)
  • Docker with Compose v2 (for the stack, the database tests and the end-to-end tests)
  • For browser tests: Chromium from Playwright (pnpm exec playwright install --with-deps chromium); the appearance tests also use Firefox and WebKit
  • For the CLI and apcmd: Deno 2

Build, test and run

Workspace commands

Command What it does
pnpm install Install all dependencies
pnpm build Build every app and package
pnpm test Unit and integration tests (Vitest); the API tests start PostgreSQL with Testcontainers
pnpm test:browser Browser tests in Chromium (harness workers, web components)
pnpm lint ESLint
pnpm format:check Prettier check
pnpm typecheck Type check, including tests
pnpm check All three: format, lint, types
pnpm format Format everything with Prettier
pnpm test:stack Header tests (CSP, cookies, CORS) against the running stack
pnpm test:e2e Playwright tests against the running stack
pnpm devices A challenge on real devices at BrowserStack (see below; not part of the CI)
pnpm --filter @aivopod/api db:codegen Regenerate the Kysely types from the migrated database
pnpm --filter @aivopod/api db:schema Regenerate apps/api/src/db/schema.sql, the schema after all migrations

If Chromium's system libraries are missing locally, scripts/playwright-server.sh starts Chromium in the official Playwright image. Point PLAYWRIGHT_WS_ENDPOINT at it.

Run locally

The production compose file with images built from the checkout (docker/compose.dev.yml); it also mounts the built SPA and runner frame, so pnpm build shows up without a new image:

cp deploy/.env.example deploy/.env     # *.localhost, TLS=internal, HTTPS on port 8443
docker compose -f deploy/compose.yml -f docker/compose.dev.yml up -d --build --wait

The web app is then at https://app.localhost:8443 (Caddy's local CA; accept the certificate or trust /data/caddy/pki/authorities/local/root.crt from the caddy container). Stop with down, and add -v to also delete all data. For the stage on its own host, set AIVOPOD_STAGE_HOST=stage.localhost in deploy/.env. For the redirect from a former app host (D309), set AIVOPOD_APP_HOST_PREVIOUS=app-old.localhost. Locally the app stays on app.localhost; in production its host does not start with app (school filters block those), e.g. forge.<domain>.

For teacher login without a real identity provider, use the E2E override with the test IdP instead (development and tests only):

docker compose -f deploy/compose.yml -f docker/compose.e2e.yml up -d --build --wait

End-to-end tests

docker compose -f deploy/compose.yml -f docker/compose.e2e.yml down -v    # the lesson needs a fresh stack
docker compose -f deploy/compose.yml -f docker/compose.e2e.yml up -d --build --wait
pnpm build && pnpm test:stack && pnpm test:e2e

The tests in e2e/tests cover, among others, the runner's sandbox, offline work, cards, the pack preview, the learning server, the game world, the stage, lessons with tracks, skills, skins and their appearance in Chromium, Firefox and WebKit, moving an instance, and older packs on the current platform. The lesson scenario (lesson.spec.ts) plays a whole lesson:

  1. A teacher signs in through OIDC, sets up a course with the CLI, prints cards and assigns the example pack.
  2. Three students join with the QR codes from the card PDF. One completes a level, one loses the connection while writing, and one clears the browser storage and continues on a "new device".
  3. The teacher checks the overview and exports a CSV.

The tests need:

  • the pack repositories in e2e/packs/ (cloned from aivopod-challenges): javascript-grundlagen (or E2E_PACK_DIR), javascript-und-die-website, web-grundlagen-3, roboterwelt and roboterwelt-2; scripts/e2e-link-sdk.sh links this checkout's SDK into them;
  • the compiled CLI (AIVOPOD_CLI, default aivopod-cli/dist/aivopod) and the preview frontends of its platform version (scripts/e2e-preview-frontend.sh).

Locally, run them with --workers=1 if the machine is small. CI runs the same in .forgejo/workflows/check.yml and e2e.yml, see docs/ci.md. pnpm install activates a pre-push hook (.githooks/pre-push) that runs the format check and ESLint.

Checking on real devices: pnpm devices

pnpm devices opens a challenge as a student on real iPhones, iPads and Android devices, and on Windows and macOS computers, at BrowserStack. It reports what each device saw (D292). It was built for the cases where challenges did not load on some Apple devices, which cannot be found without the devices themselves. It runs on your own computer in this checkout against a reachable instance (not the local *.localhost stack), never in the CI, and uses minutes of your BrowserStack account. It runs on Node's type stripping, so pnpm install is enough; no build is needed.

Set up once:

  1. Put the credentials (BrowserStack → Account → "Access Key") in .env.browserstack at the repository root. .gitignore excludes it. Alternatively, set the same variables in the environment.

    BROWSERSTACK_USERNAME=…
    BROWSERSTACK_ACCESS_KEY=…
    
  2. On the instance, create a test student (D240) in a test course, assign the challenge to check, and issue a join code. BrowserStack keeps the video and network logs of every session. So never use the code of a real student, and revoke the code after the check.

Use:

pnpm devices help                                   # all commands and options
pnpm devices list --ios --ipad                      # devices BrowserStack offers, by OS version
pnpm devices run --url https://forge.schule.example --code K7QM4XRD --ios 15,16,17,18 --ipad 16,17
pnpm devices run --url … --code … --device "iPad 9th@15" --network 3g-umts-good
pnpm devices run --url … --code … --ios 15,16,17 --game --check   # also a game and /check
pnpm devices run --url … --code … --android 13,14 --windows 10,11 --macos Sonoma
pnpm devices run --url … --code … --ipad 15,18 --macos Tahoe --browsers safari \
  --video "/challenges/<id>/normal?step=<step>"  # the video in a web exercise's preview
pnpm devices run --url … --ios 16 --windows 11 --dry-run   # only show devices and capabilities
Option Meaning
--ios, --ipad, --android <v,v> One device per OS version (Android with Chrome)
--windows, --macos <v,v> Per OS version, the desktop browsers in their newest version (Windows: Chrome, Edge, Firefox; macOS: Safari, Chrome, Firefox)
--browsers chrome,edge,… Other desktop browsers than the defaults
--device "<name>@<os>" Exactly this device, as list shows it (repeatable), e.g. "iPhone 14@16" or "Chrome 126@11"
--game Afterwards, start the student's first learning game and wait until it is ready or fails (Plan 17, LD06)
--check Afterwards, open the device check /check and report its codes (platform 0.33 and later)
--path /challenges/<id>/normal This challenge; by default the student's "Weitermachen" or the first open assignment
--video <path>?step=<step> Afterwards, this step of a web exercise: the video in its preview, clip and player (repeatable; D590, from platform 0.78)
--network <profile> A BrowserStack network profile, e.g. 3g-umts-good
--timeout <s> Seconds to wait for the challenge (default 90)
--parallel <n> Sessions at once, at most what the account allows right now (default: that number)
--out <dir> Report folder (default test-results/devices/<time>)

On every device, the check joins with /join#<code>, opens the start page and then the challenge, and waits until the steps appear, the page reports that it could not load, or the time runs out. It also asks the browser for its features, listens to what the runner frame reports, and looks into the frame, because BrowserStack records no console on iOS.

The report is report.md (plus report.json and a screenshot per device) in the report folder. It names neither the code nor the student. Per device it shows:

  • Outcome: ok (steps appeared), failed (the page reported that the challenge could not be loaded, with the error ID from platform 0.27), stuck (still loading after the timeout, with the last notice), join-failed, no-challenge or error (session or device).
  • Browser and missing features, e.g. regexLookbehind before iOS 16.4 (D275).
  • What the runner said (ready, loaded with an error), errors on the page and, if it did not load, the inside of the runner frame (loaded scripts, state).
  • Video in the preview (with --video, e.g. /challenges/<id>/normal?step=<step>): the check opens the step as the student left it, presses "Ausführen" and reports per step ok, failed with what failed, or not-readable. The student's page lies in a sandboxed frame of another site; desktop browsers and Android let the check look inside, real iPhones and iPads do not. What a device hides is reported as not readable, never as ok; the screenshots show it (on those devices one more after a tap on the preview).
  • Link to the BrowserStack session with video and network log.

The exit code is 0 when every device loaded the challenge and ran code and no stage that was asked for (--check, --game, --layout, --messages, --backdrop, --video, …) reports failed, stuck or error; 1 otherwise, with the stages that went wrong listed in the last lines; and 2 on wrong usage. A stage that is skipped or not-readable on a device could not be judged there and fails nothing. The E2E test device-check.spec.ts runs the same probe with Playwright against the stack, so the check keeps up with the app. The German description is in docs/betrieb.md ("Auf echten Geräten prüfen").

Deploy

The server builds nothing. It runs the deploy bundle of a release (aivopod-deploy-<version>.zip from the generic package registry: compose.yml, compose.hinter-proxy.yml, .env.example, caddy/Caddyfile, release-trust.json, VERSION, MIGRATION_NOTES.md) with images pulled by digest, managed with apcmd (SPEC section 11). Short version (details in docs/betrieb.md, German):

  1. Point DNS for the host names (the app, e.g. forge.<domain>, run, assets, the preview domain, which must be its own registrable domain, and optionally the stage) to the server, with ports 80 and 443 open.
  2. Install apcmd: curl -fsSL https://git.belowtoxic.cloud/api/packages/aivopod/generic/apcmd/latest/install.sh | sh
  3. sudo apcmd install --app-host … --preview-host … --tls <acme e-mail> --oidc-issuer … --oidc-client-id … --oidc-client-secret … loads and verifies the bundle, writes .env with generated secrets, pulls the images, starts the stack and checks its health. Copy the generated backup key (backup-identity.key) and a copy of .env off the server. apcmd doctor checks DNS, TLS, ports, OIDC and Docker.
  4. sudo apcmd school create --name … --sub <oidc sub> --teacher-name … creates the school and its first teacher, who then signs in at https://<app host>/teacher.
  5. sudo apcmd source add https://git.belowtoxic.cloud/aivopod-challenges (and …/aivopod-games, …/aivopod-skins) makes the packs, games and skins available to the instance.

Updating: sudo apcmd update takes a backup, verifies the new bundle, shows MIGRATION_NOTES.md, adds new variables to .env, pulls the images and restarts (db-init applies new migrations; they only go forward). If the new version does not come up healthy, it returns to the previous one; apcmd rollback [--restore-db --identity <key>] does so by hand.

Helper pages for schools and devices

When a device does not load tasks or hangs at the login, these pages help; none needs a sign-in, so their links can be sent to the school's IT or to parents (<app host> is e.g. forge.<domain>). Teachers find them in the person menu under Geräte und Schulnetz (/teacher/geraete), and in Schule › Einstellungen.

Page What it is
https://<app host>/check Device check: tests each host of the instance on this device and network and ends with a code (A1 server, S1 server takes nothing – a filter holds back sends, R… tasks and games, B… files, V… preview).
https://<app host>/check/host-sheet The sheet for the school's IT: every host the instance uses (also video hosts and the teachers' sign-in), what a filter or Screen Time must let through, the check as link and QR code. Print it or save it as PDF. Before 0.85 it was /teacher/freigabe and needed a sign-in; that address leads there.
https://<app host>/check/scan Marker scan on this device (camera, cards).
https://<app host>/check/scan/sheet The test sheet for the marker scan, to print.
sudo apcmd hosts (on the server) The same hosts from the installed .env, with --json.

Management commands

Server: apcmd

apcmd manages one or more instances on a host (--dir, default /opt/aivopod; apcmd list and apcmd use <name> with several). The full reference, in German, is in its README; apcmd <command> --help shows every option.

Command What it does
apcmd install / update / rollback Install a release, update with backup and automatic return, return by hand
apcmd up / down / restart / status / logs Control and watch the stack
apcmd configure --proxy <mode> / --stage-host / proxy-config Web server mode (eigenstaendig, hinter-proxy), the stage host, server blocks for a front server
apcmd oidc show / set Teacher sign-in: show values and redirect URIs, check and set new ones
apcmd school create / list / delete Schools; delete shows what disappears and asks for the name
apcmd teacher add / link / promote / demote Claim links for teachers, move a teacher to another login, instance admins and auditors
apcmd source add / import / list / remove Pack sources (organizations or single repositories)
apcmd pack refresh / list / install / upgrade / remove Packs of the instance; pack upgrade <pack> --all-schools moves every course to a new version
apcmd skin refresh / list / add / default / remove Skins of the instance
apcmd backup now / list / restore Backups of database and assets (age-encrypted)
apcmd snapshot create / list / restore Disaster-recovery image of the whole installation, restorable on a new machine
apcmd instance export / import Move an instance's content to another server (format in docs/PLAN-10.md)
apcmd doctor / self-update / version Checks of the host, update apcmd itself, versions

The restore procedure, also for an empty system, is in docs/betrieb.md, section 6.

Operator commands (in the API image)

dist/ops.js in the API image holds every command that touches the database, so it always matches the installed version. apcmd calls it; by hand, in the installation directory:

docker compose run --rm ops node dist/ops.js <command> [--json] [--locale de]
Command What it does
bootstrap Create the roles migrator and app and the database (idempotent; db-init does this on start)
migrate Apply pending migrations and set up the job-queue schema (db-init does this on start)
create-school --name <name> [--school-locale de] [--issuer <iss> --sub <sub> --teacher-name <name>] Create a school (idempotent by name); optionally bind a known login as owner
list-schools Schools with their teachers (IDs) and open claim links
delete-school --school <id|name> (--dry-run | --confirm <name>) Delete a school with all its data, and teachers left without a school
add-teacher --school <id|name> [--teacher-name <name>] [--role <role>] [--admin] [--valid-hours 72] One-time claim link for a new teacher of the school (D075)
link-teacher --teacher <id> [--school <id|name>] [--valid-hours 72] One-time link that moves a teacher to another login
teacher-admin / teacher-instance-auditor --teacher <id> [--revoke] Make a teacher admin or auditor of the whole instance, or take it back
source-add --url <url> [--type owner|pack] / source-import [--file <csv>] Add pack sources (one, or a CSV type;source)
source-list / source-remove --source <url|id> / catalog-refresh Sources with their packs and errors; remove a source; read all sources now
pack-install --name <name> [--version <v|latest>] Install a pack version from the catalog
pack-upgrade --name <name> [--version <v|latest>] [--all-schools [--apply]] Install a version; with --all-schools, plan (or apply) moving every course to it
pack-list / pack-remove --name <name> --version <v> Installed versions with schools and assignments, and the catalog; remove an unused version
skin-add --name <n> [--version <v>] / skin-list / skin-refresh / skin-default / skin-remove Skins of the instance
instance-export / instance-import [--dry-run] [--map-issuer <old>=<new>] The whole instance as an archive on stdout, or from stdin into an empty instance
health Database, migrations, job queue, asset volume (with unpublished uploads) and API
restore-prepare --confirm <database> Drop the database and create it empty again, before restoring a backup
cleanup [--hours 24] Remove uploads that were never published
version Version of the image

Output is a message from the ops catalog (German by default); with --json, one object {ok, id, params, message, data}. Exit code 0 on success, 1 on failure, 2 on wrong usage.

Teacher CLI: aivopod

A single executable without Node or Deno, from its own repository aivopod/aivopod-cli. It has its own version; each release names the platform version it is built for.

curl -fsSL https://git.belowtoxic.cloud/api/packages/aivopod/generic/aivopod-cli/latest/install.sh | sh   # Linux, macOS
irm https://git.belowtoxic.cloud/api/packages/aivopod/generic/aivopod-cli/latest/install.ps1 | iex        # Windows

aivopod login --url https://forge.<domain> signs in with a token from https://forge.<domain>/cli-token, or with --device through the IdP's device flow; --profile keeps several platforms apart. Messages come from the platform in the teacher's language. aivopod help lists all commands and aivopod <command> --help shows options with an example. What a teacher may do depends on their role in the school. The commands cover:

  • School and courses: school, year, teacher, template, course (also self-enrollment, audience and course card), assign, unassign, move, reorder, unlock, upgrade, store-limits;
  • Students: students import / list / retag / merge / audience, student add / delete, enroll, unenroll, codes issue, cards pdf;
  • Lessons and results: session, track, stage, game, material (print material), work migrate, export;
  • Appearance: school skins, skin init;
  • Tools: profile, whoami, self-update, version and the pack tools below.

Every command takes --json.

Pack authors

Packs live in their own repositories (aivopod pack init <name> creates one with an example, tests and a CI workflow). In a pack directory, or with --dir <path>:

Command What it does
aivopod pack build Bundle the pack and check assets, icons, image references, technik and step IDs
aivopod pack test Run the pack's tests (expectPass / expectFail from @aivopod/sdk/test), without vitest
aivopod pack preview [--port] Play the pack in the browser with the platform's real step components; nothing is stored
aivopod pack publish Build, test and publish (refuses failing tests, an existing version, an SDK newer than the platform)

A pack is released when a version bump is merged to its main: its CI builds it with the latest CLI, compares it against the previous release and attaches the archive to a release. Instances find it through their pack sources. The author handbook (German) is in the CLI repository: docs/handbuch.md.

License

Aivopod is licensed under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2): Copyright 2026 Oliver Maklott (Belowtoxic e.U.). You may use, modify and redistribute it for any purpose except a competing commercial offering; internal use, non-commercial education and research are expressly permitted. Two years after each version is made available, that version is also licensed under the Apache License 2.0.

The same applies to apcmd, the aivopod CLI, the challenge packs and the games. The skins remain MIT AND OFL-1.1; third-party dependencies keep their own licenses. Background, including the note on AI-assisted development, is in docs/decisions.md (D287).