
open-pencil
AI-native design editor with real-time collaboration, component system, and Figma-compatible file format.



OpenPencil is an open-source design editor that reads and writes native .fig files alongside its own .pen format. It ships as a roughly 15 MB Tauri desktop app for macOS, Windows, and Linux, as a browser PWA, and as a CLI, so the same document can move between a local app and the web.
The editor covers components and variants, flex and CSS Grid auto layout via Yoga WASM, variables, styles, design tokens, image vectorization, and design-to-code export to JSX/Tailwind, Storybook stories, PNG, JPG, WEBP, SVG, PDF, and PPTX. Real-time collaboration is peer-to-peer over WebRTC, with no server or account, and includes cursors, presence, follow mode, and voice calls. AI features let you describe a design in chat and have the assistant create or modify nodes through more than 100 tools, using OpenRouter, Anthropic, OpenAI, Google AI, DeepSeek, Z.ai, MiniMax, or compatible endpoints.
Compared with Figma's seat-based, cloud-first subscriptions, OpenPencil is MIT-licensed, works offline in the desktop app, and opens existing .fig files, so you can bring designs over and copy-paste nodes between the two. It is also programmable: the headless CLI supports XPath queries, linting, format conversion, and the Figma Plugin API via eval, plus an MCP server and agent integrations for Claude Code, Codex, and Gemini CLI. The project describes itself as usable today but still under active development, with rough edges as features evolve.
Categories:
Build with:
Frequently Asked Questions
Which platforms does OpenPencil run on?
There is a desktop app for macOS 13 or later, Windows 10 or later, and Linux with WebKitGTK 2.40 or newer. A browser app runs in Chrome or Edge 111 or later, Firefox 128 or later, and Safari 16.4 or later, and can be installed as a PWA. The CLI is distributed as the npm package @open-pencil/cli.
Can OpenPencil open my existing Figma files?
Yes. OpenPencil reads and writes native .fig files, opens .pen documents, and supports copying and pasting nodes between OpenPencil and Figma. The CLI can also convert between .fig and .pen, import HTML and CSS as editable layers, and export designs to PNG, JPG, WEBP, SVG, PDF, PPTX, JSX, Tailwind, or Storybook stories.
Does OpenPencil work offline, and how does collaboration work?
The desktop app runs offline against local files. Collaboration is peer-to-peer over WebRTC with no server or account required, and adds cursors, presence, follow mode, and voice calls. The web app needs a supported browser but does not require a hosted OpenPencil backend.
Which AI providers can OpenPencil use?
You can connect OpenRouter, Anthropic, OpenAI, Google AI, DeepSeek, Z.ai, MiniMax, or another OpenAI-compatible endpoint by supplying your own API key. The assistant has more than 100 tools for creating and modifying nodes, so it can build layouts and edit existing designs from a chat prompt.
Does OpenPencil have a CLI or API for automation?
Yes. The @open-pencil/cli package can inspect node trees, query documents with XPath, lint naming, layout and accessibility, analyze colors, typography and spacing, run the Figma Plugin API through eval, and export or convert files. There is also an MCP server and agent integrations for Claude Code, Codex, and Gemini CLI, plus a headless Vue SDK for embedding the editor in other apps.
OpenAltFinder Score
Project Details
Repository details
Updated 11/22/2026, 1:00:51 AM
View RepositoryRepository activity
Sponsor open-pencil
Get the latest open source alternatives delivered weekly.
Discover tools that give you freedom from proprietary software.
Compare open-pencil with
Similar open source alternatives
Doory
Open-source browser design editor for posters, social posts and slides, with templates, real-time co-editing and PNG, SVG, PDF and video exports.

Penpot
Open-source design and prototyping platform with native design tokens, real CSS layouts and self-hosting — a strong Figma alternative.
Figma
Huly
All-in-one open source platform that combines project management, CRM, chat, HR, and wiki as an alternative to Linear, Jira, Slack, and Notion.
App Store Screenshots Generator
An open-source AI agent skill that builds a local Next.js editor for App Store and Google Play screenshots with device frames and store-size exports.
AppScreens
SnapOtter
Self-hosted image manipulation platform with 45+ tools, local AI, and pipelines. A privacy-first open source alternative to Canva, TinyPNG, and remove.bg.

Tegon
Dev-first open source alternative to Jira and Linear for issue tracking, sprint planning, and product development.
Jira


