MOSS-Image layouts made easy with the free...

MOSS-Image layouts made easy with the free Layout Studio app. Works on any modern browser, on any OS


Updated:

"Draw" your MOSS-Image prompts with this visual layout builder 🤙

The Layout Studio for MOSS-Image

Take the guesswork out of creating bounding-box layouts for MOSS-Image with this free, open-source, browser-based, cross-platform, locally hosted (and therefore private!) visual spatial-precision layout editor designed specifically to generate reliable JSON bbox prompts for MOSS-Image for use with any AI-image generator.

If, like me, you've been intrigued by the use of "bounding boxes" (or "bboxes" for short) to lay out complex compositions with better accuracy, you've encountered the same obstacles as I had:

  • Crafting JSON prompts by hand is a non-starter.

  • Even state-of-the-art LLMs like GPT-4o have a hard time converting natural-language or tag-based prompts into sub-pixel yxyx coordinate space (-500 to 500 centered) JSON prompts.

  • There are some workflows for ComfyUI that provide visual layout design, but not everyone uses Comfy, and even if they do, it's not the most design-friendly interface.

The Layout Studio for MOSS-Image fixes all that.

Use the Studio to lay out what you want where, export the JSON prompt, and drop it in any AI-image generator running MOSS-Image — Tensor.art, ComfyUI, Forge Neo, Civitai Online Generator, Yodayo/Moescape, SeaArt...take your pick! If it's got a prompt box and it's running MOSS-Image, you're good to go.

Designed as a lightweight, zero-dependency tool, it operates 100% locally, privately, and offline — on any modern web browser, on any OS — without requiring ComfyUI, Python, build steps, servers, or external network requests.


Main Features:

🎨 Dynamic Canvas

  • Automatically scales to fit any display or window size while maintaining target aspect ratios (1:1, 2:3, 3:4, 9:16, 9:21, 3:2, 4:3, 16:9, 21:9) and target megapixel values (~1 MP to ~4 MP).

  • Workspace dimensions dynamically adapt on the fly without clipping or off-screen overflow.

  • The built-in visual grid, with optional grid snapping, aligns directly to MOSS-Image's requirement that canvas and bounding box dimensions follow 16-pixel multiples.

  • Visual alignment crosshairs automatically highlight when an item's center point aligns horizontally or vertically with the center of the image.

⬆️ Item Management

  • Create scene elements with MOSS-native text, object, or character item types using color-coded boxes and corresponding "cards" that you can reorder with drag-and-drop in the Items tab. This also reorders the items in the exported output.

  • Drag, resize, and nudge bounding boxes visually on a canvas mapped directly to MOSS-Image's standardized centralized coordinate space (abs_centralized, yxyx format from -500 to 500).

  • Toggle individual bounding boxes on or off to preview layout variations or temporarily exclude specific elements from schema generation without deleting card data.

  • Switch seamlessly between overall scene settings and bounding-box management in one minimal strip.

  • Intelligent auto-focus opens item details immediately when interacting with bounding boxes on the canvas.

🖼️ Reference Background Image

  • Insert a reference image locally — and privately! — "under" the canvas, with adjustable opacity to visually align bounding boxes directly over an existing composition.

🏷️ Meta Tags & Palette Management

  • Add preset or custom style meta tags and hex or named color palettes to set global scene styling.

⚠️ Note: Meta Tag and Palette values are overridden by any competing value in the prompt text. Describing media, styles, colors, and other details directly in the prompt text will often have a stronger impact on the image output than Meta Tags or Palette values.

🦋 Danbooru & Anime Compatible

  • Use the dual-tabbed Meta Tag manager, featuring natural-language style tags alongside anime/Danbooru preset tags (cel shading, masterpiece, cowboy shot, etc.).

  • Supports parenthesis weighting syntax (tag:1.2)

  • In-app link to Safebooru tag search.

↘️ Multi-Format Exporting

  • Instantly generate and copy a MOSS-Image central-coordinate JSON schema, OR:

  • A text-only prompt in natural language or tag-based format, depending on your needs. This is useful for refining or re-creating the image using a different model that doesn't understand JSON prompts, such as Krea 2, Illustrious, H3-Image, etc.

↗️ JSON Import with Smart Dimension Matching

  • Import existing MOSS-Image JSON prompts to inspect, modify, and visually re-edit them on the Layout Studio canvas.

  • Specify or import width and height values, with automated preset detection to match standard aspect ratio and megapixel configurations while enforcing 16-pixel multiples.

📱 Responsive Design

  • Adapts smoothly between side-by-side desktop panels and a stacked smaller view equipped with an interactive height-resizing handle for the canvas workspace. Squeeze it into a column and display it next to your MOSS-Image generator for an easy workflow.

🪶 Lightweight, Fast, and 100% Private

  • Lightweight, single-file HTML architecture built entirely with vanilla JavaScript and local Tailwind/Lucide scripts.

  • No build steps, external servers, or network calls required.

  • Runs instantly in any modern web browser, on any OS.

  • Works 100% offline with zero latency.

Additional features include:

  • UI Typography Scaling (A- / A+)

  • Undo/Redo

  • Keyboard Shortcuts

  • Persistent Local Storage - prevents data loss across page refreshes

  • System Cache & Heap Management - clear the cache to empty & reset local storage


Grab it already!

Download it for free on GitHub.

🚀 Launch the Live Web Demo

Feedback & support

Encountered a bug or have a feature request? Report an issue on GitHub. If you don't have a GitHub account, just leave a comment here on this Article.

Enjoy!

— ℝ𝕖𝕩𝕠

✧ ✧ ✧

0