open-pencil/open-pencil

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

What it solves

OpenPencil solves the problem of design files being trapped in closed platforms like Figma, which resist programmatic access and use a proprietary binary format. It offers an open-source, local-first design editor that can read and write native .fig files, and every operation is scriptable.

How it works

OpenPencil is a desktop app (Tauri v2) that also runs in the browser. It uses Skia for rendering, Taffy for auto-layout, and Vue 3 for the UI. It can open .fig and .pen files, and offers a chat-based AI assistant with 100+ tools to create and modify design nodes (bring your own API key). It also exposes a CLI for inspecting, exporting, linting, and converting files, supports XPath queries, and has an MCP server so AI coding agents like Claude Code or Cursor can control it. A headless Vue SDK lets developers build custom editors, and real-time collaboration is done peer-to-peer over WebRTC.

Who it’s for

Designers who want an open-source alternative to Figma, developers who want to programmatically manipulate design files, teams that want local-first design tools, and AI enthusiasts who want to use LLMs to design directly. It's also for anyone building custom editing surfaces via the Vue SDK.

Highlights

  • Opens and writes native .fig files, as well as .pen files
  • Built-in AI chat with 100+ tools; bring your own key for major providers
  • Fully programmable: CLI, XPath queries, Figma Plugin API via eval, MCP server, and integrations with Claude Code, Codex, Gemini CLI, Cursor, etc.
  • Lint, convert, and extract design tokens from documents
  • Components and variants, plus live Reka UI behaviour previews
  • Image vectorization and design-to-code export (JSX/Tailwind, Storybook)
  • Real-time peer-to-peer collaboration with voice calls (no server or account)
  • Optional self-hosted Cloud for team document sharing
  • ~15 MB desktop app built with Tauri v2, also runs as a PWA

Related

  • Project
  • Project
  • Project
  • Project
  • Project