Design as Code

A file format and canvas for drawing, design, and animation — right inside your code editor. Draw it or code it? Both.

Code
Ready
100%

Loading engine…

{ } Code

Why Fast Draft?

Built for both humans and AI agents — design and code in perfect sync.

🔄

Design as Code

Bidirectional sync between text and canvas. Plain text means git diff, code review, and merge just work.

🤖

AI-Native Format

Semantic IDs, constraint layout, ~6× fewer tokens than JSON. Agents read and write designs natively.

🧩

Living Components

Styles, specs, and animations travel with every element. Reuse via style blocks and import.

✏️

Prompt as You Draw

Code, canvas, keyboard, Apple Pencil, touch, or AI — every input is first-class, and they all compose.

Two Modes, One File

Each mode is designed for a different audience — but they edit the same file.

🤖 Code

The AI Interface

LLMs and coding agents read, write, and reason about .fd text directly. Uses ~6× fewer tokens than Excalidraw JSON.

  • Semantic node names (@login_form)
  • Constraint-based layout (no pixel coords)
  • Structured spec blocks with status + acceptance criteria
  • Named colors and property aliases
🎨 Canvas Mode

The Human Interface

Designers draw, drag, and resize on a fast, GPU-powered canvas inside VS Code. No code knowledge needed.

  • Smart guides and resize handles
  • Drag-and-drop animations
  • Floating toolbar and properties panel
  • Touch and Apple Pencil support

The Numbers

Real designs compared: FD vs Excalidraw JSON. Measured across 11 benchmark pairs.

Design FD Size Excalidraw Size Ratio
Login Form2.4 KB15.8 KB6.6×
Dashboard Card0.8 KB7.3 KB9.1×
Kanban Board3.7 KB18.9 KB5.1×
Org Chart4.1 KB15.5 KB3.8×
API Flowchart3.3 KB27.9 KB8.5×
Mobile Onboarding3.5 KB18.7 KB5.3×
Pricing Table4.4 KB24.5 KB5.6×
Network Topology4.6 KB28.6 KB6.2×
Data Dashboard4.6 KB36.0 KB7.8×
Design System5.7 KB28.4 KB5.0×
Wireframe eCommerce2.3 KB19.0 KB8.3×
Average 6.5×

Under the Hood

Rust + WASM, from parser to pixel.

Core Engine

.fd text → Parser → SceneGraph → Emitter → .fd text

Winnow parser, DAG scene graph, constraint layout solver, and language server with hover, completions, and diagnostics.

GPU Renderer

SceneGraph → Vello + wgpu → GPU canvas

Hardware-accelerated 2D rendering via WASM. Hit testing, smart guides, and the bridge that powers this playground.

Canvas Editor

Canvas ↔ Text (bidirectional sync)

Draw or code — both update in <16ms. Select, rect, pen, text, eraser tools with full undo/redo.

Editor Support

Syntax highlighting everywhere, full canvas in VS Code.

Editor Syntax LSP Canvas
VS Code / Cursor
Zed
Neovim
Sublime Text
Helix
Emacs

Desktop App

Native macOS, Windows, and Linux app — all the power of the playground, no browser needed.

🍎

macOS

Apple Silicon & Intel

Download .dmg
🪟

Windows

Windows 10+ (x64)

Download .msi
🐧

Linux

Ubuntu / Debian (x64)

Download .AppImage

Ready to design as code?

Install the VS Code extension and start drawing in 30 seconds.