plugma icon indicating copy to clipboard operation
plugma copied to clipboard

Implement a message handler between UI and main.js

Open LukeFinch opened this issue 1 year ago • 4 comments

I feel like this would be a good option to have in the templates, for a quick starter.

Figma's AI template has an interesting implementation.

I know we've tried other implementations in the past, such as the ones in my Vue3 template, and create-figma-plugin

LukeFinch avatar Jul 03 '24 14:07 LukeFinch

I agree. I've been thinking about this and I have something planned. Stay tuned.

gavinmcfarland avatar Jul 03 '24 21:07 gavinmcfarland

This is a work-in-progress version of a message handler. It's not been packaged yet and I'm still tweaking it's usage.

https://github.com/gavinmcfarland/figma-msgr

gavinmcfarland avatar Aug 20 '24 15:08 gavinmcfarland

Hey, take a look at the message bus (almost done) and the RPC packages I created for the figma-sdk

svallory avatar Jan 18 '25 12:01 svallory

I'm using Figwire and I love it. Everything is async, type-safe, and handles request rejections well when an error is thrown. Setting up a bare-bones Zustand store makes for a great bridge for reactive backend-to-frontend communication.

DigitalNaut avatar Aug 23 '25 23:08 DigitalNaut