Rendering Widgets on a Page, through a plugin

I’m trying to standardise the design process in my organization.

My solution is to write a plugin that would render the relevant pages in Figma, and have designers work as per that structure.

Here’s where I’m stuck:

I want to drop a widget inside a Figma page, For example, I would like to drop a Mindmap widget (one I’m happy to write myself) inside the information architecture page, so designers can use that widget to create an IA diagram.

I would also want to drop a cover page widget that lets designers choose from a set of hard-coded projects.

As of now, I’m handling this with the “await Figma.createNodeFromJSXAsync” function. But this only renders nodes and not widgets.

Any help would be appreciated :slight_smile:

This says that we cannot call other widgets, but would it be possible to write one within the plugin?

If you mean that the plugin should do what the widget does—yes, you can. Developer documentation is available here: