An AI-powered learning platform made with motivation and consistency in mind — and gamified by design.
  • TypeScript 95.2%
  • Python 3.2%
  • CSS 1.5%
Find a file
Gabriel Alves a39ba20f4d chore(web): regenerate the auth capabilities type
The API now documents the registration human check as risk-based rather than always on.
2026-11-28 00:44:03 +00:00
.husky chore(web): install husky pre-commit gates 2026-08-22 15:10:42 +01:00
.yarn/releases feat(openlearn): rebrand platform and redesign UI with the Vortexia theme 2026-08-12 16:58:39 +01:00
docs feat(web): add the human check and email code to registration 2026-11-27 14:10:47 +00:00
public feat(web): add the human check and risk challenges 2026-11-27 10:28:03 +00:00
scripts docs(web): document the script checks and refresh install hints 2026-10-03 09:17:43 +01:00
src chore(web): regenerate the auth capabilities type 2026-11-28 00:44:03 +00:00
.dockerignore feat(openlearn): rebrand platform and redesign UI with the Vortexia theme 2026-08-12 16:58:39 +01:00
.env.local.example feat(web): add the admin system status page 2026-11-26 23:29:52 +00:00
.gitignore refactor(web): remove the duplicate auth brand 2026-11-27 22:25:19 +00:00
.node-version chore(web): add license, node version and engines 2026-08-22 03:03:23 +01:00
.prettierignore style: format frontend to prettier defaults 2026-08-18 00:18:51 +01:00
.yarnrc.yml feat(openlearn): rebrand platform and redesign UI with the Vortexia theme 2026-08-12 16:58:39 +01:00
AGENTS.md feat(web): add the human check and email code to registration 2026-11-27 14:10:47 +00:00
docker-compose.yml style: format remaining config files 2026-08-18 00:19:35 +01:00
Dockerfile chore: pin the Docker base image to Node 24.14 2026-11-28 00:43:00 +00:00
eslint.config.mjs chore: ignore coverage in eslint config 2026-08-18 00:18:51 +01:00
kubb.config.ts feat(app): refresh tokens, hardened proxy, kubb clients without react-query, security headers and a11y 2026-08-13 23:50:18 +01:00
LICENSE chore: update copyright holder to Gabriel Alves 2026-11-09 01:03:18 +00:00
next-env.d.ts feat(app): refresh tokens, hardened proxy, kubb clients without react-query, security headers and a11y 2026-08-13 23:50:18 +01:00
next.config.ts feat(web): upload avatars through the proxy as raw bytes 2026-09-27 23:08:31 +01:00
openapi.json chore(web): regenerate the auth capabilities type 2026-11-28 00:44:03 +00:00
package.json fix(web): patch next-auth getToken CVE and harden call sites 2026-09-27 23:43:36 +01:00
postcss.config.mjs feat(openlearn): rebrand platform and redesign UI with the Vortexia theme 2026-08-12 16:58:39 +01:00
README.md docs(web): restructure the documentation set 2026-10-02 06:13:46 +01:00
tailwind.config.ts feat(web): turn the dashboard into a game hub 2026-09-23 04:37:23 +01:00
tsconfig.json feat(openlearn): rebrand platform and redesign UI with the Vortexia theme 2026-08-12 16:58:39 +01:00
vitest.config.ts feat(web): add dynamic theme infrastructure and paper light theme 2026-09-09 03:54:55 +01:00
yarn.lock fix(web): patch next-auth getToken CVE and harden call sites 2026-09-27 23:43:36 +01:00

OpenLearn Web App

The frontend for OpenLearn, an online learning platform. It is a Next.js App Router application that talks to the Platform API through a session-based proxy, so backend tokens never reach the browser. Lesson content is XML, API clients are generated from the backend OpenAPI contract, and the lesson player runs Python in the browser.

Stack

  • Next.js 15 (App Router), React 19, TypeScript in strict mode
  • Tailwind CSS
  • next-auth v5: credentials provider, JWT sessions
  • kubb-generated API client (axios + zod + types) from openapi.json
  • fast-xml-parser for lesson content
  • Pyodide for the in-browser Python runtime
  • Vitest, ESLint and Prettier

Prerequisites

  • Node.js 24 (.node-version pins 24.14.0)
  • Yarn 4 (pinned in .yarn/, packageManager: yarn@4.18.0)
  • The Platform API reachable at API_URL. The two repositories are siblings: openlearn/ and openlearn-api/; setup is in ../openlearn-api/docs/setup.md.

Quick start (local)

yarn install
cp .env.local.example .env.local
yarn dev

The app listens on http://localhost:3000 and proxies API calls to http://localhost:4000 by default. See docs/setup.md for the environment reference and the full command list.

Quick start (Docker)

docker compose up -d --build

The frontend service reads .env.local, uses host networking, exposes the app on :3000 and expects the API on :4000. Start the API stack first.

Commands

yarn dev        # dev server with hot reload
yarn build      # production build
yarn check      # typecheck + lint + unit tests
yarn api:check  # regenerate the kubb client and fail on drift

All commands: docs/setup.md#commands.

Documentation

Doc Covers
docs/setup.md prerequisites, env vars, local dev, Docker, commands
docs/architecture.md layout, auth, proxy, routes, features, player, AI, admin
docs/authoring.md lesson XML reference and validation
docs/design.md themes, tokens, semantic colour, motion
docs/testing.md test suites, static checks, API drift, manual checks
scripts/README.md Python helper scripts
AGENTS.md machine-facing invariants

Start at docs/README.md for a task-oriented index.