openpencil
CLAUDE.md6.1k starsChanged 4 months agoMITView on GitHub
The TypeScript OpenPencil has been retired. apps/web, apps/desktop, apps/cli, and the pen-* packages (pen-types/core/engine/renderer/figma/mcp/ai-skills/sdk/react/acp) are gone. The product is now implemented in Rust (crates/) with a thin wasm-backed web SDK (packages/op-web-sdk*). Historical // ported from pen-* comments in the Rust sources name the retired TS as their origin — that code no longer exists in-tree; consult git history (last TS tag v0.7.5) if you need it. Detailed module docs load automatically in subdirectories: Tooling is Cargo (Rust — the product).…
Trending
Quiet since September.about the whole repository
Who's talking about ZSeven-W/openpencil
- @github-trending-rs.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 ZSeven-W / openpencil ⭐ 5,049 (+146) 🗒 Rust The world's first …”Bluesky · Aug 16, 2026 · 5 likes
- A Hacker News story“OpenPencil: Open-source AI-native vector design tool”Hacker News · Mar 23, 2026 · 5 points
- @epicvibecoder.bsky.social“type a prompt, watch real UI appear on the canvas. openpencil: open-source, ai-native design tool where …”Bluesky · Jul 23, 2026 · 4 likes
- A Hacker News story“OpenPencil: Open-source vector design tool controlled by AI Agents”Hacker News · Feb 25, 2026 · 4 points
- @github-trending-rs.bsky.social“📦 ZSeven-W / openpencil ⭐ 4,591 (+32) 🗒 Rust The world's first open-source AI-native vector design tool …”Bluesky · Aug 4, 2026 · 3 likes
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on GitHub, Bluesky and Hacker News (23 times).
On GitHub · 13
- Sep 29, 2026Add OpenPencil — AppImage/appimage.github.io0 reactions · 1 comment
- Sep 25, 2026[Inhalt] Rotation 25.09.2026: 25 Steckbriefe geprüft — Doebele/agents0 reactions
- Sep 21, 2026[Kreuzprüfung · kimi] Preise 2026-09-21: 24 Steckbriefe geprüft (Osaurus, ComfyUI, IONOS VPS geändert) — Doebele/agents0 reactions
- Sep 7, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Sep 7, 2026[开源推荐] 可生成和编辑界面的开源矢量设计工具 — 521xueweihan/HelloGitHub0 reactions
8 more on GitHub
- Sep 3, 2026[Kreuzprüfung] Preise von 25 Steckbriefen nachgelesen: LM Studio, Ollama und OpenDesign verkaufen inzwischen Abos, Paperclips Managed Cloud gehört nicht dem Projekt — Doebele/agents0 reactions · 8 comments
- Aug 31, 2026[Kreuzprüfung] Preise: 23 von 25 Steckbriefen beim Anbieter nachgelesen, Hetzner und Kimi Code nicht belegbar — Doebele/agents0 reactions · 2 comments
- Aug 31, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 2 comments
- Aug 27, 2026[Kreuzprüfung] Preise: 24 von 25 Steckbriefen an der Quelle nachgelesen (Codex, Ollama, LM Studio, Hostinger, IONOS, Netlify, Lambda, Modal u. a.) — Doebele/agents0 reactions · 2 comments
- Aug 24, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Aug 17, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions · 1 comment
- Mar 24, 2026Miniflux Digest · AI 信息 · 2026-03-24 — urzz/repo_for_report0 reactions
- Mar 9, 2026Consider integrating with Pencil — ufira-ai/Vibma0 reactions · 1 comment
On Bluesky · 6
- Aug 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ZSeven-W / openpencil ⭐ 5,049 (+146) 🗒 Rust The world's first open-source AI-native vector design tool… — @github-trending-rs.bsky.social5 likes and reposts
- Jul 23, 2026type a prompt, watch real UI appear on the canvas. openpencil: open-source, ai-native design tool where agent teams turn prompts into… — @epicvibecoder.bsky.social4 likes and reposts
- Aug 4, 2026📦 ZSeven-W / openpencil ⭐ 4,591 (+32) 🗒 Rust The world's first open-source AI-native vector design tool and the first to feature… — @github-trending-rs.bsky.social3 likes and reposts
- Aug 12, 2026📦 ZSeven-W / openpencil ⭐ 4,772 (+32) 🗒 Rust The world's first open-source AI-native vector design tool and the first to feature… — @github-trending-rs.bsky.social2 likes and reposts
- Aug 11, 2026ZSeven-W / openpencil: The world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams.… — @rusttrending.bsky.social1 likes and repost
1 more on Bluesky
- Jun 30, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 ZSeven-W / openpencil ⭐ 3,727 (+129) 🗒 TypeScript The world's first open-source AI-native vector… — @github-trending-js.bsky.social1 likes and repost
On Hacker News · 4
- Mar 23, 2026OpenPencil: Open-source AI-native vector design tool5 points
- Feb 25, 2026OpenPencil: Open-source vector design tool controlled by AI Agents4 points · 2 comments
- Feb 28, 2026Show HN: OpenPencil - Open-source vector design tool controlled by AI Agents2 points · 2 comments
- Feb 25, 2026Show HN: OpenPencil – An open-source, AI-native vector design tool1 point
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- crates/CLAUDE.mdCLAUDE.md
- packages/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
Use Conventional Commits: <type>(<scope>): <subject>
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
The TypeScript OpenPencil has been retired.
apps/web,apps/desktop,apps/cli, and thepen-*packages (pen-types/core/engine/renderer/figma/mcp/ai-skills/sdk/react/acp) are gone. The product is now implemented in Rust (crates/) with a thin wasm-backed web SDK (packages/op-web-sdk*). Historical// ported from pen-*comments in the Rust sources name the retired TS as their origin — that code no longer exists in-tree; consult git history (last TS tagv0.7.5) if you need it.
Detailed module docs load automatically in subdirectories:
crates/CLAUDE.md— Rust shell: crate layout, editor core, widgets, hosts (native/web/desktop), MCP, AI, orchestrator, codegen. The canonical architecture doc.packages/CLAUDE.md— Remaining packages (op-web-sdk web viewer SDK family).
Commands
Tooling is Cargo (Rust — the product). The root has no package.json; the JS/Bun tooling for the web SDK lives under packages/ — run SDK/JS scripts from there.
- Web dev server (Rust):
bash scripts/start-web-rust.sh - Build (Rust):
cargo build --workspace --release - Run all tests (Rust):
cargo test --workspace; single crate:cargo test -p <crate> - Type check:
cargo check --workspace; wasm:cargo check --target wasm32-unknown-unknown -p op-host-web --no-default-features --features web - Lint / format (Rust):
cargo clippy --workspace --all-targets -- -D warnings/cargo fmt --all - Lint / format (remaining TS SDK): from
packages/:bun run lint(oxlint) /bun run format(oxfmt) - Desktop app:
cargo build -p op-host-desktop→ binaryopenpencil-desktop(live MCP on127.0.0.1:<port>/mcp) - CLI:
cargo build -p op-cli→ binaryop - MCP server: built into the desktop/web host (
--mcp <path>); crateop-mcp - Iconify catalog (Rust assets): from
packages/:bun run generate-iconify-catalog - Sync all managed versions:
scripts/sync-version.shreads the canonical version from rootCargo.toml; verify without writing viatools/check-version-sync.sh
Architecture
OpenPencil is an open-source, AI-native vector design tool (Design-as-Code). The editor — canvas engine, chrome, stores, MCP, AI — is Rust, built on the vendored jian skia/widget/render/event toolkit (vendor/jian) and casement winit fork (vendor/casement). See crates/CLAUDE.md for the authoritative crate map; the essentials:
crates/
├── op-editor-core/ Canonical `.op` (PenDocument) editor state + EditorCommand + design-variable resolution
├── op-editor-ui/ Platform-free widgets + RenderBackend facade (wasm32-clean)
├── op-editor-host-core/ Transport-free host state machines shared by all hosts
├── op-host-native/ Native host lib (winit + skia-safe GL) — desktop + mobile
├── op-host-web/ Browser bundle: wasm32 cdylib, CanvasKit renderer
├── op-host-desktop/ Desktop binary `openpencil-desktop`; also the `--serve-web` daemon
├── op-host-services/ Headless serve-web / MCP daemon lib (shared by desktop + web-server)
├── op-host-web-server/ Thin GL-free web-server binary
├── op-cli/ `op` command-line tool
├── op-util/ Dependency-free leaf: hex-colour parsing + JSON / XML escaping
└── op-mcp / op-ai / op-ai-skills / op-codegen / op-orchestrator / op-figma /
op-git / op-opmerge / op-pen-loader / op-design-lint / op-i18n / op-html /
op-auth-bridge / op-smoke / …
packages/
├── op-web-sdk/ Read-only `.op` web viewer SDK (wraps the op-host-web wasm bundle)
├── op-web-sdk-react/ React 19 adapter for op-web-sdk
└── op-web-sdk-vue/ Vue 3 adapter for op-web-sdkData flow, canvas engine, Document/EditorCommand model, MCP layered-design workflow, design variables, and the run/debug recipe are all documented in crates/CLAUDE.md.
Code Style
- Single files must not exceed 800 lines — split into smaller modules when they grow beyond this. The workspace currently has zero violations; the convention is a spine (public surface +
moddeclarations) plus sibling files, with re-exports keeping import paths stable. - One component/widget per file, single responsibility.
.rsfilenames use snake_case;.ts/.tsx(SDK) use kebab-case.- Source comments (
.rs/.ts/.toml) in English (spec/plan markdown + test CJK fixtures may keep Chinese). - Rust widgets paint against jian's
Painter;draw_textis baseline-relative (label components center viacentered_text_baseline_y, not(h-fs)/2).
Git Commit Convention
Use Conventional Commits: <type>(<scope>): <subject>
Types: feat, fix, refactor, perf, style, docs, test, chore
Scopes: editor, canvas, panels, history, ai, codegen, store, types, variables, figma, mcp, desktop, web, renderer, sdk, cli, agent, i18n
Rules: Subject in English, lowercase start, no period, imperative mood. Body optional; explain why not what. One commit per change.
License
MIT License. See LICENSE for details.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

