Rexoplanets/layout-studio-moss-image
Rexoplanets/layout-studio-moss-image has 10 GitHub stars and 3 forks. GitHot measured +4 stars in 24 hours. Last checked 2026-11-14 20:04 UTC. Last push 2026-11-13.
What you can do
- UI Typography Scaling (A- / A+)
- Keyboard Shortcuts
- Persistent Local Storage - prevents data loss across page refreshes
- System Cache & Heap Management - clear the cache to empty & reset local storage
Measured star growth
- in 24h
- +4
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
MOSS-Image layouts made easy—an intuitive visual design interface for "drawing" bounding-box prompts, exported in a perfect JSON format.
Creative & MediaREADME.md
OriginalThe 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.

The Layout Studio for MOSS-Image
🚀 Launch the Live Web Demo
(No installation required — runs directly in your browser. Prefer offline use? Download the latest release from the Releases page.)
Table of Contents
- Overview
- Who needs a layout builder for MOSS-Image?
- Main Features
- Caveats & Hints
- Getting Started
- File Structure
- License
- About MOSS-Image
- Tips are welcome
- Changelog
Overview
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 (
-500to500centered) 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 — ComfyUI, Forge Neo, Civitai Online Generator, Tensor.art, 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.
Who needs a layout builder for MOSS-Image?
Fans of MOSS-Image: Love MOSS-Image and want to take your gens to the next level by mastering its native spatial precision via bbox coordinates, but without all the trail-and-error when using LLMs and without using a specialized Comfy workflow? Build your images visually on a drag-and-drop canvas while the Studio handles all schema math automatically. Then drop the prompt in your favorite generator.
Multi-Character & Anime Creators: Sick of so-called 'concept bleed' (mixing of traits, outfits, etc.) in multi-subject scenes? The bounding-box features of new models like Ideogram 4 and MOSS-Image is the next-gen equivalent of regional prompting, and may be adopted by future models, as well. Use the Layout Studio to keep those characters separated, then copy & paste the prompt into a generator running MOSS-Image.
Visual Designers & Typographers: Need text placed where it belongs? Position headers, typography, and logos with greater visual accuracy for posters, album covers, and banners.
Product & E-Commerce Visual Creators: Structure studio product shots, hero element placements, and advertising layouts while locking canvas aspect ratios and target megapixel presets (
~1 MPto~4 MP).Storyboard & Comic Artists: Easily block out multi-panel sequence compositions and background layouts using native
multi_panelandcollagecanvas modes.Cross-Model Power Users: Compose layouts visually over local reference images, then export to structured MOSS-Image JSON schemas, or to text-only prompts for refining with img2img or inpainting with a natural-language model like Krea 2 or a tag-based model like Illustrious, or any other model in your stack for that matter.
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 MPto~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, orcharacteritem 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,yxyxformat from-500to500). - 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
Caveats & Hints
Keep these in mind when using bboxes with MOSS-Image:
| PROMPTS HAVE THE FINAL WORD |
For a given Item, any positions you include in its Caption/Prompt field will determine where the item ends up being shown in the image — even if you placed its bbox on the opposite side.
For example, if in the Caption for a Character Item you write, "a boy holding a stick on the left" and for a second Character Item you enter, "a dog on its hind legs on the right", MOSS-Image will follow these written instructions — even if you drag the bboxes of the boy and dog elsewhere.
So: when entering your captions, refrain from mentioning any absolute positions of the Item:
❌ a boy holding a stick on the left facing the dog
✅ a boy holding a stick facing the dog
❌ a dog on its hind legs on the right facing the boy
✅ a dog on its hind legs facing the boy
The same rule applies to Meta Tags and Palette values: if in the Summary you mention that the scene takes place during the golden hour but in the Palette field you enter "at night", MOSS-Image will set the scene during the golden hour, though perhaps with slightly darker shadows.
| BBOXES ARE NOT PIXEL-PERFECT |
With this initial version of MOSS-Image, even if you use the Studio, MOSS-Image does not necessarily respect the exact layout you give it.
For now, bounding boxes indicate where elements should be positioned and how large or small they should appear. Text Item placement is more accurate than Object or Character Item placement, but in general, MOSS-Image will ultimately decide where exactly the Item is shown and how much it does or doesn't remain confined by its bbox boundaries.
| KEEP CFG ≥ 2.5 |
Even with the most painstakingly fine-tuned layout, if you try to gen it with < 2.5 CFG, don't be surprised if your Items end up all over the place.
For optimal results, OpenMOSS recommends ≥ 50 steps, 1.5 MP or 2 MP, and 3-6 CFG:
Default 3.0 (recommended range: 3.0–6.0). A value of 3.0 is generally sufficient for long prompts; for short prompts, we recommend increasing it as needed.
I've found a CFG @ 2.5 respects the layout even with fewer steps @ 1 MP, which makes it perfect for quickly testing your layouts before generating them at ≥ 1.5 MP.
Getting Started
- Open
Layout_Studio_for_MOSS_Image.htmlin any modern browser. - Configure your Global Scene Summary, canvas aspect ratio dimensions, megapixels, meta tags, and color palette and/or type of lighting in Tab 1.
- Click + Add Bounding Box in the header to add
Text,Object, orCharacterItem bounding boxes to the canvas and their corresponding "cards" in the Items tab. - Enter the text (for Text Items) and the "caption" (prompt) in each Item Card.
- Adjust bounding box sizes and placement directly on the workspace canvas.
- Click Export to grab your MOSS-Image output JSON schema or a simple text version for image generation with other AI-image diffusion models.
File Structure:
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
Feedback & support
Encountered a bug or have a feature request? Report an issue here on GitHub. If you don't have a GitHub account, leave a comment on the Civitai article : Civitai.red / Civitai.com.
License
Released open-source under the GNU GPL v3 Licence. Independent community tool, not affiliated with OpenMOSS.
About MOSS-Image
To make the most of MOSS-Image, be sure to read its official User Guide.
Tips are welcome
If you find this tool useful, feel free to toss me some Buzz on Civitai: Civitai.red / Civitai.com 🤙
Changelog
Version 1.0
13 November 2026
- Initial Release.