# Repository Briefing: Rexoplanets/layout-studio-moss-image
> Source: https://repoforai.com/repo/Rexoplanets/layout-studio-moss-image (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Rexoplanets/layout-studio-moss-image
- **Official Docs / Website**: https://rexoplanets.github.io/layout-studio-moss-image/Layout_Studio_for_MOSS_Image.html
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: HTML
- **License**: GPL-3.0
- **Engineering Health**: A (79/100 · Maintenance 35/35 · Adoption 13/25 · Releases 20/20 · License 11/20)
- **Latest Release**: v1.2.0 (2026-11-30) — https://github.com/Rexoplanets/layout-studio-moss-image/releases
- **Review Snapshot**: 2026-12-03
- **Momentum**: 24 ★ total (+0 24h / +1 7d) · 5 forks
- **Topics**: `image-generation`, `image-generation-ai`, `image-generation-tool`, `layout-builder`, `layout-design`, `layout-studio`, `moss-image`, `moss-image-sft`, `moss-image-studio`, `prompt-builder`, `prompt-builder-tools`, `prompt-generator`
- **When to Use**: Best for: MOSS-Image users composing multi-subject scenes, posters, or storyboards who want to author reusable layout JSON without hand-editing coordinates or setting up ComfyUI. Skip if: You need built-in inference, pixel-exact placement, or structured layout control for a generator that does not accept MOSS-Image JSON.

## Overview
```text
### Architecture & Core Mechanics
Layout Studio is a standalone browser application. Layout_Studio_for_MOSS_Image.html contains the interface and editor logic in vanilla JavaScript, with a local Tailwind runtime and Lucide icon renderer under assets/js/. There is no build pipeline or inference backend to run. Browser local storage keeps editing state across reloads.

The canvas and item cards provide two ways to edit the same scene: drag or resize a box for geometry, then edit its caption and type in the card. The export layer maps the layout to MOSS-Image's abs_centralized coordinate space, with yxyx ordering and values from −500 to 500. JSON is the handoff to a compatible image generator; the ComfyUI custom node is a separate project, not a dependency.

### Key Capabilities & Differentiators
The responsive canvas offers nine aspect-ratio presets, target sizes of roughly 1–4 MP, center guides, and a 16-pixel grid with optional snapping. Text, object, and character boxes have corresponding cards that carry captions and, for text items, the text to render. Reordering cards changes export order, and individual items can be excluded without deleting them. A local reference image can be overlaid beneath the boxes at adjustable opacity.

Scene settings include a global summary, style tags, palette, and lighting. The tag manager supports natural-language styles, Danbooru-style presets, and parenthesis weighting such as (tag:1.2). The editor imports MOSS-Image JSON with dimension matching and can recover layout prompts and canvas sizes from supported PNG metadata. It exports structured MOSS-Image JSON or plain text in natural-language or tag-based form; plain text does not carry the structured box coordinates.

### Trade-offs & Limitations
The standalone editor replaces hand-authored coordinate JSON with direct manipulation and does not tie prompt authoring to ComfyUI. The cost is a manual handoff: export the prompt and paste it into a compatible generator. For teams already working entirely in ComfyUI, the separate custom node keeps layout editing within that workflow. For other model families, plain-text export preserves descriptive content but not structured spatial controls.

A valid layout is not a pixel-accurate rendering contract. Absolute positions in captions can override the boxes, while scene prose can override palette or style settings. Text placement tends to be more faithful than object or character placement, but still needs a test render for strict designs. GPL-3.0 permits commercial use; when redistributing the app, review the applicable notice and corresponding-source obligations.

### Hardware & Deployment Guide
Try the GitHub Pages demo, or download the release files and open Layout_Studio_for_MOSS_Image.html directly in a modern browser for offline use. Keep assets/ alongside the entry point so the bundled scripts and images resolve. No Python, ComfyUI, package installation, or server process is needed for editing. Model inference runs separately in the generator, so any GPU or VRAM requirements belong to that stack.

Version 1.1.0 added PNG metadata import, tested with outputs from ComfyUI, Civitai Online Generator, and the Tensor Art Creation workspace. Do not assume the same import support for other PNG sources. Version 1.2.0 clamps boxes to the canvas boundaries. Local storage helps recover an editing session after a reload, but export JSON for layouts you need to keep or move between browsers.
```

## Key Capabilities
```text
- Coordinate mapping: Serializes canvas boxes as abs_centralized yxyx coordinates in the −500 to 500 range.
- Canvas geometry: Nine aspect-ratio presets, roughly 1–4 MP targets, and a 16-pixel grid with optional snapping.
- Item control: Text, object, and character cards control export order and can be excluded without deleting their data.
- Layout recovery: Reopens MOSS-Image JSON and can recover prompts and dimensions from supported PNG metadata.
- Reference editing: Uses a local background image with adjustable opacity to align boxes against an existing composition.
- Offline packaging: Vanilla JavaScript in the HTML entry point, with bundled Tailwind and Lucide scripts.
```

## Quick Start / Clone
```bash
Layout_Studio_for_MOSS_Image.html     All-in-one standalone visual studio interface & logic
assets/js/
    tailwind.js                       Local Tailwind CSS framework runtime (zero network dependency)
    lucide.js                         Local Lucide UI icon renderer (zero network dependency)
assets/images/                        Application favicon, Header brand logo, and screencaps for README
assets/moss-image-meta-tag-palette-suggestions.html   Cheatsheet of classic tags used for AI-image generation
README.md                             Project documentation & feature guides
```
