How graphiteeditor/graphite works
Graphite is a graphics editor built around nondestructive, layer-based compositing and procedural node-graph design. The main user workflow is to interact with the editor, ingest or open content, edit it through tools and graph operations, then render and save the result. The README also describes vector and raster creation and desktop availability; collaboration and document-format capabilities are represented as distinct subsystems. Sampled excerpts support the desktop event loop and parts of document ingestion and storage; links to unsampled subsystems are omitted where their callers are not evidenced.
Main entry points: document_storage_io.rs Document storage I/O · dispatcher.rs Message dispatcher · proto.rs Procedural node graph · application.rs Editor application
Components 19
Editor clients
- Web editor
frontend/src/App.svelte - Desktop app
desktop/src/app.rs - Desktop wrapper
desktop/wrapper/src/lib.rs
Editing workflow
- Editor application
editor/src/application.rs - Message dispatcher
editor/src/dispatcher.rs - Content ingestion
editor/src/messages/portfolio/ingest/ingest_message_handler.rs - Editing tools
editor/src/messages/tool/tool_message_handler.rs - Graph operations
editor/src/messages/portfolio/document/graph_operation/graph_operation_message_handler.rs
Graph and rendering
- Procedural node graph
node-graph/graph-craft/src/proto.rs - Raster brush pipeline
node-graph/nodes/brush/src/basic_brush/pipeline.rs - GPU executor
node-graph/libraries/wgpu-executor/src/pipeline.rs
Document services
- Document storage I/O
editor/src/messages/portfolio/document_storage_io.rs - Graph metadata bridge
editor/src/messages/portfolio/document/utility_types/network_interface/storage_metadata.rs - Document format
document/format/src/lib.rs - Document container
document/container/src/lib.rs - Resource storage
editor/src/messages/resource_storage/resource_storage_message_handler.rs
Collaboration
- Peer transport
document/peer-transport/src/lib.rs - Live documents
document/live/src/lib.rs
Other components
- Artist
Connections 15
- Artist → Web editor: edits in
README.md - Artist → Desktop app: edits in
README.md - Desktop app → Desktop wrapper: creates
desktop/src/app.rs - Editor application → Message dispatcher: uses
editor/src/application.rs - Editor application → Content ingestion: routes content
- Message dispatcher → Editing tools: dispatches messages
- Message dispatcher → Graph operations: dispatches messages
- Graph operations → Procedural node graph: edits graph
- Procedural node graph → Raster brush pipeline: evaluates nodes
- Procedural node graph → GPU executor: uses executor
- Document storage I/O → Graph metadata bridge: validates metadata
editor/src/messages/portfolio/document_storage_io.rs - Document storage I/O → Document format: loads and saves
- Document format → Document container: uses container
- Document storage I/O → Resource storage: accesses resources
- Live documents → Peer transport: synchronizes via