openpencil / packages
CLAUDE.md6.1k starsChanged 4 months agoMITView on GitHub
The web SDK packages that remain after the TypeScript retirement. This directory is the npm/Bun workspace root (packages/package.json); the repository root is a pure Cargo workspace with no package.json. The pen-* packages (pen-types, pen-core, pen-engine, pen-renderer, pen-figma, pen-mcp, pen-ai-skills, pen-sdk, pen-react, pen-acp) and pen-codegen were retired along with apps/*. Their functionality now lives in the Rust crates/ (see crates/CLAUDE.md). Nothing here depends on them. The agent-native Zig runtime was also removed — the built-in agent runtime is now the Rust…
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
- CLAUDE.mdCLAUDE.md
- crates/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 9
Run these from packages/:
≈ “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
Packages
The web SDK packages that remain after the TypeScript retirement. This directory is the npm/Bun workspace root (packages/package.json); the repository root is a pure Cargo workspace with no package.json.
The
pen-*packages (pen-types, pen-core, pen-engine, pen-renderer, pen-figma, pen-mcp, pen-ai-skills, pen-sdk, pen-react, pen-acp) and pen-codegen were retired along withapps/*. Their functionality now lives in the Rustcrates/(seecrates/CLAUDE.md). Nothing here depends on them. Theagent-nativeZig runtime was also removed — the built-in agent runtime is now the Rustagentcrate (vendor/agent, shared with Zode).
Workspace tooling
Run these from packages/:
- Lint / format the SDK:
bun run lint(oxlint, plus the extension's extractor drift check) /bun run format(oxfmt). - Iconify catalog (Rust assets):
bun run generate-iconify-catalog—scripts/generate-iconify-catalog.mjsreads@iconify-json/*and writescrates/op-editor-ui/assets/iconify-catalog-{core,brands}.json(the icon catalog embedded in / served by the Rust web target). - Sync SDK versions:
bun run sync-versionreads the canonical version from rootCargo.tomland updates all SDK consumers; verify withbun run sync-version:check.
op-web-sdk (op-web-sdk/)
Read-only OpenPencil .op viewer SDK for the web, wasm-backed. Wraps the op-host-web CanvasKit wasm bundle behind a small JS/TS embedding API (mount / load .op / viewport control / zoom-to-fit). Replaces the public role of the retired pen-react (viewing only — editing is not a goal of the public SDK).
- Zero runtime dependencies; ships its own wasm under
wasm/. - Build:
tsup(bun run buildinside the package). Tests:vitest.
op-web-sdk-react (op-web-sdk-react/)
React 19 adapter for op-web-sdk (component + hooks wrapper). Depends only on @zseven-w/op-web-sdk (+ peer react / react-dom).
op-web-sdk-vue (op-web-sdk-vue/)
Vue 3 adapter for op-web-sdk. Depends only on @zseven-w/op-web-sdk (+ peer vue).
op-chrome-extension (op-chrome-extension/)
Manifest V3 Chrome extension that captures the rendered active tab and
imports it into a running OpenPencil. No dependencies, not a Bun workspace
member — load it unpacked from chrome://extensions.
- The logic is Rust.
crates/op-chrome-extension-core(endpoint rules, chunked-transfer integrity,/mcpenvelope + reply classification, download-name sanitisation) compiles to wasm;packages/op-chrome-extension/scripts/build-wasm.shrunscargo build --target wasm32-unknown-unknown+wasm-bindgen --target weband installs the shim + module intoop-chrome-extension/wasm/, which is gitignored like every other wasm-bindgen output in the repo. Build it before "Load unpacked" — the popup reports an actionable error otherwise. Unit-test the logic natively withcargo test -p op-chrome-extension-core. - The JS that remains is glue:
chrome.*calls,fetch, popup DOM, and the functions injected into the captured tab (which must be JS — they run in the page's process). The manifest declares'wasm-unsafe-eval'incontent_security_policy.extension_pages, which is what MV3 requires to instantiate a bundled.wasm; no code is fetched from outside the package. - The capture engine is
vendor/snapshot-extractor.js, a byte-identical copy ofcrates/op-html/assets/snapshot-extractor.js(the contractop_html::import_snapshotparses).bun run lintrunsop-chrome-extension/scripts/check-extractor-sync.sh, which fails on drift;--fixre-copies the canonical asset. Never edit the copy. - The live MCP endpoint exposes two extension-scoped REST capabilities. Snapshot
import uses
POST /api/import/web-snapshot(insert-only and open to a well-formedchrome-extension://origin unless explicitly pinned), with a plain/mcptools/call import_web_snapshotfallback for unmanaged--serve-web. Intelligentdesign.mdextraction uses a stricter asynchronousPOST /api/generate/design-md+ GET/DELETE job flow: it accepts only bounded style evidence and queues model work only for an extension id explicitly paired throughOPENPENCIL_EXTENSION_ALLOWED_IDSand a cancellable, evidence-only built-in API provider; tool-capable CLI/ACP adapters are not eligible. The extension generates a deterministic local guide when pairing or compatible model generation is unavailable. Seesnapshot_ingest.rsanddesign_md_route.rsundercrates/op-host-services/src/mcp_live/. The extension's offline path is Download .op, which converts the capture locally into a ready-to-open document. - Account (optional). The popup header can sign in to OP Hub through the
hub's own BFF: a tab on
GET /api/v1/auth/login?return_to=/account, thenGET /api/v1/sessionwithcredentials: 'include'. The extension is a public client — no SSO secret, no token, nocookiespermission; the hub'sHttpOnlysession cookie stays in the browser's jar. Regionscn/globalmap tohttps://op.zseven.cn/https://op.zseven.tech, both inhost_permissions, andaccount.rsasserts the manifest agrees. - Account delivery (optional, signed in).
POST <hub>/api/v1/snapshotswithcredentials: 'include'+X-CSRF-Token, i.e. op-hub's per-user snapshot inbox. The envelope, the page-title-derived name, the 32 MiB ceiling and the reply classification are Rust (hub.rs/hub_reply.rs);delivery.rsremains the single rule that decides local vs account, and an expired session collapses to local. The service worker's element-pick flow runs its own session probe (account.jsis in the worker's static graph and stays dynamic-import-free). Contract history:op-chrome-extension/docs/hub-inbox-api-proposal.md. - Store packaging.
bun run package-extension(orop-chrome-extension/scripts/package-extension.sh) builds the wasm, runs the tests and all four guards, stages only the runtime files, copiespttopt_BR/pt_PTfor Chrome's manifest-locale lookup, and writesop-chrome-extension/dist/op-chrome-extension-<version>.zip(gitignored). The listing's privacy policy isop-chrome-extension/docs/privacy-policy.md.
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.

