Programmatically Creating Components in Figma

Hi everyone,

I’m interested in exploring the possibilities of creating Figma components programatically. While I understand the current Figma Platform API is read-only, I’m wondering if there are any workarounds or future plans to enable programmatic component creation.

Here are some specific questions I have:

  • Are there any existing unofficial methods or tools for creating components through scripting or API calls?
  • Is there a roadmap for the Figma API to include functionalities for component creation in the future?
  • For those who have experience with Figma’s plugin development, are there potential approaches using plugins to achieve a similar outcome (e.g., generating component code or structures)?

I’ve looked at some resources like the Figma API documentation and discussions about the Platform API’s capabilities, but I haven’t found anything conclusive regarding programmatic component creation.

Any insights or workarounds you can share would be greatly appreciated!

You’re looking for Figma.createComponent and Figma.createComponentFromNode

1 Like

Does this mean I can create FigJam diagrams?