DEV Community

Siddhesh Surve
Siddhesh Surve

Posted on

🚀 Stop Dragging Boxes: Why OpenPencil is the Open-Source Figma Killer We've Been Waiting For

When you spend your days building automated CI/CD tools—like a custom secure-pr-reviewer GitHub App—you quickly realize how much of the software engineering lifecycle is entirely scriptable.

Yet, UI design has remained a stubbornly manual, closed-ecosystem process.

For the last few years, Figma has been the undisputed king of design. But in the era of AI-generated code, closed platforms are becoming massive bottlenecks. Figma's recently launched MCP (Model Context Protocol) server is strictly read-only. You can pull design context, but you cannot programmatically create or modify designs.

Enter OpenPencil.

OpenPencil is an open-source (MIT licensed), AI-native design editor built with Tauri. It natively opens .fig files, but more importantly, it was built from day one to be manipulated by AI. Here is why this 7MB desktop app is about to change how frontend teams operate.

🤖 The Game Changer: A Write-Enabled MCP Server

The most powerful feature of OpenPencil isn't its UI; it's what runs in the background.

OpenPencil ships with a fully functional, read/write MCP server. This means you can connect it directly to AI coding agents like Claude Code, Cursor, or Windsurf, and allow the AI to actively manipulate your design canvas in real-time.

Instead of spending three hours tweaking auto-layout boxes, your workflow now looks like this:

  1. Open your terminal and connect Claude to OpenPencil.
  2. Type a prompt.
  3. Watch the AI build the UI on your canvas.
# Start the OpenPencil MCP server on your local machine
npx @open-pencil/mcp-server --port 3100

Enter fullscreen mode Exit fullscreen mode

Once connected to your AI agent of choice, you can issue commands directly:

> claude
"Read the current OpenPencil canvas. Generate a new data analytics 
dashboard layout for our admin panel. Use the existing Tailwind 
color variables and ensure all components use auto-layout."

Enter fullscreen mode Exit fullscreen mode

Because OpenPencil exposes 75+ tools to the MCP server (including creating shapes, setting layouts, boolean operations, and variables), the AI isn't just generating an image of a UI—it is generating perfectly structured vector nodes that you can immediately export to React or CSS.

🔄 100% Figma Compatibility (No Vendor Lock-in)

The biggest hurdle to adopting a new design tool is the migration cost. OpenPencil bypasses this entirely by using the exact same Kiwi binary format as Figma.

  • Native Import/Export: You can open your existing .fig files directly in OpenPencil.
  • Seamless Copy/Paste: You can literally highlight a component in Figma, hit Cmd+C, tab over to OpenPencil, and hit Cmd+V. All vector data, auto-layout rules, and typography are preserved perfectly.

You don't have to convince your entire design team to migrate today. You can just copy their work into OpenPencil when you need to leverage AI orchestration.

⚡ Headless CLI: Design-as-Code

For engineering teams dealing with massive scale, manual design QA is a nightmare. Because OpenPencil is deeply programmable, it includes a Headless CLI.

You can inspect, search, analyze, and even render design files directly in your CI/CD pipelines without ever opening a graphical interface.

Imagine running a GitHub Action that automatically lints your design files for missing variables, or automatically exports updated SVG assets straight to your frontend repo whenever a .fig file is committed.

# Programmatically inspect a design file in your CI pipeline
openpencil-cli inspect dashboard.fig --query "nodes[type='Frame']"

# Export specific components to code headlessly
openpencil-cli export header.fig --format react --out ./components/Header.tsx

Enter fullscreen mode Exit fullscreen mode

🌐 P2P Collaboration (Look Ma, No Servers!)

Figma justifies its massive valuation largely through its multiplayer collaboration. OpenPencil handles real-time collaboration without requiring you to create an account, pay a subscription, or even use the cloud.

It uses WebRTC for Peer-to-Peer (P2P) sync. You just click "Share", send the generated link to your coworker, and you are instantly co-editing the same local file with live cursors and follow-mode.

🚀 The Bottom Line

Design tools are no longer just places to draw rectangles; they are the starting point of the code supply chain. When the vendor locks down what you can build programmatically, your velocity suffers.

OpenPencil takes the absolute best parts of modern design tooling, removes the paywalls, and opens the API to the AI models that are actually writing our code today.

If you are a developer sick of manually translating mockups into code, this is the repository you've been waiting for.

Drop a ⭐ on the OpenPencil GitHub repo, and let me know in the comments: Are you ready to let Claude design your UIs? 👇

Top comments (0)