← Back to Leaderboard
OZSeven-W

ZSeven-W/openpencil

Rust vector editor for turning prompts into editable, Git-friendly UI designs

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 86/100
Maintenance Activity
● Updated 2d ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption20/25
Release Cadence11/20
License Clarity20/20
DockerMCPCLISelf-Hosted
Total Stars
★ 7,433
24h Growth
+6
7d Growth
+56
Forks
644

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

ZSeven-W/openpencil Star History (2026-02-21 - 2026-12-04) ALL-TIME STAR HISTORY (2026-02 – 2026-12) +7.4k in 286d · avg +26/day 7.8k 3.9k 0 2026-02-21: ★ 12026-03-14: ★ 6502026-04-04: ★ 1,9592026-04-25: ★ 2,3132026-05-16: ★ 3,0002026-06-06: ★ 3,2242026-06-27: ★ 3,4222026-07-18: ★ 4,0672026-08-08: ★ 4,6172026-08-29: ★ 5,6522026-09-19: ★ 5,9172026-10-10: ★ 6,0762026-10-31: ★ 6,9742026-11-18: ★ 7,2762026-12-04: ★ 7,433 ★ 7.4k 2026-02 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

OpenPencil is a vector editor built around a shared Rust core. The Cargo workspace spans editor state, widgets, hosts, AI, MCP, and code generation; a plain cargo build targets the desktop host and op CLI by default rather than compiling the web host for the native target. On desktop, vendored Jian provides widgets, layout, events, and rendering; Casement is the vendored winit fork used for windowing. Native rendering uses GPU Skia through skia-safe with GL, without an embedded browser engine. The browser host pairs a headless Rust server with a WASM bundle that renders through CanvasKit and WebGL2.

The editor writes human-readable JSON to .op files, giving manual edits and automation a common, diffable artifact. The built-in Rust agent runtime handles generation; an orchestrator can split a page into spatial tasks and stream results to the live canvas over SSE. For external integration, op-mcp exposes document operations over stdio, while op supports scripts against desktop, web, or headless file-backed sessions. The TypeScript op-web-sdk and its React 19 and Vue 3 adapters are for read-only viewing.

Key Capabilities & Differentiators

The canvas supports Bézier paths, Boolean geometry, alignment and snapping, multi-page documents, and horizontal or vertical auto-layout. Design-system primitives include color, numeric, and string variables, multi-axis themes, and component instances with overrides. Design variables can become CSS custom properties in generated code. Export targets include React + Tailwind, HTML + CSS, Vue, Svelte, Flutter, SwiftUI, and Jetpack Compose, so a team can evaluate the same design against multiple implementation stacks.

AI generation produces editable canvas content from text or visual references, and users can target revisions by selecting existing objects. Agent Teams work on spatially distinct sections with per-agent canvas indicators, while the design_skeleton → design_content → design_refine workflow separates layout, content, and polish. More than 50 bundled style guides are available through tag-based matching. Provider profiles adapt prompts and thinking settings across model families: Claude receives fuller prompts, GPT-4o and Gemini profiles disable thinking, and smaller models such as Qwen and Llama receive simpler prompts.

Trade-offs & Limitations

Compared with a conventional Pencil workflow, the main reason to adopt OpenPencil is to make canvas edits part of a prompt-driven, scriptable workflow. For a Figma team, the practical entry point is .fig import, but that does not establish round-trip fidelity or parity for shared libraries and handoff. Git diffs make .op changes inspectable; they do not guarantee clean merges when designers edit the same objects. Evaluate generated code against your accessibility requirements and component conventions before treating it as production output. Parallel agents can work on different sections at once, but API limits, cost, and visual consistency across those sections remain adoption concerns.

Self-hosting the editor is distinct from self-hosting inference. Web-entered credentials live in same-origin localStorage by default and are sent to the daemon with requests that need them, so protecting the web origin from untrusted scripts and XSS matters. Server persistence is opt-in, and each accepted browser snapshot replaces the shared browser-owned copy. Use it only for a trusted, access-controlled HTTPS deployment with one active administrator profile, not as a per-user credential store.

Hardware & Deployment Guide

