openpencil/packages/cli
Danila Poyarkov 1a22005960
refactor(core): use es-toolkit for diff tool collection helpers (#854)
The patch applier, page and attribute name merging, and diff visual's option filtering hand-rolled pickBy, difference, uniq, union, and omitBy.
2026-10-03 23:19:56 +04:00
..
bin build: publish node-compatible packages 2026-05-21 17:03:19 +03:00
src refactor(core): use es-toolkit for diff tool collection helpers (#854) 2026-10-03 23:19:56 +04:00
tests feat: add visual diff and patch apply tools and openpencil diff (#810) 2026-10-03 21:00:13 +04:00
AGENTS.md docs: route contributors through per-domain guides and ship npm license text (#785) 2026-09-29 01:02:06 +04:00
package.json refactor(core): use es-toolkit for diff tool collection helpers (#854) 2026-10-03 23:19:56 +04:00
README.md docs: route contributors through per-domain guides and ship npm license text (#785) 2026-09-29 01:02:06 +04:00
tsconfig.json feat(cli): import DOM/CSS documents 2026-06-30 10:48:13 +03:00
tsdown.config.ts feat: add Figma-style variants and component libraries (#512) 2026-08-14 19:31:41 +03:00

@open-pencil/cli

Headless command line for OpenPencil and .fig files: inspect documents and layers, query with XPath, export to PNG, JPG, WEBP, SVG, PDF, PPTX, JSX, HTML, or .fig, import HTML/CSS/Tailwind, lint design files, analyze and extract design tokens, and script documents with a Figma Plugin API-compatible figma global through eval.

npm install -g @open-pencil/cli   # or: bun add -g @open-pencil/cli
openpencil --help
openpencil eval design.fig -c "return figma.currentPage.children.length"

Inspection commands support --json for automation. The MCP server ships separately as @open-pencil/mcp.

MIT License.