How wanggit/openmaic works
OpenMAIC is an AI-powered interactive classroom platform. A learner starts from a topic or uploaded material; server-side generation creates a course, which is stored and presented as a classroom with slides, quizzes, interactive scenes, and PBL activities. Learners can engage with agent discussions, speech, and whiteboard actions, while editors modify course content and export features provide downloadable outputs. The graph combines README-documented capabilities with relationships visible in the source index and excerpts; unsampled subsystems are included where documented, without asserting unverified internal calls.
Main entry points: page.tsx Course workbench · index.ts Course persistence · route.ts Material intake · engine.ts Course generation
Components 20
Course creation
- Course workbench
app/workbench/new/page.tsx - Material intake
app/api/materials/route.ts - Course generation
lib/server/generation/run/engine.ts - Generation APIs
app/api/generation-runs/route.ts
Classroom experience
- Classroom viewer
app/classroom/[id]/page.tsx - Scene renderer
components/stage/scene-renderer.tsx - PBL experience
components/scene-renderers/pbl-renderer.tsx - Agent discussion
components/chat/chat-area.tsx - Chat API
app/api/chat/route.ts - Whiteboard actions
lib/action/engine.ts - Playback engine
lib/playback/engine.ts - Classroom export
lib/video-export/index.ts
Editing and playback
- Canvas state
lib/store/canvas.ts - Course editor
components/edit/EditShell/EditShell.tsx - Canvas operations
lib/hooks/use-canvas-operations.ts
Platform services
- Course persistence
lib/document-store/index.ts - Persistence API
app/api/persistence/[...path]/route.ts - Model settings
components/settings/index.tsx - Provider APIs
app/api/server-providers/route.ts
Other components
- Learner
Connections 19
- Learner → Course workbench: starts lesson
README.md - Course workbench → Material intake: attaches materials
README.md - Course workbench → Generation APIs: requests generation
README.md - Generation APIs → Course generation: runs pipeline
- Course generation → Course persistence: persists course
lib/server/generation/run/engine.ts - Material intake → Course persistence: stores materials
app/api/materials/route.ts - Learner → Classroom viewer: opens course
README.md - Classroom viewer → Scene renderer: renders scenes
- Scene renderer → PBL experience: renders PBL
- Learner → Agent discussion: joins discussion
README.md - Agent discussion → Chat API: sends messages
- Playback engine → Whiteboard actions: executes actions
lib/playback/engine.ts - Whiteboard actions → Canvas state: updates state
lib/action/engine.ts - Learner → Course editor: edits course
README.md - Course editor → Canvas operations: uses operations
- Canvas operations → Canvas state: updates canvas
lib/hooks/use-canvas-operations.ts - Learner → Classroom export: exports classroom
README.md - Model settings → Provider APIs: configures providers
- Persistence API → Course persistence: accesses documents
app/api/persistence/[...path]/route.ts