Notion acts as a headless CMS for your plugin — powering in-app announcements and onboarding screens. Content is managed in Notion databases, fetched via the Notion API through a Cloudflare Worker, and displayed directly inside your plugin.
To enable Notion CMS in your project, you need three things:
unoff create figma-plugin.env.local file:VITE_NOTION_API_KEY=your-notion-api-key
VITE_NOTION_ANNOUNCEMENTS_ID=your-announcements-database-id
VITE_NOTION_ONBOARDING_ID=your-onboarding-database-id
unoff add announcement-worker
npm install
VITE_NOTION_API_KEY<aside> ⚠️
In local development, the API key is read from your .env.local file. In production, store it as a Cloudflare Worker secret with wrangler secret put NOTION_API_KEY — never expose it in client-side code.
</aside>
Unoff provides two ready-to-use Notion database templates. Duplicate them into your workspace: