
atelier-board
io.github.wice2261-ux/atelier-board
Interactive composition and critique canvas (MCP App + Local Bridge) for AI image prompting.
Documentation
Language: English | 简体中文
Atelier Board
A real-time interactive composition & critique board for AI image prompting.
Try it right now (no install, zero backend): Open the Online Live Demo to test framing, 1-point perspective, color extraction, ComfyUI/A1111 PNG metadata recovery, and native
.workflow.jsonexport directly in your browser.
Atelier Board turns framing, lighting, multi-image references, and iterative image edits from vague text back-and-forth into a visual canvas—syncing bidirectionally with your AI agent via MCP Apps, Local Bridge (HTTP + SSE), a native DeepSeek Harness sidebar plugin, or a standalone offline HTML file.
- For non-art AI creators: No need to memorize cinematography, perspective, or lighting terminology—draw a few boxes, drag a key-light or object-direction arrow, crop and collage pieces from multiple reference images, and let Atelier Board translate your visual intuition into a clean semantic brief and annotated image for your AI.
- For artists & power prompters: Get exact pixel and normalized coordinates, composition guides (Rule of Thirds / Diagonal / Golden Ratio), multi-reference collage with hidden lighting/style layers, automatic multi-platform metadata recovery (ComfyUI / A1111-Forge / NovelAI / compressed PNG / WebP & JPEG EXIF), Ghost Blueprint overlays, multi-round prompt history with word-level Diff, and a structured
FIX / ADD / MOVE / KEEP / DELcritique loop.
Visual Demo
| Draft Layout Mode (Live Agent Sync) | Critique Mode (PNG Metadata Recovery + Ghost Blueprint) |
|---|---|
![]() | ![]() |
Screencasts recorded in Chinese UI; the live board includes a one-click 中 / EN language toggle in the top bar.
Key Features
1. Bilingual Runtime UI & Semantic Output (EN / 中文)
- Single-bundle runtime internationalization with zero heavy dependencies: automatically follows
?lang=en|zh, saved preference, host locale (e.g. DeepSeek Harness), or browser language, with a one-click中 / ENtoggle in the top bar. - Both UI labels, exported semantic Markdown, compiler diagnostics, and annotated PNG / reference-sheet badges adapt to your selected language, while saved project JSON stays 100% cross-language compatible.
2. Draft Layout Mode
- Spatial framing, free rotation & subject facing dial: 4 element kinds (
Subject / Region / Text / Accent), z-order controls,LOCKpins, 4 composition guides (None / Rule of Thirds / Diagonal / Golden Ratio), free box rotation (-180°to180°via canvas rotation handle withShift15° snapping, local-axis 8-handle resize, and off-canvas bleed support), and a top-down Subject Facing Dial (-180°to180°horizontal yaw with 6-tier semantic phrasing from front view / slightly angled / 3/4 view to profile / back view, combinable withgazearrows for over-the-shoulder looks). - Camera framing, horizon line & 1-point vanishing point: Configure shot size, camera angle, lens feel, depth of field (with per-element
◎focus binding), and a draggable canvas horizon line (height, Dutch-angle roll withShift5° snap, and optional 1-point vanishing point rays). - 2 freehand SVG sketch brushes (
F/C): Draw smooth Flow Curves (auto-arrowed S/C composition leading lines) and Freehand Contours (rough poses, foreground silhouettes, or irregular critique outlines), RDP-simplified to compact vectors withS1/S2…badges and geometric trend descriptions. - 3 directional vector arrows with box anchoring & light character:
- Key Light (
light): primary light direction, highlight side, plus color temperature (Warm / Neutral / Cool / Neonor custom tint) and light quality (Soft / Hard / Rim Light); - Gaze (
gaze): character sightline and visual interaction; - Object Direction (
direction): paired with depth hints (Flat / Toward Camera / Away from Camera); - Dual-end box anchoring: snap arrow endpoints directly onto Draft or Critique boxes (hold
Altto bypass) so arrows follow box move/scale/rotation and output explicit subject relationships.
- Key Light (
- Color palette, value/key & auto-extraction: Set value key (
High / Mid / Low / Chiaroscuro), saturation tone, and up to 5 weighted color swatches (Dominant / Secondary / Accent)—either from built-in presets or auto-extracted from anyRef A–F/ Critique image in-browser. Semantic output translates HEX values into readable bilingual color names, andannotated.pngappends a slim bottom palette strip whenever swatches are set. - 8 classic composition templates & live composition linter: Start faster with 8 ready-made full-stack templates (Rule of Thirds portrait, 1-point perspective corridor, diagonal action, over-the-shoulder dialogue, editorial poster, golden-line landscape, product studio, split diptych) with SVG aspect previews and full
Ctrl+Zundo. A non-blocking Composition Linter proactively flags lock/edit overlaps, crowded text boxes, tiny moves, and regional alignment issues with click-to-focus. - Agent-to-board drafting & shared prompt baseline: Describe your idea in chat and let your AI call
push_draft_to_boardto populate an editable initial layout directly on the canvas (including target model / prompt language presets, color palettes, and regional strengths). Both Draft and Critique modes share the Prompt Baseline card with one-click copy, manual snapshot saving, and history Diff access; pressCtrl+Vanywhere in Draft to paste reference images straight intoRef A–F.
3. Multi-Reference Collage (Ref A–F, works in both Draft & Critique)
- Load up to 6 reference images (auto-resized to max 1024px edge) and open any image in a full multi-object crop workbench:
- Reuses the main canvas box & 3-vector tools—draw multiple crop boxes and multiple directional arrows on a single reference image (move, 8-handle resize, endpoint drag, or one-click "Select Full Image");
- Reference dimension defaults to
None(relying purely on your own label and note), with optional quick tags (Background / Character / Outfit / Lighting / Style / Pose); - Place cropped patches onto either the Draft canvas or directly over a Critique output image, with per-patch opacity, visibility toggles, and horizontal/vertical mirror flip (
Flip X / Flip Y) synced across canvas, snapshots, source arrows, and semantic briefs; - Automatically exports both
annotated.pngandreference-sheet.pngfor multimodal agents.
4. Critique & Diff Iteration Loop
- Multi-platform metadata recovery &
Ctrl+Vpaste: Drag, drop, or pressCtrl+Vto load generated outputs and automatically recover prompts, models, LoRAs, and sampling settings from ComfyUI PNG (includingzTXt/ compressediTXtand[NaN]JSON), A1111 / Forgeparameters, NovelAI, and WebP / JPEG EXIF & XMP. - 5 diff primitives & 3 critique strategies:
- Incremental Edit (
incremental): Minimal-perturbation prompt fixes usingFIX / ADD / MOVE / KEEP / DEL(DELmarks objects for complete removal with a dashed cross) anchored to the original prompt; - Reference Remix (
reference-remix): Re-imagine from a reference image when no original prompt exists; - Iterative Restore (
iterative-restore): Side-by-side comparison against a target image (hold to peek original) so the agent can converge round by round.
- Incremental Edit (
- AI diagnostic suggestions & human-in-the-loop review: Let your AI inspect an uploaded output and push candidate defect boxes (
critiqueSuggestionsviapush_draft_to_board) rendered in a separate dashedAIoverlay. Pending suggestions stay isolated from formal edit instructions and exportedannotated.pnguntil you explicitly click "+ Accept" (promoting them into editable Critique items) or "✕" to dismiss. - Prompt write-back & multi-round Diff history: After finalizing a revised prompt (English, Chinese, or mixed), the agent calls
sync_prompt_to_boardto update the baseline, archive up to 30 lightweight text snapshots automatically, and refresh the MOSS Ghost Blueprint—letting you inspect word-level prompt Diffs, compare parameter changes, and restore any prior round in one click.
5. 3 Built-in Output Dialects & Model Presets (Zero-Code Model Adaptation)
- Target model & prompt language presets: Declare target model syntax (
Auto / FLUX / Qwen-Image / SDXL-Illustrious / NovelAI / Midjourney / Custom) and preferred prompt language (Auto / English / Simplified Chinese) right in the board. - Spatial Discussion (Markdown): High-signal spatial brief for natural-language models (FLUX / Qwen-Image / SD 3.5) and tag-based models (SDXL / Pony / Illustrious / NovelAI);
- MOSS-Image JSON: Bidirectional
abs_centralized yxyxsingle-line JSON compiler with 16px alignment validation and paste-to-import; - Regional Area / ComfyUI (
atelier-regional-area/v1+ native workflow): Exports 8px latent-alignedarea_px_8, percentagearea_pct, per-regionstrengthweights (0.1–2.0), and 4-decimalbbox_xyxy_norm, plus a 100% native ComfyUI LiteGraph.workflow.json(CLIPTextEncode→ConditioningSetArea/ConditioningSetAreaPercentage→ConditioningCombine+EmptyLatentImage, zero custom-node dependencies) validated against official ComfyUI minimum size constraints.
Architecture
Atelier Board strictly separates its Core Layer from its Adapter Layer so every harness shares one single source of truth:
flowchart LR
subgraph Core["Core Layer (src/core + src/canvas + src/i18n)"]
S["Unified Document Schema (schema.ts)"]
D["Dialect Registry (MOSS / Regional / Semantic Lens)"]
M["ComfyUI PNG Metadata Recovery"]
C["SVG Stage + Multi-Ref Workbench + PNG/Sheet Renderer"]
end
subgraph Adapter["Adapter Layer (src/adapters + server + plugins)"]
A1["Antigravity MCP App (Native Sidebar)"]
A2["DeepSeek Harness Plugin (Native Cordis Sidebar)"]
A3["Local Bridge (HTTP + SSE for Claude / Codex)"]
A4["Standalone Offline HTML (Clipboard / Local FS)"]
MCP["MCP Server (4 Business Tools)"]
end
Core --> Adapter
MCP -->|"Antigravity / Claude / Codex / DSH"| AI["AI Agent"]
Quick Start (3 Minutes)
Prerequisites
- Node.js
20+
1. Run via npx (Zero-Clone) or Build from Source
# Option A: Run directly via npm (Claude Desktop / Codex CLI / Claude Code with Local Bridge)
npx -y atelier-board --no-app-tools
# Option B: Standalone browser-only Local Bridge (opens http://127.0.0.1:4173)
npx -y atelier-board --bridge-only
# Option C: Clone & build from source
npm install
npm run build:all
This builds:
dist-singlefile/index.html— standalone / embedded frontendserver/dist/mcp-server.mjs— zero-dependency MCP Server + Local Bridgeplugins/dsh-atelier-board/— installable DeepSeek Harness native sidebar plugin
Run npm run pack:release to assemble all 6 ready-to-distribute release bundles + release/SHA256SUMS.txt.
2. Connect Your Harness
| Target Harness | Integration Mode | Setup & Templates |
|---|---|---|
| Google Antigravity | Native sidebar MCP App plugin (${PLUGIN_ROOT}) | Setup Guide §1 · Template |
| DeepSeek Harness (DSH) | Native Cordis sidebar plugin (open directly from left sidebar) | Setup Guide §5 · Plugin Source |
| Codex Desktop | Standard Codex plugin bundle (openai/ui sidebar & panel metadata) | Setup Guide §4 · Template |
| Codex CLI | ~/.codex/config.toml + Local Bridge (--no-app-tools) | Setup Guide §4 · Snippet |
| Claude Desktop | claude_desktop_config.json + Local Bridge (--no-app-tools) | Setup Guide §2 · Snippet |
| Claude Code | Standard plugin bundle (--plugin-dir) or .mcp.json | Setup Guide §3 · Template |
| Offline / Web AI | Double-click dist-singlefile/index.html or run npm run bridge | Setup Guide §6 |
- DSH native plugin:
dsh plugin --profile desktop add <extracted-dir>and restart DSH—click Atelier Board in the left sidebar anytime. - Codex Desktop plugin:
codex plugin marketplace add <extracted-dir> && codex plugin add atelier-board@atelier-board. - Claude Code plugin:
claude --plugin-dir <extracted-dir>.
3. Add the Neutral Workflow Skill to Your Agent
Copy docs/SKILL_TEMPLATE.md (or 中文版) into your agent's skill directory or system prompt so it follows the Draft, Multi-Reference Collage, and Critique workflows cleanly.
Documentation
- Universal Agent Workflow Skill Template (
SKILL_TEMPLATE.md) · 简体中文 - Model Adaptation & Dialect Extension Guide (
model-adaptation.md) · 简体中文 - Multi-Harness Setup Guide (
harness-setup.md) · 简体中文
Development & Testing
# Start Vite dev server
npm run dev
# Run full unit test suite
npm test
# Production web build
npm run build
# Build single-file frontend, MCP server, and DSH plugin
npm run build:all
# Build & package all 6 GitHub Release artifacts + SHA256SUMS.txt into release/
npm run pack:release
# Run standalone Local Bridge only (default http://127.0.0.1:4173)
npm run bridge
# Run bundled MCP server stdio smoke tests (default & --no-app-tools)
ATELIER_BOARD_SMOKE_STDIO=1 npm test -- server/__tests__/mcp-server.test.ts -t "打包产物通过 stdio"
Glama MCP Directory
Visit the Atelier Board listing on Glama to:
- browse all exposed MCP tools, resources, and check its quality & safety score
- test the server online using MCP Inspector before installing locally
License
atelier-boardnpm install atelier-board
