PCTUTU.comBack to PCTUTU.com
GitHub projects
Productivity
Category
Productivity
Publisher
storytold
Repository
Open repository
Release
Open release
Current version
v0.22.0
Release date
2026-11-28
Package size
macOS 277.5 MB · Windows 134.2 MB
Productivity · storytold

designcraft

Page layout and publishing; an open source, modern desktop publishing and page layout studio, built in pure Rust.

Version v0.22.0
Available for macOS and Windows

README

ArtCraft

DesignCraft icon: an engraved cat in a polka-dot scarf on a green tile

DesignCraft

Page layout and publishing; an open-source, modern desktop publishing and page layout studio, built in pure Rust.

A fast, open-source desktop publishing and page layout workflow. It runs natively on macOS, Windows and Linux, and in the browser via WebAssembly.
By the ArtCraft team.

Written in Rust Runs on macOS, Windows, Linux and the web License: MIT OR Apache-2.0 Agent-drivable over MCP
Scanned by SonarCloud Reviewed by CodeRabbit

Join the ArtCraft community on Discord

DesignCraft on getartcraft.com · ArtCraft · All Crafting Apps


DesignCraft showing a magazine spread: a threaded three-column story is selected with its in/out ports and thread line, the Control panel shows its position in picas and the Properties panel its text frame options
Quarterly, Spring Issue: threaded three-column body text, a wrapped pull quote and parent-page folios, all set by DesignCraft's own paragraph composer.

[!NOTE] ArtCraft is a community of artists from all walks of life. Digital, generative, music, games — if you make things, you're one of us. Come say hi on Discord.

The sample magazine · Why DesignCraft · Quick start · Web · Architecture · Downloads · The Crafting Apps · License and credits

The sample magazine

Every page below was laid out by DesignCraft from code (crates/engine/src/sample.rs) and exported by its own renderer. Try it yourself with Help → Sample Document, or start the app with --sample.

Magazine cover for The Spring Issue, No. 01: a dusk landscape of layered purple hills under a large pale sun, with the white serif headline The Quiet Art of Layout and an italic deck below

Cover. A full-bleed graphic frame, display type and an italic deck.

Feature opener titled Notes on the Grid, with an orange FEATURE · DESIGN kicker over a rule, an italic deck, a wide landscape picture with a small caption, and two columns of justified body text above a QUARTERLY folio

Styles. Kicker rule, headline, deck, caption and justified two-column body.

Three-column page of justified, hyphenated body text that wraps around a shaded pull quote reading The best layouts disappear. What remains is the story., with a gradient rule and SPRING ISSUE folio at the foot

Threading, columns and text wrap. One story flows through three columns and around the pull quote.

Coming Next page titled Color, Ink and Paper on a plum background, with four swatch circles labeled Ink Plum, Sunset, C=100 M=0 Y=0 K=0 and Paper Warm, above a short paragraph of body text

Swatches. Named colors and a CMYK process swatch, laid out as a palette.

Why DesignCraft

  • Familiar. A familiar layout, tools, menus, panels and shortcuts: spreads and parent pages, master pages, text frames, threaded text, paragraph and character styles, tables, text wrap and more. Everything is right where you expect it.

  • Beautiful type. A Knuth–Plass paragraph composer (plus single-line), dictionary hyphenation (the public-domain Moby word list plus our own trained patterns), word, letter and glyph-scaling justification, keeps, optical margin alignment, columns, baseline grid, tabs, rules and shading. Line breaks are identical on screen and in PDF.

  • Fast. Multithreaded SIMD rendering (vello_cpu), copy-on-write documents with O(1) undo snapshots, and cached composition.

  • Open. A documented native format, IDML import and export, INDD import (through indd-utils), editable .pptx export, and PNG, PDF (PDF/X-4, PDF/A-2b) and EPUB export.

    No subscription, no licence server, no telemetry.

  • Agent-native. Every menu item, tool gesture, panel control and dialog can be driven over a JSON control channel and an MCP server, so Claude and other agents can lay out and edit documents like a designer. See docs/control-protocol.md and docs/mcp.md.

  • Everywhere. One Rust codebase for desktop and the web.

Quick start

The egui frontend requires Rust 1.95 or newer (including its shared craft-ui components).

