How pradeepgeelam-max/photocraft works
PhotoCraft is a Rust image editor for layered documents, with native, browser, CLI, and automation entry points. The main workflow sends user actions through a shared command engine, which edits document state and supports rendering, export, and PSD round-tripping. The README documents editing capabilities and shared frontends; sampled source confirms the engine façade, filter preview behavior, and PSD export dependencies. Several feature modules were not sampled, so capability branches are included without speculative call-level connections.
Main entry points: lib.rs Command engine · canvas.rs Editor UI · src/main.rs Browser app · src/main.rs Native app
Components 19
User interfaces
- Native app
apps/photocraft/src/main.rs - Browser app
apps/photocraft-web/src/main.rs - CLI
apps/photocraft-cli/src/main.rs - Automation server
crates/automation/src/server.rs - Editor UI
crates/ui-egui/src/canvas.rs - Browser presets
apps/photocraft-web/src/preset_bridge.rs
Command engine
- Command engine
crates/engine/src/lib.rs - Document history
crates/engine/src/lib.rs
Editing and rendering
- Adjustments and filters
crates/engine/src/adjust_cmds.rs - Filter algorithms
crates/algo/src/lib.rs - Selections and masks
crates/engine/src/selection_cmds.rs - Layer styles
crates/engine/src/layer_style.rs - Type and vectors
crates/text/src/engine_data.rs - GPU compositor
crates/gpu/src/plan.rs
Documents and formats
- Document format
crates/format/src/read.rs - PSD import/export
crates/io/src/psd_export.rs - Image codecs
crates/codecs/src/lib.rs - Platform file services
apps/photocraft/src/services.rs
Other components
- Editor
Connections 21
- Editor → Native app: opens and edits
README.md - Editor → Browser app: opens and edits
README.md - Editor → CLI: drives commands
README.md - Editor → Automation server: drives commands
README.md - Native app → Editor UI: hosts
- Browser app → Editor UI: runs shared UI
apps/photocraft-web/src/main.rs - Editor UI → Command engine: executes commands
crates/engine/src/lib.rs - CLI → Command engine: executes commands
crates/engine/src/lib.rs - Automation server → Command engine: runs commands
crates/automation/src/server.rs - Command engine → Document history: edits documents
crates/engine/src/lib.rs - Command engine → Adjustments and filters: dispatches edits
crates/engine/src/lib.rs - Command engine → Selections and masks: dispatches edits
- Command engine → Layer styles: dispatches edits
- Command engine → Type and vectors: dispatches edits
- Adjustments and filters → Filter algorithms: applies filters
- Editor UI → GPU compositor: renders canvas
README.md - Editor UI → PSD import/export: opens and saves PSD
README.md - Editor UI → Document format: reads and writes documents
- Editor UI → Platform file services: uses platform services
- PSD import/export → Image codecs: uses image encoding
- Browser app → Browser presets: bridges presets
apps/photocraft-web/src/main.rs