# storytold/photocraft

> PhotoCraft is an open-source image editor for layered documents, including real PSD files, in a native desktop app. It applies every edit as a command to a pure-data document model, so the same editing actions can be reproduced from one shared command set. The project is written in Rust.

Source: https://github.com/storytold/photocraft
Indexed: commit 4d4de45 on 2026-10-19 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: MCP server
- Language: Rust
- Stars: 82,510 at index time
- License: Apache-2.0
- Code health: 5.9/10, Fair
- Last commit: 2026-10-18
- Contributors: 323

## Install

From the README: https://github.com/storytold/photocraft#get-started

Clone the photocraft repository.
    git clone https://github.com/storytold/photocraft.git

Move into the photocraft folder.
    cd photocraft

Build and run the desktop app from a checkout of the repository, passing a PSD file to open.
    cargo run --release -p photocraft -- image.psd

Run the test suite for the whole workspace.
    cargo test --workspace

## How it works

The desktop app starts from apps/photocraft/src/main.rs, which connects the UI, OS integration and a local control interface. The command-line tool starts from apps/photocraft-cli/src/main.rs and drives the same engine without a window. Input documents and assets are read into a pure-data document model, and crates/affinity converts Affinity-format data into internal representations for rendering and previews. Edits run through a shared command pipeline, where crates/algo holds the image and selection operations and exposes its public entry in crates/algo/src/lib.rs. Pixel data is split into tiles, with crates/geom defining the tile size and related types and crates/raster defining the surface abstraction.

- apps/photocraft-cli/src/lib.rs: entry point
- apps/photocraft-cli/src/main.rs: entry point
- apps/photocraft-web-boot/src/main.rs: entry point
- apps/photocraft-web/src/main.rs: entry point
- apps/photocraft/src/main.rs: entry point
Modules: crates, apps, packaging, xtask, examples, scripts, root. 1,600 files, 495,400 lines, 44,916 symbols.

## Code health

- Score: 5.9/10 (Fair)
- Rank: #243 of 295 ranked repos
- Hotspots: crates/ui-egui/src/canvas.rs, crates/ui-egui/src/panels.rs, crates/ui-egui/src/transform_tool.rs, crates/ui-egui/src/prefs_ui.rs, crates/ui-egui/src/control.rs
- Lowest file: crates/ui-egui/src/type_tool_tests.rs
- Dead code: none found

## Maintenance

- Last commit 2026-10-18, first commit 2026-10-06, 2,341 commits
- 323 contributors, bus factor 13

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/storytold/photocraft/security

## More

- Page: https://repowise.dev/repo/storytold/photocraft
- Ask this codebase: https://repowise.dev/repo/storytold/photocraft/chat
- Docs: https://repowise.dev/repo/storytold/photocraft/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/storytold/photocraft