The packaged desktop paths include Homebrew on macOS, Scoop or an installer on Windows, and AppImage or .deb artifacts on Linux. Windows portable ZIP and VSIX distributions require the supported Microsoft Visual C++ v14 runtime to be installed separately. For source builds, clone recursively to fetch jian, casement, and agent; the toolchain is pinned in rust-toolchain.toml. The Nix flake targets x86_64-linux. For self-hosting, the tagged ghcr.io/zseven-w/openpencil-web:vX.Y.Z image bundles the Rust web host, WASM, and CanvasKit and serves on port 3100. The local container build uses Dockerfile.web-rust, and scripts/start-web-rust.sh builds and starts the development web stack.

The web host offers built-in API-key agents, not native CLI or ACP agents. For a public reverse proxy, configure exact browser origins via OPENPENCIL_WEB_ALLOWED_ORIGINS. Private provider endpoints require a separate exact-origin allowlist via OPENPENCIL_WEB_AI_ENDPOINT_ALLOWLIST. The release notes identify v0.8.4 as addressing the public-relay startup failure in published v0.8.3 builds, v0.8.5 as bringing the Rust editor to Android and iOS, and v0.8.6 as adding canvas motion authoring, shared playback with Jian, interactive HTML export, and browser-local MP4 export.

Rendering: Native GPU Skia via skia-safe; browser rendering via CanvasKit, WASM, and WebGL2
Agent orchestration: Parallel generation of canvas regions with SSE updates and per-agent indicators
Design system: JSON .op files with variable references, theme axes, component overrides, and CSS custom properties
Automation: op design accepts files or stdin; the op-mcp stdio server exposes document editing to external agents
Code handoff: Export targets include React + Tailwind, HTML + CSS, Flutter, SwiftUI, and Jetpack Compose
Motion: v0.8.6 adds timeline scrubbing, keyframe editing, interactive HTML export, and browser-local MP4 export
Best For

Design and frontend teams that want prompt-generated UI to stay editable on the canvas, review .op changes in Git, and automate repeatable work with CLI or MCP.

Skip If

You require verified lossless Figma round-tripping, need native CLI or ACP agents inside the Docker web UI, or must have air-gapped AI generation without separately validating a supported internal model endpoint.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerMCPCLISelf-Hosted
brew tap zseven-w/openpencil
brew trust --tap zseven-w/openpencil
brew install --cask openpencil

Comparison vs. Top Chat UI & AI Apps Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
openpencil ★7.4k+56RustMITRust vector editor for turning prompts into editable, Git-friendly UI designs
MROffice5k+1.5kTypeScriptAGPL-3.0Modular TypeScript office editors with hosted Office-file editing and MCP
AionUi34.7k+123TypeScriptApache-2.0A self-hostable workspace unifying built-in and CLI agents for file-based work
iPolloWork7.6k+23TypeScript—DeepSeek Harness workspace for shared projects, agent teams, and editable work

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/ZSeven-W/openpencil.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

ZSeven-W/openpencil Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about openpencil

How should a developer integrate an agent or automation script?

Use op for scripted edits: it accepts inline input, @filepath, or stdin and can target a running desktop app, a web server, or a headless file-backed server. Use the built-in stdio MCP server (op-mcp) when an MCP client needs to read, create, or modify .op documents. It does not require Node.js. The web SDK is a read-only viewer, not an alternative editing API.

What GPU and memory capacity should we plan for?

No fixed RAM or VRAM requirement is specified. Size native clients for GPU Skia rendering and browser clients for CanvasKit and WebGL2; test with representative documents and assets. The container runs a headless Rust web host, not a bundled inference engine. With external API providers, model inference does not consume local GPU memory; parallel agents still increase concurrent requests and can affect API spending and rate limits.

Can we self-host OpenPencil commercially, and does that keep our design data in-house?

The repository is MIT-licensed, which permits commercial use and self-hosting subject to retaining the required copyright and permission notices. Check the terms of any separately licensed dependencies, assets, and model services you distribute or use. Operating the web host yourself does not keep prompts and attached reference images on premises if you send them to an external provider.

Should a design team move existing Figma projects to OpenPencil?

Run a pilot before switching. OpenPencil is a good candidate when Git-diffable documents, editable agent output, and terminal automation matter more than preserving the existing workflow. The op import:figma command establishes a .fig import path, not lossless round-tripping. Test a representative design with component overrides, layout, fonts, and assets, then review the exported code against your production conventions.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining ZSeven-W/openpencil? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature ZSeven-W/openpencil on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare