Skip to content

Modality

A Flutter/Rust library for interactive educational content with CRDT sync and AI generation.

Three Traits

Reducer + Component + Modality — same struct implements all three. State management, compilation, and layout in one place.

Session Orchestrator

Session<M, I> owns everything — modality, persistence, cache, AI, export. One dispatch() call drives the full lifecycle.

AI Generation

Recursive top-down pipeline. Orchestrator is deterministic code; subagents handle the agentic work. Built on rig.

CRDT Sync

Loro CRDT for conflict-free real-time collaboration. Doc<S> persists synced state; ephemeral state stays local.