Getting Started
Clone the template, install dependencies, and build your first plugin in under 5 minutes.
Prerequisites
You need three things installed on your computer:
- Bun (version 1.4.2 or later) — a fast JavaScript runtime and package manager
- Node.js (version 22.22.1 or later) — used by the release tooling and the docs site; Bun runs everything else
- Figma desktop app — plugins can only be tested in the desktop app, not the browser
Step 1: Clone the template
Open your terminal and run:
git clone https://github.com/bromso/figma-plugin-template.git
cd figma-plugin-templateStep 2: Install dependencies
bun installThis downloads all the libraries the template needs. It takes about 10-30 seconds.
Step 3: Build the plugin
bun run buildThis creates the plugin files that Figma can load. You'll see output showing the build succeeded.
Step 4: Test in Figma
See Testing in Figma for how to load your plugin into the Figma desktop app.
Step 5: Start developing
For active development with auto-rebuilding:
bun run devThis watches your files and rebuilds automatically when you make changes.
Using AI to build your plugin
If you have Claude Code, open this project and describe what you want:
"I want a plugin that renames all selected layers to lowercase"
Claude will generate the code, build it, and guide you through testing. See Using Claude for more examples.
Available commands
| Command | What it does |
|---|---|
bun run dev | Watch mode — rebuilds on changes |
bun run build | One-time production build |
bun run test | Run all tests |
bun run lint | Check code style |
bun run storybook | Browse UI components interactively |