Plugin Boilerplate

Kickstart your awesome Figma plugin with this boilerplate.
Alternatives To Plugin Boilerplate
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Vimrc29,349
14 days ago7mitVim Script
The ultimate Vim configuration (vimrc)
Awesome Zsh Plugins13,445
7 days ago5bsd-3-clauseShell
A collection of ZSH frameworks, plugins, themes and tutorials.
Awesome Vite11,433
a day ago30mitJavaScript
⚡️ A curated list of awesome things related to Vite.js
Awesome Svg4,355
a year ago12Ruby
A curated list of SVG.
Awesome Xcode Extensions2,947
6 days ago1Ruby
Awesome native Xcode extensions.
Jquery Boilerplate2,55923 years ago1August 25, 201711JavaScript
A jump-start for jQuery plugins development
Awesome Burp Extensions2,555
24 days ago1cc0-1.0
A curated list of amazingly awesome Burp Extensions
Awesome Draft Js2,415
a year ago
Awesome list of Draft.js resources
Zsh Vi Mode2,322
3 days ago1April 14, 202180mitShell
💻 A better and friendly vi(vim) mode plugin for ZSH.
Awesome Musicdsp2,184
15 days ago1cc-by-4.0
A curated list of my favourite music DSP and audio programming resources
Alternatives To Plugin Boilerplate
Select To Compare


Alternative Project Comparisons
Readme

Figma Plugin Boilerplate

Kickstart your awesome Figma plugin with this boilerplate.


Features

  • Modern Javascript (ES6)
  • Tests using Jest
  • Transpiling using Babel and bundle using Rollup
  • Code formatting with Prettier

Code Demo

export default class ExamplePlugin {
  constructor() {
    this.options = [
      "Alert File Name",
      this.main.bind(this),
      null,
      { shift: true, option: true, key: "t" }
    ];

    const { figmaPlugin } = window;
    figmaPlus.createPluginsMenuItem(...this.options);

    window.examplePlugin = this;
  }

  main() {
    const { App, alert } = window;
    const fileName = App.getCurrentFileName();

    alert(fileName);
  }
}

Download & Development

$ git clone https://github.com/figma-plus/plugin-boilerplate
$ yarn install
$ yarn serve
$ yarn test

Build a Distribution Bundle

$ yarn build

You'll see your bundle inside dist directory. Follow the docs instructions to publish it.

License

This project is licensed under the MIT License

Popular Plugin Projects
Popular Awesome List Projects
Popular Libraries Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Plugin
Awesome
Prettier
Rollup