About this project

OpenPencil is an open-source design editor that reads and writes native Figma (.fig) and Pencil (.pen) files. It includes built-in AI for generating and modifying designs via chat, supports multiple LLM providers (OpenAI, Anthropic, Google AI, etc.), and offers a programmable toolkit with a headless Vue SDK for embedding or building custom editors. The desktop app (~7 MB) runs on macOS, Windows, Linux via Tauri v2, and also as a browser PWA. Key features include real-time peer-to-peer collaboration over WebRTC (no server or account), auto layout and CSS Grid via Yoga WASM, image vectorization, design token extraction, linting, and conversion between formats. A rich CLI enables inspecting, querying (XPath), exporting (PNG, SVG, JSX, Tailwind), analyzing, and scripting design files using the Figma Plugin API. It also exposes an MCP server for integration with AI coding agents like Claude Code, Cursor, and Gemini CLI. Designed as a privacy-focused, scriptable alternative to closed platforms, OpenPencil ensures your data stays local and all operations are automatable. Actively developed with documented roadmap and compatibility notes.