Prerequisites
| Requirement | Version |
|---|---|
| Figma Desktop | Latest |
| Node.js | ≥ 18 |
| npm | ≥ 9 |
Sideload the plugin
Install plugin dependencies
Navigate to the plugin folder and install dependencies:This installs
@figma/plugin-typings and TypeScript.Build the plugin
code.ts → code.js. You should see no errors.For live rebuilding during development:Import into Figma Desktop
- Open Figma Desktop
- Go to Plugins → Development → Import plugin from manifest…
- Select:
- The plugin now appears under Plugins → Development → GoalGen Creator
Development workflow
After editing
code.ts, run npm run build (or keep npm run watch running) and then reload the plugin in Figma: Plugins → Development → GoalGen Creator → Reload plugin.TypeScript configuration
The Figma plugin sandbox has a limited JS engine. The project is configured specifically to work within those constraints:tsconfig.json
Network access
The plugin is pre-configured for GoalGen API and OAuth calls:manifest.json
fetch() calls from within the plugin UI to domains outside this list will be blocked by Figma.