- APPLICATION ARCHITECTURE
- TanStack Start + React + TypeScript; typed Router and Query integration. · Bun workspace packages separate teaching, student management, courseware, and Online Judge concerns.
- IDENTITY & REALTIME DATA
- Convex reactive queries and validated server functions; campus-scoped data access. · Better Auth sessions, authorization components, and Zustand client interaction state.
- DOCUMENTS & TEACHING AI
- MinerU parsing prepares teaching documents for retrieval; Convex Agent + RAG provide the retrieval workflow. · Workpool and Workflow components coordinate asynchronous document and retrieval processing.
- COURSEWARE & CODE EXECUTION
- Netless Slide course playback; Monaco with Vim mode and KaTeX for coding and mathematical content. · A dedicated Online Judge package handles asynchronous Judge0 dispatch, submission receipts, and result delivery.
- INFRASTRUCTURE & QUALITY
- Cloudflare Workers + R2 serve the application and learning assets; PartyServer supplies WebSocket coordination. · Vitest and Playwright suites accompany domain, tenant-access, playback, and judging checks; TypeScript and tsrs gates.