FigCraft Project Analysis: Building a Figma-like tool from scratch using pure Rust, with over 400 commands to handle design tasks and pass them to Agent.

FigCraft Project Analysis: Building a Figma-like tool from scratch using pure Rust, with over 400 commands to handle design tasks and pass them to Agent.

3 weeks ago
duguying
37 views
Source: GitHub

The ArtCraft team's open-source FigCraft implements a Figma-style interface design workflow using pure Rust: native, Electron-free, fully offline operation with files stored locally, and a shared set of over 400 commands for UI/CLI/MCP, with an AI agent capable of direct control. The project gained over 2100 stars within one week of its launch, and the latest version is v0.6.0.

Related tags

#FigCraft#Rust#设计工具#开源#Figma#ArtCraft

Project Overview

FigCraft is an interface design and prototyping tool developed by the ArtCraft team, using Rust to rewrite Figma from scratch. Its goal is to be a “clean-room open-source recreation of Figma”: It includes features such as a canvas, automatic layout, components and variations, vector networks, styling, variables, and interactive prototypes, all while being a native application that can be used immediately without requiring an internet connection. The project repository was created on October 9, 2026, and has already accumulated over 2,152 stars and 792 forks. The latest released version is v0.6.0 (as of October 14, 2026), and it is currently in the early alpha stage.

One of the most unusual aspects of FigCraft is that the entire engine, including the UI, can be compiled into WebAssembly and run in a browser. However, unlike Electron-based applications, it does not use a WebView to access the operating system’s resources. Instead, it uses a pure data document model combined with a command engine, which is topped by a thin layer of egui.

What Problems Does It Solve?

Design tools have increasingly become “cloud-based” in recent years, with features such as accounts, subscriptions, automatic saving, and collaborative servers. FigCraft takes a different approach:

  • Files are yours: .figcraft files are just ordinary archive files stored on your local disk. They do not require an account or telemetry data, and they will not connect to any server unless you explicitly choose to share them.
  • Native and fast: The persistent document model allows users to quickly edit only the parts of a file that have been changed, resulting in very fast navigation through files with up to 20,000 nodes.
  • Flexible format support: FigCraft supports importing and exporting SVG, PNG, JPG, WebP, and PDF files, and it can open .fig files, as well as read design files that have been exported using the public REST API (including prototypes and variables).

Core Mechanism: Everything is a Command

FigCraft implements every menu item, tool, and drag-and-drop action as a single command within its command registry. Currently, there are over 400 commands. The UI, CLI, JSON control channel, and MCP server all use the same set of commands—this means that whatever you can do with a script or an AI agent, you can also do with FigCraft.

Capabilities

FigCraft offers a wide range of capabilities, including:

  • Layout: Two-way automatic layout support for horizontal and vertical arrangements, fixed, hug, and fr grid layouts, customizable spacing and margins, and support for constraints and layout grids.
  • Components: The ability to create reusable components with editable instances, component sets and variations, the ability to replace instances, separate, reset, and revert to the main component. Asset panels include real-time thumbnails and search functionality. Supports styling and variables (colors, numbers, strings, booleans) with modes, aliases, and scopes.
  • Vectors: A true vector network with tools for drawing, editing, and manipulating vectors, including pen and pencil tools, vector editing mode (extending and branching paths), corner rounding, point manipulation, connecting/disconnecting/deleting, shape generation, boolean operations (union, difference, intersection, exclusion) that can be edited on the canvas. Supports gradient fills and effects, including blending modes, projections, shadows, layers, background blur, noise, textures, and glass effects (refraction, dispersion, frost, lighting), as well as masks.
  • Text: In-canvas text editing with inline IME support, paragraph styles, automatic width adjustment, OpenType features, variable font axes, right-to-left and mixed direction text support (Arabic, Hebrew, using Unicode bi-directional algorithms), and the ability to use HarfRust and craft-fonts for typography.
  • Prototyping and Delivery: Supports connections, triggers, actions, and Smart Animate style transitions. The interactive editor includes built-in if/else if/else conditional statements and count + 1 expressions. It also supports process views with device prompts, an inspect panel, real-time preview panes, annotations, a ready-for-dev list, and “diff” functionality (by attribute). It can generate CSS, HTML, React, Leptos, SwiftUI, and Compose code directly from component properties, and provides frame-level comment threads and version history.

Comparison with Figma

Dimension Figma FigCraft
Form Factor Browser Web Application (with Electron wrapper) Native application (Rust + egui), no Electron
Files Cloud-based, requires account Local .figcraft archive, no account or telemetry
Connectivity Default online Default offline, connects only when sharing or joining
Automation Plugins + REST API 400+ commands, UI / CLI / JSON channels / MCP
Collaboration Mature real-time multi-user Preview state, supports online server or local network connection
Licensing Commercial, closed source MIT or Apache-2.0 dual license
Maturity Production-ready Early alpha, 222 open issues

Technology Stack and Security Boundaries

FigCraft uses a pure data document model with a command engine, with the UI being a thin, replaceable layer. Layered development is checked at build time using cargo xtask layers. Tiny-skia is used for rendering, linesweeper for boolean operations, kurbo for geometry, skrifa and HarfRust for text. Plugins run in a metasyntactic, pure Rust interpreter with memory limits and no file or network access. The command runs after the guard, so only one action fails, without affecting the entire session.

Collaboration Boundaries

When sharing files via “

More News

Want to see more quality content?

Browse all news