Canvas

•

Provides an AI assistant with a visual design canvas, rendering HTML/CSS to generate design elements and screenshots programmatically.

Canvas is an open-source server that empowers AI assistants with a visual design canvas, enabling programmatic UI creation and manipulation. It translates a structured scene graph (an in-memory JSON tree) into HTML/CSS, leveraging a headless Chromium instance (via Puppeteer) to render high-fidelity designs. This allows AI to generate and iterate on UI elements, apply design tokens, manage components, and output various formats like PNGs, PDFs, and even visual diffs, bringing powerful design capabilities to automated agents.

主な機能

01Visual comparison (canvas_diff) and responsive rendering across breakpoints (screenshot_responsive).
02Capture designs as PNG, JPEG, WebP, or PDF images with configurable viewports.
03HTML/CSS rendering engine for layouts, text wrapping, and styling.
040 GitHub stars
05Programmatic UI design and manipulation via a scene graph API (batch_design).
06Support for design tokens, components, gradients, shadows, blur effects, and Lucide icons.

ユースケース

01Enabling AI assistants to visually design and iterate on user interfaces.
02Performing visual regression testing and previewing responsive designs across devices.
03Automating the generation of design assets, mockups, and prototypes.