Skip to content

A Figma example plugin with Polar License Key support

Notifications You must be signed in to change notification settings

polarsource/polar-figma

Repository files navigation

polar-figma

Polar Figma

A simple example of how to use Polar License Key validation in a Figma plugin.

The complete guide can be found here

Development

Import this plugin into Figma using "Import Manifest". Run the following command to start the development server:

pnpm run dev

Configuration

Organization ID

Replace ORGANIZATION_ID in src/ui/main.tsx with your actual organization ID. It can be found in your Polar Organization Settings page.

Server Environment

Set the server parameter in src/ui/polar.ts to "sandbox" to use the sandbox server for development. Switch this to "production" (or omit the parameter) when you're ready to go live.

Manifest

It is very important to allow the plugin to access the Polar API. You can allow this by adding the following to the networkAccess section in manifest.json:

"networkAccess": {
	"allowedDomains": ["https://*.polar.sh"]
}

This allows the plugin to validate license keys using the Polar API server.

About

A Figma example plugin with Polar License Key support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published