Mewlith Visual Studio — editable design editor¶
Status: Visual Studio v1–v10 are shipped in main, including v8 multi-page
editing, v9 brand kits and v10 keyframe motion. See the version
history and the per-version guides: v3 layered
projects, v4 layout repair,
v5 selective repair review, v6 local AI
review, v7 advanced layers,
v8 multi-page documents, v9 brand
kits and v10 keyframe motion.
Open it¶
Run Mewlith, open the local web interface or connected account, then select
Visual Studio from the left sidebar (#/visual).
Visual Studio uses the same validated design renderer as Mewlith's agent. Its preview is a real raster rendering of the current specification, rather than a separate approximation drawn by the browser. It does not require a design subscription or remote asset CDN, and it sends nothing to a cloud image generator.
Version history¶
| Version | What it adds |
|---|---|
| v1 | Base editor: editable canvas, 4 themes, text/object editing, drag, undo/redo, save draft, export PNG/SVG/JPG/PDF/PPTX/GIF |
| v2 | Layers (select, z-order, hide/lock), resize handle, staged GIF timeline |
| v3 | Layered projects (.design.json) and artwork import; reopen generated artwork from its provenance manifest |
| v4 | Inspect & repair: propose-only conservative fixes, never mutates originals |
| v5 | Selective repair review: per-field checkboxes, fresh candidate, preview gate, stale-review protection |
| v6 | Local AI review: loopback Ollama vision review, advisory only, never edits |
| v7 | Advanced layers: multi-select, batch drag, snap, align, distribute, one-level group/ungroup |
| v8 | Multi-page documents: 1–20 editable canvases, multi-page PDF and native-slide PowerPoint |
| v9 | Brand kits (9 colour tokens, heading/body sizes, optional logo) and premium templates |
| v10 | Keyframe motion: up to 12 group tracks, 6 keys per group, 4 easings, GIF export |
| Phase 4.1 | Font choices, template library with size presets, built-in icons, export scale/DPI/transparent PNG/vector PDF |
Build a graphic¶
- Pick a starting template: Workflow, Feature cards, Poster, Brand launch, Executive brief or Blank canvas. The template library holds dozens of starters across diagrams, presentations, social, posters and brand, and you can save a design as your own template.
- Pick an output size: Slide 16:9 (1280×720), Social post (1080×1080), Social story (1080×1920), Flyer A4 (794×1123) or Banner (1600×400).
- Select a design theme: Illustrated, Editorial light, Premium tech or Commercial.
- Edit the title/subtitle. Click an object or choose it in Object inspector. Change text, size, coordinates, colours, icons, or other supported properties. Drag objects with mouse or touch; starter workflow groups move together and matching connectors are recalculated.
- Choose a font for a text element: Default (DejaVu), a serif, a mono, or a humanist/display sans. Elements without a font choice render exactly as before.
- Add new Text, Shape or Icon objects. For user photographs and logos, upload the original file in Files first, then choose the uploaded image and click Place image.
- Use Undo/Redo or Save draft. You can reopen previously saved drafts.
- Select PNG, SVG, JPG, PDF, editable PowerPoint or Animated GIF, then click Export. For multi-page documents, PDF and PowerPoint export every page in order; other formats export the current page only.
For animated GIFs you can select flow, pulse, reveal, float,
sequence or keyframes, frame count (8–48), delay (50–500 milliseconds)
and loop mode. The GIF is genuinely animated with distinct frames; it is
not a fake static image. Exports can be downloaded directly from the editor
and browsed in Files.
The server produces:
artifacts/visual-studio/<name>-<id>.<format>— final file<name>-<id>.<format>.visual.json— output hash, source image hashes, export options and quality/provenance data<name>-<id>.design.json— editable source design specification
The renderer preserves the original photo/logo files, keeps exact text as text objects, and refuses invalid/unreadable compositions rather than silently clipping them. Editable PowerPoint text/shapes and SVG are available. GIF is a separately generated animated image, not a native animated PowerPoint object.
Export options¶
| Option | Choices | Applies to | Default |
|---|---|---|---|
| Scale | 1×, 2×, 3× | PNG, JPEG, GIF | 1× |
| Resolution | 96, 150, 300 dpi | PNG, JPEG, PDF | 96 dpi |
| Transparent background | on/off | PNG only | Off (opaque) |
| Vector PDF | on/off | PDF only | Off (flattened raster pages) |
- Scale renders raster output at
width × scalebyheight × scale. - A GIF must stay within the 1 megapixel canvas cap after scaling; a scale that would exceed it is rejected.
- Vector PDF writes real vector text and shapes with selectable text, instead of flattened raster pages. Its page size follows the chosen DPI.
- All export paths run the same quality gates (contrast, text-fit, overlap, source-asset hash re-verification, SHA-256 provenance) as the default export; no option bypasses them.
Layers, timeline and repair¶
- Layers panel (v2, v7): select a layer, move it forward or backward in drawing order (connectors remain behind cards), show/hide it, or lock it against dragging, resizing and accidental editing. All actions participate in undo/redo. Hidden layers are omitted from actual PNG/PDF/SVG/PPTX/GIF exports, not merely hidden by CSS. Associated workflow connectors are hidden if a referenced group is hidden. A selected unlocked shape or grouped card exposes a bottom-right resize handle. Multi-select supports batch drag, arrow-key nudge, snap (8-unit grid, 7-unit threshold), align (6 modes), distribute and one-level group/ungroup.
- GIF timeline (v2): choose Layer timeline to reveal groups at configured stages. Each group gets a start-position slider (0–90%); move the playhead to render a real timeline frame on the server. This is a deterministic staged-reveal timeline (1–12 distinct visible groups, 8–48 GIF frames, 50–500 ms delay, configurable looping). Stage timing is saved with the design.
- Keyframe motion (v10): up to 12 group tracks, up to 6 keys per group, X/Y offset ±250, scale 0.5–1.5, opacity 0–1, rotation ±45°, with linear, ease-in, ease-out and ease-in-out interpolation.
- Inspect & repair (v4, v5): propose-only conservative fixes (collision, in-bounds, font shrink, contrast); per-field checkboxes, a fresh candidate from the immutable original, a preview gate and stale-review protection. Nothing is applied without an explicit, Undo-tracked Apply.
- Local AI review (v6): an explicit click sends a downscaled render to a
loopback Ollama vision model; suggestions are advisory, filtered to
x,y,font_sizeandcolouron unlocked, ungrouped, non-image elements, and never applied automatically.
For a blank design, an empty list of canvas objects is valid and can be populated through the editor. Adding and duplicating elements respects the existing 40-object limit. The overlap and contrast checks still apply.
Multi-page documents and brand kits¶
- Multi-page (v8): a document is an ordered collection of 1–20 editable
canvases, each with its own layers, animation metadata and Undo/Redo
history, saved as one
schema:2draft. Page add/duplicate/reorder/remove/ rename are supported. PDF and PowerPoint export all pages; PNG, JPEG, SVG and GIF export the current page only. - Brand kits (v9): a kit holds nine validated
#RRGGBBcolour tokens, heading/body sizes (12–90) and optionally a logo, with ink/background contrast of at least 4.5:1 and a maximum of 30 kits per user. Apply to page or Apply to all pages runs a read-only quality check on the whole candidate document before committing anything. Brand launch and Executive brief premium templates are included.
Trust, privacy and security¶
- API endpoints authenticate using the existing Mewlith local session / hosted account mechanism and its CSRF checks.
- References to images must point to files inside the authenticated user's workspace, never arbitrary host files or external URLs. The editor does not execute SVG supplied by users.
- Uploaded image contents are validated by the existing asset pipeline. Export and preview enforce bounded canvas dimensions, input sizes and rate limits.
- Drafts, exports and manifests use random unique filenames; existing files are never overwritten. Hosted users remain isolated in their own workspace and are subject to storage quotas.
- The interface does not send photographs to a cloud image generator. Preservation means deterministic original-image placement, not a claim of exact identity preservation under an AI generative edit.
- Saved drafts are user-controlled files. No external SaaS account or proprietary editor is necessary.
Quality and validation¶
The source includes:
tests/test_visual_studio.py: authenticated API coverage, actual preview decoding, original-image hashes, in-workspace draft save/reload, path-isolation tests, real multi-frame GIF, editable PowerPoint, bad-spec rejection.tests/test_visual_export.py: export scale/DPI, transparent PNG alpha, vector-PDF selectable text, option rejections, multi-page vector PDF.tests/test_visual_accessibility.py: touch-revealed actions, info-panel scrim, intermediate breakpoint, narrow-width theme affordance, seg arrow-key behaviour, export UI controls.apps/desktop/test/ui-smoke.cjs: browser navigation, preview, selected-element edits, draft save and GIF export.- The existing visual-foundation tests validate the shared renderer and GIF animation.
Before release, run python -m pytest -q tests/test_visual_studio.py tests/test_visual_foundation.py tests/test_visual_design.py tests/test_visual_export.py; then run the desktop UI smoke suite (npm run test:ui from apps/desktop) with Chromium/Playwright installed.
Current limits¶
The editor has group-aware layer visibility, locking, z-order controls,
bounded resizing, a staged GIF reveal timeline and keyframe motion, and a
multi-page editor, but is not a full Figma/Canva replacement. It does not
yet include deeply nested layer hierarchies, static rotation, gradients,
shadows or freeform paths, generative pixel-level identity-preserving
retouching, video export (MP4/WebM), a print pipeline (CMYK/bleed), version
history, or automatically verified aesthetic critique and self-repair. The
existing agent can still generate multi-slide PowerPoints through
visual_create.
Production readiness depends on passing the full CI matrix, reviewing browser screenshots, and publishing a new signed Windows package. Merging a source branch alone is not Microsoft Store publication.