Prerequisites
Sideload the plugin
1
Clone the monorepo
2
Install plugin dependencies
Navigate to the plugin folder and install dependencies:This installs
@figma/plugin-typings and TypeScript.3
Build the plugin
code.ts → code.js. You should see no errors.For live rebuilding during development:4
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
5
Run the plugin
Open any Figma file, select a frame, then:Right-click → Plugins → Development → GoalGen CreatorThe plugin panel opens on the right side. Select a frame on the canvas to activate the export UI.
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.