figma-core-workflow-b

Featured

Export images, icons, and assets from Figma files via the REST API. Use when building an asset pipeline, exporting icons as SVG/PNG, or rendering frames to images for documentation or previews. Trigger with phrases like "figma export", "figma images", "export figma icons", "figma assets", "figma render".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Figma Core Workflow B -- Asset Export ## Overview Export images, icons, and assets from Figma files using the REST API. Render specific nodes as PNG, SVG, JPG, or PDF. Build automated asset pipelines for icons, illustrations, and component previews. ## Prerequisites - Completed `figma-install-auth` setup - Node IDs of the frames/components to export (from `figma-hello-world`) - `FIGMA_PAT` and `FIGMA_FILE_KEY` env vars set ## Instructions ### Step 1: Render Nodes as Images ```typescript const PAT = process.env.FIGMA_PAT!; const FILE_KEY = process.env.FIGMA_FILE_KEY!; // GET /v1/images/:file_key?ids=X,Y&format=png&scale=2 // Supported formats: png, svg, jpg, pdf // Scale: 0.01 to 4 (SVG always exports at 1x) // Max image size: 32 megapixels (larger images are auto-scaled down) async function exportImages( nodeIds: string[], format: 'png' | 'svg' | 'jpg' | 'pdf' = 'png', scale = 2 ): Promise<Record<string, string | null>> { const params = new URLSearchParams({ ids: nodeIds.join(','), format, scale: String(format === 'svg' ? 1 : scale), // SVG is always 1x }); const res = await fetch( `https://api.figma.com/v1/images/${FILE_KEY}?${params}`, { headers: { 'X-Figma-Token': PAT } } ); if (!res.ok) throw new Error(`Image export failed: ${res.status}`); const data = await res.json(); // data.images: { "nodeId": "https://..." | null } // null means the node failed to render (invisible, 0% opacity, or invalid ID) // URLs expire after...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category