Skip to content

davestewart/figma-messaging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Figma Messaging

Messaging library for Figma plugin developers

loading

Example of processing spinner in Figma Variables Starter.

Overview

Figma Messaging is a two-way, await-able and type-safe replacement for Figma's Messaging API.

It has a simple but powerful API and can be used in both main and ui processes:

// actions
const handlers = {
  create () { ... },
  update () { ... },
  ...
}

// incoming
const bus = makeBus(handlers)

// outgoing
bus.call('fooify', 'foo', 123, true)

Additionally, TypeScript users can opt-in to full auto-complete functionality, including:

handler ids:

screenshot

handler parameters:

screenshot

handler responses:

screenshot

Figma Messaging provides robust messaging capabilities for any Figma Plugin with a build step.

Next steps

About

Messaging library for Figma plugin developers

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published