Skip to main content
Solved

Why are plugins JS if Figma core is Wasm?

  • February 20, 2023
  • 1 reply
  • 913 views

I’m curious as to why Figma made the decision for the environment for running plugins in Figma/FigJam and the code of plugins themselves are JavaScript, rather than a language that compiles to WebAssembly (SWIFT, Go, C, etc) since the rest of the Figma/FigJam applications are Wasm based?

Best answer by Pavel_Kiselev

Web assembly is for heavy tasks, like rendering. Everything else does not seem to be very practical in wasm. JS for plugins makes it very accessible for everyone to create stuff

This topic has been closed for replies.

1 reply

Pavel_Kiselev
  • Power Member
  • Answer
  • February 20, 2023

Web assembly is for heavy tasks, like rendering. Everything else does not seem to be very practical in wasm. JS for plugins makes it very accessible for everyone to create stuff