How atpugvaraa/spool works
Spool is a local-first native design editor whose central workflow is opening a .spool bundle, reconciling lamine.yaml identities with authored HTML/CSS/SVG, deriving a disposable canvas document, editing through native surfaces and semantic history, then saving supported changes back to source. The website is a separate presentation project, not part of this editor workflow. Edges reflect the provided excerpts, SOURCE INDEX references, and README; unsampled capabilities are represented only where their paths and relationships are supported.
Main entry points: shell.rs Application Shell · canvas.rs Canvas Document · project_open.rs Project Opening · project_save.rs Source Saving
Components 20
Project and Source
- Project Bundle
app/src/project_bundle.rs - Structural Metadata
app/src/source_document.rs - Source Binding
app/src/source_binding.rs - Project Opening
app/src/project_open.rs - Source Saving
app/src/project_save.rs - Project Launch
app/src/spool_project.rs
Document Runtime
- Source Interpretation
app/src/visual.rs - Style Resolution
app/src/style.rs - Runtime Projection
app/src/document_runtime_bridge.rs - Canvas Document
app/src/canvas.rs - Hierarchy
app/src/hierarchy.rs
Editing and History
- Editor Commands
app/src/commands.rs - Semantic History
app/src/operations.rs - Alignment Snapping
app/src/snap.rs
Native Editor
- Application Shell
app/src/shell.rs - Layers Panel
app/src/layers.rs - Inspector Panel
app/src/inspector.rs
Editor Support
- Diagnostics
app/src/diagnostics.rs - Window Lifecycle
app/src/lifecycle.rs
Other components
- Designer
Connections 30
- Designer → Application Shell: edits in
README.md - Application Shell → Project Opening: opens project
app/src/shell.rs - Application Shell → Project Launch: resolves launch
app/src/shell.rs - Project Opening → Project Bundle: loads bundle
app/src/project_open.rs - Project Opening → Source Binding: reconciles identities
app/src/project_open.rs - Project Opening → Source Interpretation: interprets source
app/src/project_open.rs - Project Opening → Runtime Projection: projects runtime
app/src/project_open.rs - Runtime Projection → Canvas Document: builds document
app/src/document_runtime_bridge.rs - Source Interpretation → Style Resolution: resolves styles
app/src/visual.rs - Source Binding → Structural Metadata: binds structure
app/src/source_binding.rs - Project Bundle → Structural Metadata: loads metadata
app/src/project_bundle.rs - Application Shell → Editor Commands: dispatches commands
app/src/shell.rs - Editor Commands → Canvas Document: changes document
app/src/commands.rs - Editor Commands → Semantic History: records edits
- Semantic History → Canvas Document: updates runtime
app/src/operations.rs - Semantic History → Structural Metadata: updates structure
app/src/operations.rs - Application Shell → Layers Panel: shows hierarchy
app/src/shell.rs - Application Shell → Inspector Panel: shows properties
app/src/shell.rs - Layers Panel → Structural Metadata: reads structure
app/src/layers.rs - Application Shell → Canvas Document: hosts canvas
app/src/shell.rs - Canvas Document → Alignment Snapping: supports alignment
- Application Shell → Source Saving: saves project
app/src/shell.rs - Source Saving → Project Bundle: writes bundle
app/src/project_save.rs - Source Saving → Source Binding: resolves source spans
app/src/project_save.rs - Source Saving → Source Interpretation: uses source identity
app/src/project_save.rs - Source Saving → Style Resolution: writes style edits
app/src/project_save.rs - Application Shell → Diagnostics: reports status
app/src/shell.rs - Application Shell → Window Lifecycle: installs lifecycle
app/src/main.rs - Source Interpretation → Canvas Document: derives geometry
app/src/visual.rs - Hierarchy → Structural Metadata: projects hierarchy
app/src/hierarchy.rs