Plugin API: Filesystem access


I’m trying to build a UI plugin that can export Figma layouts in a custom JSON-based format, but this seems really finicky with the current plugin API.

To get custom file formats out of Figma, it seems my only option is to pass the file data into the UI thread, bundle that into a .zip file, and then use this trick to save it into my download folder. This means every time I do an export, I have to manually unzip the file and move it from my downloads folder to the correct place.

Instead of this, it would be really convenient for plugins to have access to the File System Access API (window.showSaveFilePicker etc) or something like it.

For context – I’m looking to build UI in Figma and then export it directly into a format that can be consumed by a proprietary game engine.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.