cargo run --release -p designcraft                         # desktop app (start screen)
cargo run --release -p designcraft -- --sample             # open the sample magazine
cargo run --release -p designcraft -- --sample --control 7979   # + JSON control channel
cargo run --release -p designcraft-cli -- run --sample --all-pages out/       # headless: render every page to PNG
cargo run --release -p designcraft-cli -- commands         # list every command
cargo run --release -p designcraft-cli -- script --help    # command script syntax (docs/agents.md)
cargo xtask ci                                             # fmt, clippy, tests, assets, layering, wasm

Japanese text (UI and documents) uses fonts from storytold/craft-fonts, an optional build input (font files are never committed here; see the public craft-fonts integration guide for build instructions):

git clone https://github.com/storytold/craft-fonts ../craft-fonts
CRAFT_FONTS_DIR="$PWD/../craft-fonts" cargo run --release -p designcraft   # absolute path

Without it, Japanese falls back to the system's fonts (none on the web). Release builds always include it.

To drive a running app, send JSON lines to 127.0.0.1:7979. The protocol is described in docs/control-protocol.md.

Logs

The desktop app writes its log records to standard error and to logs/designcraft.log in the settings directory, beside ui.json and prefs.json (Linux ~/.config/designcraft/logs/, or $XDG_CONFIG_HOME/designcraft/logs/; macOS ~/Library/Application Support/DesignCraft/logs/; Windows %APPDATA%\DesignCraft\logs\). A start launched from a desktop menu or the Dock has no terminal, so this file is what to attach to a bug report: the graphics adapters found and the one drawing, why the app stopped (also when its window never opened), the crash guard's panic report and a failed crash-recovery save land there. Each launch moves the previous log to designcraft.1.log (and that one to designcraft.2.log), so the log of a run that crashed survives the next start. The file stops growing at 16 MiB. --version writes no file.

Variable Effect
RUST_LOG Log levels for standard error and the log file. Default: info for DesignCraft's own crates, warn for everything else. env_logger-style directives replace that, e.g. RUST_LOG=debug, RUST_LOG=warn,designcraft_render=trace or RUST_LOG=info,wgpu_core=warn; a directive ending in * covers every target starting with it (designcraft*=debug).
WGPU_BACKEND The graphics backend that composites the window: dx12, vulkan, gl or metal (a comma-separated list lets wgpu choose among them). Default: DirectX 12 on Windows, Vulkan on Linux, Metal on macOS, with OpenGL as the fallback. Setting it also turns off the start-up fallback described below.
WGPU_POWER_PREF The kind of GPU that draws the window: low (integrated), high (discrete) or none (the system's order). Default: the GPU that drives the primary display, then low on Windows and macOS and none elsewhere.
WGPU_ADAPTER_NAME The graphics adapter by (part of) its name, any case (nvidia, radv, intel); the log lists the names.
WGPU_VALIDATION_INDIRECT_CALL 1 turns wgpu's check of indirect draw arguments back on. DesignCraft draws nothing indirectly and turns it off: the compute shader it needs failed to compile on an Intel Mac and lost the graphics device (#334).

The logger is apps/designcraft/src/logging.rs; the web build logs to the browser console instead.

Portable mode

A file named portable.txt next to the executable (on macOS, next to DesignCraft.app) makes the install portable: settings, logs and crash recovery are kept in a DesignCraftData folder beside it instead of the per-user folders above. The Windows portable zip ships with one; delete it to go back to %APPDATA%\DesignCraft. If DesignCraftData cannot be written (a copy unzipped into Program Files), the per-user folders are used instead and the log and the status bar say so. DESIGNCRAFT_CONFIG_DIR still takes precedence. The code is apps/designcraft/src/profile.rs.

Graphics backend and processor

The canvas is rendered on the CPU; the GPU only composites the interface, through wgpu, so any adapter that can show the window will do. The code is apps/designcraft/src/gpu.rs (the adapter) and apps/designcraft/src/gpu/backend.rs (the backend).

  • Backend. A graphics driver that faults takes the process down before any Rust code can catch it, so each start creates its wgpu instance with one backend, chosen before the window exists: on Windows DirectX 12, then OpenGL, then Vulkan, each on its own (creating an OpenGL instance crashed inside AMD's atio6axx.dll, #167, and creating a Vulkan instance loads every installed Vulkan driver, of which a faulty one can crash the app); on Linux Vulkan with OpenGL beside it, then OpenGL alone; on
Publisher informationSoftware details and release files are provided by the publisher.

Release notes

DesignCraft v0.22.0