One C++20 Geometry & Document Engine, Two Native Experiences
VibeLayout (M2Draw) is built on a strict engineering principle: never write the same rule twice across desktop and web. Document trees, SVG round-trip serialization, Clipper2 boolean geometry, Auto Layout frames, DrawList generation, and AI scene packaging all live in one shared C++20 core.
1. Single Source of Truth Core (engine/)
Pure C++20 implementation of the document model (GeModel), tool state machines, grid/snap math, Clipper2 boolean/offset operations, PDF/HTML/SVG exporters, and .vlt1 (ZIP + mbedTLS) packaging.
2. Web Studio (Web/ — React 19 + WASM)
Compiled via Emscripten into m2core.wasm, running directly inside the browser for zero-latency vector editing while keeping guest drawings 100% local to the browser.
3. Desktop Client (M2Draw/ — MFC + Direct2D)
Hardware-accelerated Direct2D and DirectWrite canvas rendering on Windows with direct local project folder workflow.
4. Secure AI Agent Relay Architecture
The C++ engine packages scene.json and component specs, while our dedicated relay server (/api/agent) enforces token auth and plan quotas before calling commercial Gemini models.
System & AI Relay Architecture
Unified Engine · Desktop · Web Architecture
The shared C++20 core engine powers both the Windows Direct2D client and the WebAssembly browser studio.
AI Design Agent Pipeline
Canvas selection/document → Engine scene.json package → Relay server (/api/agent) auth & quota check → SVG/HTML synthesis
Development Milestones & Roadmap
Advanced Illustration & Typography
Clipper2 booleans/offset, variable width strokes, gradient mesh, text on path, repeat arrays, symbols, global swatches, multi-artboard PDF/HTML.
Web/Desktop Engine Convergence & .vlt1 Format
Unified DrawList rendering, 16 blend modes, automatic Group-to-Frame conversion, and encrypted .vlt1 project archives.
AI Relay Server & Plan Quota System
Production relay server, token-based daily and monthly quota checks, and component-spec guided AI generation.
Cloud Project Storage & Member Features
Sign-up and authentication, cloud document saving and sync, and desktop sign-in.