Skip to content
AddHunt
Figma plugins

Plugma

CLI toolkit for building and bundling Figma plugins

Open source

  • Open source
  • Licence: MIT

In short

Plugma is an open-source command-line toolkit for developing, bundling and releasing Figma plugins with React, Svelte, Vue or plain JavaScript and TypeScript. It is for developers who want a ready development setup instead of configuring a plugin build by hand.

What you get

  • Project scaffolding with npm create plugma
  • Dev server with hot reloading
  • Minified production builds via Vite
  • Browser preview for cross-browser testing
  • Release command synced with GitHub releases
  • React, Svelte, Vue and vanilla JS/TS support

The details

Plugma takes care of the setup work around Figma plugin development. A new project starts with npm create plugma@latest, and the toolkit supports React, Svelte, Vue and vanilla JavaScript or TypeScript, so the plugin interface can be written with a familiar framework.

Commands

  • plugma dev runs a local server with hot reloading of the plugin interface
  • plugma build outputs a minified production bundle ready to publish on the Figma Community
  • plugma release handles versioning and keeps Figma plugin releases in step with GitHub releases

Testing and debugging

Plugins can be previewed in a regular browser to check behaviour across browsers before release. Preview, testing and debugging sit in one place, with shortcuts for clearing data, minimizing windows and opening developer tools.

Environments and output

Projects can move between staging, production and testing setups without editing configuration by hand. Builds are powered by Vite, which bundles and inlines assets into the plugin output.

Plugma is released under the MIT license, and the documentation includes notes on what changed in its second major version.

Alternatives to Plugma

Questions

Is Plugma a Figma plugin?

No. It is a development toolkit and CLI that helps developers build, bundle and release their own Figma plugins.

Which UI frameworks does Plugma support?

React, Svelte and Vue, as well as plain JavaScript or TypeScript.

How do I start a new project?

Run npm create plugma@latest, then use plugma dev, plugma build and plugma release during development.

More like this