How storytold/anicraft works
AniCraft is a native and WebAssembly 2D vector animation editor. An artist edits a document through the shell’s stage, tools, and timeline; actions are engine commands applied to a session, and the stage is rendered from the resulting document state. The repository also supports file import/export, command-line and agent access, plugins, and audio. The graph combines README-documented product capabilities with source-index references and excerpts; several subsystem links are dashed where implementation call sites were not shown.
Main entry points: app.rs Editor shell · lib.rs Session commands · render_service.rs Render worker · stage.rs Stage and tools
Components 21
Editor shell
- Editor shell
src/app.rs - Stage and tools
src/stage.rs - Timeline and panels
src/timeline.rs - Dock and workspaces
src/dock_ui.rs - Preferences
src/prefs.rs
Animation engine
- Session commands
crates/engine/src/lib.rs - Editing and history
crates/engine/src/editing.rs - Timeline evaluation
crates/engine/src/anim.rs - Render worker
crates/engine/src/render_service.rs - Animation document
crates/engine/src/lib.rs
Rendering and geometry
- Vector geometry
crates/geom/src/brush.rs - CPU renderer
crates/render/src/lib.rs - GPU rendering
crates/gpu/src/lib.rs
Files and integrations
- Document file commands
crates/engine/src/cmds_file.rs - Animate import
crates/xfl/src/import.rs - Animation exports
crates/render/src/lib.rs - Plugin runtime
crates/plugins/src/runtime.rs - Audio playback
crates/audio/src/lib.rs
Other interfaces
- CLI and MCP
crates/cli/src/lib.rs - User guide
crates/guide/src/lib.rs
Other components
- Artist
Connections 23
- Artist → Editor shell: edits in
README.md - Editor shell → Stage and tools: shows
src/app.rs - Editor shell → Timeline and panels: shows
src/app.rs - Editor shell → Dock and workspaces: uses
src/app.rs - Editor shell → Preferences: loads
src/app.rs - Editor shell → Session commands: executes commands
src/app.rs - Stage and tools → Session commands: issues commands
- Timeline and panels → Session commands: issues commands
- Session commands → Editing and history: delegates edits
crates/engine/src/lib.rs - Editing and history → Animation document: updates
crates/engine/src/lib.rs - Session commands → Timeline evaluation: evaluates frames
crates/engine/src/lib.rs - Editor shell → Render worker: requests tiles
- Render worker → CPU renderer: renders jobs
- CPU renderer → Vector geometry: uses geometry
- Render worker → GPU rendering: selects renderer
- Editor shell → Document file commands: opens and saves
- Document file commands → Animate import: imports Animate files
- Editor shell → Animation exports: requests exports
- Session commands → Plugin runtime: dispatches plugin commands
- Session commands → Audio playback: handles sound
- Artist → CLI and MCP: drives commands
README.md - CLI and MCP → Session commands: uses same engine
README.md - Editor shell → User guide: opens contextual help