figma-plugin
figma-plugin copied to clipboard
[DX] AsyncMessaging: explore two-way sync
📚 Context
We need better handling of async messages, it's spread across a number of different files instead of being easy to understand. Ideally we'd have a two-way sync that we can call from both the plugin and the controller without a huge overhead.
🛠 Acceptance Criteria
- Explore other libraries and projects that do this well:
- https://github.com/martynaskadisa/figma-comlink
- https://github.com/labXD/trpc-figma
- https://github.com/CoconutGoodie/monorepo-networker
- Discuss and ideate on a plan to replace our current setup
- PoC it and document