open-pencil /open-pencil

AI-native design editor. Open-source Figma alternative.

★ 9,863⑂ 1,068👁 49⑃ 1,588● 474▤ 42
TypeScriptMITCreated 2026-02-27openpencil.dev
下载:v0.16.0v0.16.0 ↓0.16.02026-10-14
+14
日增长
9,863
stars
1,068
forks
49
watchers
1,588
prs
474
issues
42
releases

README

OpenPencil







Open-source design editor. Opens .fig and .pen design files, includes built-in AI, and ships as a programmable toolkit with a headless Vue SDK for building custom editors.

 Status: Active development. Usable today, with some rough edges as features evolve.

Try it online → · Download · Documentation · Roadmap · llms.txt

!OpenPencil

 Installation

macOS (Homebrew):

sh
brew install --cask openpencil


Or download from the releases page, or use the web app — no install needed.

Requires macOS 13 or later with current Safari updates, Windows 10 or later, or Linux with WebKitGTK 2.40+; the web app needs Chrome 111, Edge 111, Firefox 128, or Safari 16.4 or later. See system requirements.

Official builds send one anonymous ping a day and share usage stats only if you agree. The privacy page lists every field, everything else the app sends, and how to turn it off.

 What it does

- Opens .fig and .pen files — read and write native Figma files, open supported Pencil documents from the app or OS file browser, copy & paste nodes between apps
- AI builds designs — describe what you want in chat, 100+ tools create and modify nodes. Bring your own key for the major providers or any compatible endpoint
- Fully programmable — headless CLI, XPath queries, Figma Plugin API plus an openpencil API via eval, MCP server for AI agents, and desktop agent integrations for Claude Code, Codex, Antigravity CLI, Gemini CLI, Cursor, Grok Build, and Pi
- Lint, convert, and extract tokens — inspect documents, lint naming/layout/accessibility, convert between supported formats, analyze colors/typography/spacing/clusters, and extract design tokens
- Components and variants — create reusable components, group variants into component sets, insert local assets as instances, and switch variants from the inspector
- Working controls — give a component a Reka UI behaviour (switch, slider, tabs, text field, …) and preview it live over the canvas, with real inputs, focus, and keyboard
- Image vectorization — convert image layers into editable vector layers with Recraft or fal.ai
- Design-to-code export — export selections as JSX/Tailwind, generate token outputs, and map designs into component-oriented code workflows
- Vue SDK for custom editors — headless components and composables for embedding OpenPencil into other apps or building workflow-specific editing surfaces. Read the SDK docs →
- Real-time collaboration — share a peer-to-peer room over WebRTC with no server or account, or edit Cloud documents together. Cursors, presence, follow mode, voice calls
- Optional Cloud — keep documents on your team's own OpenPencil Cloud server, or on the hosted service once it opens, and share them by invitation
- Auto layout & CSS Grid — flex and grid layout via Taffy WASM, with gap, padding, alignment, track sizing
- ~15 MB desktop app — Tauri v2 for macOS, Windows, Linux. Also runs in the browser as a PWA

 CLI

sh
npm install -g @open-pencil/cli
 or: bun add -g @open-penci

Top issues

Discussions

Latest release

v0.16.0 v0.16.0 2026-10-14
OpenPencil 0.16 adds comments, shared rooms with voice calls and agents you can follow, slots, component properties, and components that behave like real controls in Preview, plus shader fills, a Lint tab, variable modes on layers, a pencil tool, and Vue and React code in the Code tab. .fig files open and save much closer to Figma, saving only what an edit changed, and selection, pasting, auto layout, text, and trackpad navigation follow Figma. The desktop app needs macOS 13 or later, and openpencil-mcp must be updated together with the app.

 Breaking changes

- The desktop app requires m

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON