SuperAPIAI Directory

caret-desktop

github.com · AI design

Caret is a free, open-source, locally running desktop design tool that provides a visual design canvas on top of real code. Users can click a heading directly on the rendered page to retype the text, right-click to choose a color, and drag edges to resize; all changes are written into the corresponding source files. Design content is stored as real React code in the repository's .caret/ directory, managed by git, reviewable through Pull Requests, and the app's own source code remains unchanged until synced. It supports editing text, colors, images, and dimensions directly on the page; for complex changes, users can select a region and describe it in natural language, and an AI agent handles it precisely; three versions can be generated at once for comparison, keeping one; it can also generate assets such as logos, photos, textures, and animated backgrounds. Caret can sync designs into apps built with any framework and supports two-way sync; it has a built-in OpenCode engine, can connect to your own model or API key, and can also hand off sync via MCP to external agents such as Claude Code and Codex. The software requires Node.js to be installed to load the live canvas, and the Windows installer is not yet code-signed.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Caret is a free, open-source desktop design tool that runs on your local machine, positioned as "a design canvas overlaid on real code." Its core idea: the page is actually rendered and running in the canvas, not an image of a design mockup; every change the user makes on the canvas is written back to the corresponding source files.

Purpose and positioning Caret is aimed at developers and designers who want to adjust interfaces visually while keeping code as the single source of truth. Design content is stored as real React code in the project repository's .caret/ directory, managed by git, and reviewable in Pull Requests. The app's own source code remains unchanged until the user performs a sync, so a change will not be overwritten the next time it is generated.

Main capabilities

  1. Direct editing on the page: right-click any text, color, or image to modify it, and Caret writes the change into that page's own file in .caret/ and reloads the page. When choosing a color, Caret compares it against design tokens; if it is close to a token, it writes the token rather than a hex color value, making it easy to change the brand color uniformly later; edges can also be dragged to resize, and dimensions are likewise written into the code.
  2. Describe complex changes: for modifications that are inconvenient to click, select a page region and describe the requirement in text; the agent receives the precisely marked elements without having to guess what is meant.
  3. Generate three versions at once: when the direction is uncertain, Caret can build multiple versions side by side in real time, keep one of them, and the choice leaves an undo step; any version can also spawn a further round.
  4. Generate assets: it can generate photos, textures, logos drawn as real vector files, and animated backgrounds written in code with adjustable colors; lighting, composition, and color palette come from design tokens. Generated results land on an asset board; modifying one derives a new version from that image without overwriting the original, and it can be saved by name and referenced in Caret as @name.
  5. User journey visualization: after describing paths in the product, the canvas draws these journeys on the page, each journey has its own color, error paths are dashed, and pages with no entry point are obvious at a glance.
  6. Sync into the app: designs live in .caret/, and the app can use any framework. Caret computes the design files changed since the last sync, and an agent makes the app match them; a snapshot is created before syncing, and undo is always available. Reverse sync is also supported: if someone modifies the app directly, Caret detects it by comparing file contents and prompts to bring the design back into alignment, and the user reviews both versions and chooses; it does not merge automatically.
  7. Catch errors early: Caret runs on the pageA set of rules that proactively surfaces detected issues on the canvas, such as colors that are close to but not the brand color, text that is too light, and skipped heading levels. It also writes design tokens into AGENTS.md, CLAUDE.md, and .cursor/rules and keeps them up to date.
  8. Bring your own model: it has a built-in OpenCode engine that can connect to any provider, supporting API keys or existing subscriptions (such as ChatGPT Plus, Pro, Go, Kimi For Coding, Z.AI and Zhipu coding plans, and GitHub Copilot sign-in); Anthropic is supported only via API key. You can also hand off syncing via MCP to an external agent in the terminal; Claude Code and Codex have been tested. MCP is one-way: external agents can call Caret, but Caret cannot push tasks back to them.

How to use First use: open a folder, and Caret will create .caret/ inside it without touching anything else; describe what you want to build in one sentence; set the foundations (colors, fonts, spacing, corner radius), which Caret can do through an interview (requires a model) or you can set manually (no model required); then create pages by requesting them in chat or by writing the files yourself, and the pages will appear on the canvas.

Platforms and installation Versions are available for macOS, Windows, and Linux. The macOS build is signed and notarized by Apple; download, unzip, and drag it into Applications. The Windows build is not yet code-signed, so during installation you may see a browser "not commonly downloaded" prompt, a SmartScreen warning, or Defender quarantine; the official documentation provides the corresponding steps to continue installation without disabling antivirus software. On Linux you can install the .deb or .rpm directly, or run the AppImage.

Limitations and requirements The live canvas runs a local development server and requires Node.js to be installed (an LTS version is fine; the minimum is Node 20.19+ or 22.12+ in the 22 series, which is a Vite requirement), otherwise the canvas will remain stuck on "preview loading". The other features do not depend on Node.js. The software is free and requires no account; it only sends anonymous usage and crash data, which can be turned off with one click. Building from source requires Node 20 or newer, and the license is Apache-2.0.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools