Parse and render Figma .fig and .deck files
programmatically.
npm install openfig-cli
Read Figma's binary format directly. Extract nodes, styles, components, and layout data without the API.
Programmatically create and render Figma Slides presentations as images, ready for export.
Use as a command-line tool or import directly into Node.js projects. ESM-native, no bundler required.
Use the Claude Cowork plugin to create and edit Figma Slides presentations through natural conversation.
import { loadDeck } from 'openfig-cli'; // Load a Figma Slides .deck file const deck = await loadDeck('presentation.deck'); // Slides are 1-indexed const slide = deck.getSlide(1); console.log(`Title: ${slide.title}`); console.log(`Slides: ${deck.slideCount}`); // Render to PNG const png = await slide.render(); await fs.promises.writeFile('slide-1.png', png);
The OpenFig Claude Cowork plugin lets you create and edit Figma Slides presentations through conversation. Describe what you want — the AI builds it, powered by OpenFig under the hood.
Install from GitHub marketplace