figma-sdk-patterns
Installation
SKILL.md
Figma SDK Patterns
Overview
Production patterns for the Figma REST API (external tools) and Plugin API (in-editor plugins). Figma has no official Node.js SDK -- you call https://api.figma.com directly with fetch. These patterns give you type safety, error handling, and reusable abstractions.
Prerequisites
FIGMA_PATenvironment variable set- TypeScript 5+ project
- Understanding of Figma node types
Instructions
Step 1: Typed REST API Client
// src/figma-client.ts
export class FigmaClient {
private baseUrl = 'https://api.figma.com';