Component diagrams
These diagrams show which components are called from UI interactions through database access and video processing. See Find your way around the code for implementation locations, and Module responsibilities for how responsibilities are divided.
Arrows show the main dependency direction, combining HTTP communication, shared types, and function calls.
Overview
API features
Regular JSON APIs go through the shared tRPC router and API adapter.
Main features:
- auth
- videos / courses / tags
- chat / evaluation / plog
- oauth / mcp
- membership / media
- health
OAuth, webhooks, SSE, multipart, CSV, and media binaries are separated into Hono routes because they depend on specific HTTP protocol behavior.
Worker
The API handles HTTP responsibilities; the worker handles CPU-intensive or time-consuming processing.
Related: Change the API, Change asynchronous video processing.