On this page
Overview
plugin-samples is Figma's collection of Plugin API examples. Small Figma and FigJam plugins demonstrate canvas operations, plugin UIs, message passing, Dev Mode, variables, parameters, codegen, and bundled React examples through working source code.
Features and best fit
Based on official documentation; not hands-on tested · Content checked:
Key features
Study small plugins with and without custom UI
Examples cover shape generation, image processing, document statistics, text search, and more, with code.ts and optional ui.html showing how Plugin API logic and UI responsibilities are separated.
Sources: [1]
Find examples for FigJam, Dev Mode, variables, parameters, and codegen
The repository groups examples for FigJam-specific nodes, Dev Mode, variable import/export, parameter input, codegen, and other API surfaces in one place.
Sources: [1]
Best fit
Before adoption
Treat the samples as examples rather than production templates
The README provides the samples AS IS and explicitly asks users to evaluate safety and suitability themselves. Review permissions, network access, error handling, and dependencies before adapting a sample for production.
Sources: [1]
Local plugin testing requires the Figma desktop app
Figma's official Plugin Quickstart requires the desktop app for development and testing from local plugin files. Compiling a sample in a terminal is not the same as validating it as a running plugin.
Sources: [4]
Official sources
- [1]Figma plugin-samples README snapshot(2026-10-04)
- [2]Figma plugin-samples package metadata(2026-10-04)
- [3]Figma plugin-samples MIT license(2026-10-04)
- [4]Figma Plugin Quickstart Guide(2026-10-04)
Supplemental curator note
Treat this repository as a set of API learning and validation examples rather than a production plugin template. Borrow the smallest relevant example and then review permissions, network access, dependencies, and error handling for your own plugin.
Try it in 3 steps
- 1
Fetch the samples at the reviewed commit
The repository has no release tags, so pin the commit reviewed on 2026-10-04.
git clone https://github.com/figma/plugin-samples.git && git -C plugin-samples checkout 03131bef561eb25ee2b704e3b39e40acc70330e0 - 2
Install dependencies and compile the Bar Chart sample
Use the root TypeScript and Figma typings to build the Bar Chart example referenced by the README.
cd plugin-samples && npm install && npx tsc -p barchart/tsconfig.json - 3
Import the manifest in the Figma desktop app
Select
plugin-samples/barchart/manifest.jsonin the Figma desktop app and run it as a development plugin.Plugins > Development > Import plugin from manifest...
Growth
Growth trends · Last 30 days
1,853 Stars
Trend data is still being collected.
Development activity
Last 90 days · weekly
- Commits (last 30 days)
- 0
- Open PRs
- 12
Development activity is still being collected.
Built with
Categories and tags
Categories
GitHub data
GitHub dataView detailed GitHub data
GitHub Topics
- figma
- figma-plugin
- figma-widget
- hacktoberfest
- sample-code
- Stars
- 1,853
- Forks
- 351
- Watchers
- 86
- Open issues
- 7
- Contributors
- 25
- Owner type
- Organization
- Primary language
- TypeScript
- License
- MIT
- Repository last updated
- Mar 23, 2026
Related information
Write a related articleShare a guide or use case for this OSS in Markdown. Articles are published after administrator approval.
Explore next
- JupyterLab15,331 Stars
2 shared tag(s) · 1 shared category(s) · Same language
keep code, explanation, results, and files in one workspace
TypeScript - Ariakit8,622 Stars
2 shared tag(s) · 1 shared category(s) · Same language
build custom React interfaces from unstyled accessibility primitives for dialogs, menus, comboboxes, and other UI patterns
TypeScript - SimpleInstaBot696 Stars
2 shared tag(s) · 1 shared category(s) · Same language
Automate Instagram follow and unfollow actions from an Electron/Puppeteer desktop browser session
TypeScript - Blade653 Stars
2 shared tag(s) · 1 shared category(s) · Same language
share themes, design tokens, and accessible UI components across React Web and React Native
TypeScript - Figma Widget Samples141 Stars
2 shared tag(s) · 1 shared category(s) · Same language
learn collaborative Figma and FigJam widgets from official TypeScript/JSX samples covering synced state and UI integration
TypeScript - typsastra28 Stars
2 shared tag(s) · 1 shared category(s) · Same language
Bring complex-script Typst editing, PDF export, table authoring, and template-based projects into one native desktop workflow
TypeScript
Report incorrect information
Tell us if any listing information is incorrect or outdated.