Implement a message handler between UI and main.js
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
I agree. I've been thinking about this and I have something planned. Stay tuned.
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
Hey, take a look at the message bus (almost done) and the RPC packages I created for the figma-sdk