Skip to main content

Getting Started

Platform Overview

Understand the Figma developer platform — plugins, widgets, REST API, webhooks, and Code Connect.

The Figma developer platform gives you multiple ways to extend and integrate with Figma. Choose the right tool for your use case.

Platform Components

Plugins run inside the Figma editor and can manipulate the document, create UI panels, and respond to user actions.

Best for: Custom tools, importers/exporters, lint rules, design automations.

// A simple plugin that renames the selected node
figma.currentPage.selection.forEach(node => {
  node.name = "Renamed by Plugin";
});
figma.closePlugin("Done!");

Choosing the Right Approach

Extend the editor?

Use Plugins for in-editor tools, or Widgets for canvas-based interactivity.

Build external integrations?

Use the REST API for data access and the Webhooks for real-time events.

Architecture Overview

The Figma developer ecosystem is built on these layers:

LayerTechnologyAccess
Plugin APITypeScript, runs in sandboxEditor context
Widget APIReact-like JSX, declarativeCanvas context
REST APIHTTP/JSONServer-side
WebhooksHTTP callbacksServer-side
Code ConnectCLI + config filesLocal development

Plugins and widgets run client-side in a sandboxed environment within Figma. The REST API and webhooks are server-side integrations that require authentication.

Key Concepts

Every Figma file is structured as a tree of nodes. Understanding the node hierarchy is essential for working with any part of the platform:

  • Document — The root node
  • Page — Top-level canvas containers
  • Frame — Layout containers (like div in HTML)
  • Component — Reusable design elements
  • Instance — A linked copy of a component
  • Text, Rectangle, Ellipse — Primitive nodes

Start with the Quickstart to build your first plugin, or jump to the REST API overview if you’re building a server-side integration.