Is there any way to get file.fig from API or convert JSON FILE to file.fig?

Hello everyone!
I try to use API and can’t find method to get Figma project as file.fig .
I use “save local copy…” to save file.fig and then i can open it from another place.
API provide methods only to get FILE (JSON ) or RENDERED (PNG,JPG) file.

Is there any way to get file.fig from API or convert JSON FILE to file.fig?

5 Likes

is there a way to convert json to fig file?

1 Like

Since there is no official way to do it, I’ve been working on a library to help with that:

It can already do reading/writing of .fig files and has a plugin to help serialize Figma Plugin API data.

The next step would be to transform between the two formats.

1 Like