Yes, Figma plugins have their own dedicated local storage system called figma.clientStorage
, which is specifically designed for plugin data persistence[1].
Plugin-Specific Storage: Each plugin gets its own isolated storage space that other plugins cannot access[1]. The data is specific to your plugin ID, ensuring complete separation between different plugins[1].
Storage Capacity: Each plugin receives 5MB of total storage space[1]. You can estimate usage by adding the size of keys plus their JSON-converted values[1].
Asynchronous API: Unlike regular localStorage
, Figma's clientStorage
uses asynchronous methods[1]:
figma.clientStorage.setAsync(key, value)
- Store data