Dataset
Figma design file datasets for AI training
A Figma dataset is an export of the design files a business made in Figma: pages and frames as a node tree, components and component sets, the instances that reuse them, styles, variables, auto layout settings, prototype interactions, comments and version history. SourceX sources it to a buyer's spec from established businesses that design their products in Figma, with the library files behind the product files in scope. Each dataset is de-identified and licensed for an agreed permitted use, and it is not delivered before a signed agreement.
Dataset manifest
Sourced to your spec- What it is
- A business's Figma files as node trees, with the library files that publish their components, styles and variables
- Typical systems
- Figma Design files and team libraries, FigJam boards, Dev Mode annotations and branches, on the plans that include them
- Typical history
- Specified by the buyer; bounded by the version history the team's plan keeps and by the named versions designers saved
- Modality
- Node-tree JSON with layout and component references; rendered frames and image fills; comment text
- Delivery formats
- Agreed per order; REST API JSON per file key, variable collections as JSON, PNG or SVG renders, comments and versions as JSONL
- Preparation
- Users keyed; real customer data in mockups removed; unreleased work screened; fonts, icon sets and community files listed with their licenses
- Licensing
- Rights reviewed per file and library, including agency work made for clients; permitted use set in the license
- Availability
- Sourced to your spec by product type, platform and library maturity; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| file_key | string | Stable pseudonym for the File key from the file's URL, reused wherever another File refers to it. |
| document | object | The document node with its Pages as CANVAS nodes and the Frames, text and vector nodes under them, each with a node ID. |
| components_map | object | The File's components map: each Component's node ID, key, name, Component set and the remote flag for a Component that does not live in this File. |
| component_property_definitions | object | On each Component set or standalone Component, the properties it defines, of types such as variant, boolean, text and instance swap, with default values. |
| instance_ref | object | On each Instance, the componentId it points to, its componentProperties values and its list of overridden fields. |
| auto_layout | object | Auto layout settings on a Frame: layoutMode, itemSpacing, padding, alignment, and each child's fixed, hug or fill sizing. |
| style_refs | object | The Styles a node uses for fill, text, effect or grid, by style ID, resolved through the File's styles map. |
| bound_variables | object | For each node property bound to a Variable, the variable ID, with collection, modes and values by mode where delivered. |
| interactions | array | Prototype interactions on a node: trigger, action, destination node and transition. |
| comments | array | Comments on the File: message, the node ID or canvas position each is pinned to, parent comment, resolved time and user key. |
| versions | array | Entries from Version history: version ID, created time, label and user key, marking which were pulled in full. |
| branch | object | For a Branch, its own key and name and the main File it belongs to. |
| renders | array | Images of top-level Frames rendered by the API at pull time, and image fills downloaded by image reference. |
Field names from the table above; values are masked placeholders.
Example record
{
"file_key": "file_8d21c4",
"file_name": "Billing web",
"version": {
"id": "ver_20417",
"label": "Invoices v3 for dev",
"created_at": "2024-05-21T14:08:33Z",
"user": "user_06"
},
"page": {
"id": "0:1",
"name": "Invoices"
},
"frame": {
"id": "412:1873",
"type": "FRAME",
"name": "Invoice list / Empty state",
"auto_layout": {
"layoutMode": "VERTICAL",
"itemSpacing": 24,
"paddingTop": 32,
"primaryAxisAlignItems": "MIN",
"counterAxisAlignItems": "CENTER"
},
"bound_variables": {
"itemSpacing": {
"id": "VariableID:var_c07",
"name": "space/600"
}
},
"children": [
{
"id": "412:1874",
"type": "TEXT",
"characters": "No invoices yet",
"layoutSizingHorizontal": "FILL"
},
{
"id": "412:1880",
"type": "INSTANCE",
"name": "Button",
"instance_ref": {
"componentId": "87:1021",
"componentProperties": {
"Variant": "Primary",
"State": "Default",
"Label#2041:0": "Create invoice",
"Show icon#2041:3": false
},
"overrides": [
"characters"
]
},
"layoutSizingHorizontal": "HUG",
"interactions": [
{
"trigger": "ON_CLICK",
"action": "NODE",
"navigation": "NAVIGATE",
"destination": "412:1990"
}
]
}
]
},
"components_map": {
"87:1021": {
"key": "cmp_5f0e2b",
"name": "Variant=Primary, State=Default",
"component_set": "Button",
"remote": true,
"resolved": true
}
},
"comments": [
{
"node_id": "412:1880",
"message": "Label should match the nav item, New invoice.",
"user": "user_02",
"resolved_at": "2024-05-22T15:02:44Z"
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Compose screens from an existing design system
Instances with their property values show how one team builds screens from its own components, the constraint a design assistant has to respect.
Translate designs to code
Auto layout settings correspond to flex layout, component properties to props and variables to tokens, structured input for design-to-code models.
Learn how components are parameterized
Component sets with variant, boolean, text and instance swap properties record how designers define a button, a table row or a modal.
Review and critique designs
Comments pinned to node IDs, with replies and a resolved time, tie feedback to one element.
Evaluate agents that edit Figma files
Named versions before and after a change give start and end states for tasks such as swapping a variant.
Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents
What makes this data valuable
Libraries delivered with products
Remote component keys resolve to component nodes in delivered library files.
Screens built from instances
Most elements are instances with property values, and few are one-off frames.
Variables bound and defined
Fills, spacing and radii carry boundVariables, and the collections with their modes are in the delivery.
Auto layout throughout
Frames state direction, spacing and child sizing instead of absolute positions.
Named versions and branches
Designers saved labeled versions at handoff points, and branches show reviewed changes.
Comments pinned to nodes
Review threads point at node IDs that exist in the delivered version.
Document stack
Figma dataset
Two IDs behind every instance, and what the file overwrites
A Figma file is one tree. The document node holds pages, which the API calls CANVAS nodes, and under them frames, groups, text and vectors, each with a node ID that is unique only inside that file. A reusable element is a COMPONENT node, and its variants are sibling components under a COMPONENT_SET, named by their property values, such as Variant=Primary, State=Hover. Every use on a screen is an INSTANCE node whose componentId points at the component, and which records the property values chosen and the fields overridden on it. Layers inside an instance get IDs built from the instance's ID and the matching layer's ID in the main component, so each can be traced to its origin.
Reuse across files runs on a second identifier, the component's key. A product file that uses a library's component lists it in its own components map with that key and a remote flag, which says the component does not live in this file. The product file states that a button is the library's button without holding its definition. Layout and tokens sit on the nodes just as explicitly. An auto layout frame carries layoutMode, itemSpacing and padding, each child says whether it is fixed, hugs or fills, and boundVariables names the variable behind a fill or a gap. Older files do the same job with styles, and many teams have both.
The file is a current state. An instance shows the library as of the last update a designer accepted, so product files trail their library by different amounts. Earlier states live in version history, as autosaved checkpoints and the versions people named, for as long as the team's plan keeps them, and branches hold proposed changes until they are merged.
What the REST API returns, and what stays in the library file
Figma offers two ways out. A local copy saved from the app is a .fig file, a proprietary binary meant to be opened in Figma again, without comments or version history. A dataset is built through the REST API. A file request returns the whole node tree as JSON with the components, component sets and styles maps. Other requests render chosen nodes as PNG, JPG, SVG or PDF, resolve image fills to download URLs that expire, list comments with the node or canvas position each is pinned to, and list versions, any of which can then be fetched as a full tree. Vector outlines come only when geometry is requested, and fonts are named, never embedded.
The gaps follow from the two IDs. For a remote component the file gives the key and name but not the node, so its variants, property definitions and inner layers are missing unless the library file that published it is delivered too. The instance is still typed INSTANCE, yet in the data it is cut off from its source. The same holds for variables. A node's boundVariables holds IDs, while collections, modes and values come from separate variables requests that Figma limits to certain plans. Of the two, the request for published variables returns no modes, so values by mode have to be read with the local variables request on the library file. Ask how variables were captured.
Test a sample by resolving it. For each instance, look up its componentId in the components map. Where the entry is remote, find the key in a delivered library file, and count the share that resolve. Do the same for style and variable IDs. Check that image fills arrived as files and how far back the version list goes.
What to check before licensing
- Check Figma's terms on use of customer content and its API terms with the data owner and your counsel, for the intended use of exported files.
- List every library the product files draw on, using the remote entries in each file's components and styles maps, and confirm each library file is in scope.
- On the sample, count the instances whose componentId resolves to a component node in the delivery, and the bound variable IDs that resolve to a delivered variable.
- Check the licenses of the fonts, icon sets and community files used in the designs, from a list that names each one and the license it was obtained or published under.
- For work an agency made for its clients, check who owns it: ask for the client's written release and which Figma team the files sat in.
- Check frames for real customer data and pasted production screenshots, and ask how unreleased features were screened.
- Ask whether the pull used the REST API or saved .fig copies, and whether comments, branches and earlier versions were captured.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
In what format is Figma data delivered?
Usually as the JSON the REST API returns for each file, with rendered images of the frames beside it. The JSON holds the node tree with component, style and layout properties. A saved .fig file is a proprietary binary meant to be imported into Figma again, and it holds no comments or version history, so it is a poor base for parsing.
Why do library files have to be in scope?
Because product files point to components they do not contain. An instance of a library component carries an ID, and the file lists that component's key and name, but the component itself, with its variants, property definitions and layers, is in the library file that published it. Without that file the reuse structure cannot be rebuilt.
Are variables and styles included?
Styles are, and variables depend on how they were captured. The file lists each style's name and type, and each node says which style it uses. Variable bindings appear on nodes as IDs, but collections, modes and values come from a separate request that is available only on certain Figma plans. Ask whether variable definitions are in the delivery.
How much version history comes with a file?
As much as the team's plan kept and the pull captured. The API lists a file's versions with dates, labels and authors, and each version can be fetched as a full node tree. Specify named versions, or versions at set intervals, for selected files. Branches are separate files with their own keys and have to be requested.
Are FigJam boards part of a Figma dataset?
Only if you ask for them. FigJam boards are files of a different editor type, made of sticky notes, shapes with text and connectors, and they record workshops and flows, not interface structure. They tend to hold more names, opinions and unreleased plans than design files do, so they need closer review.
Is SourceX affiliated with Figma?
Figma is named to identify the system the records come from. That does not imply a partnership with or endorsement by Figma. The records belong to the business that runs Figma, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- UI and product design files with design systems
Editable product design files with components, tokens, prototypes, comments and version history
- Front-end code paired with design files
Design frames linked to the shipped UI code that implements them, with tokens, review comments and renders
- UI screenshots with element annotations
Interface screenshots with per-element bounds, role, name and state taken from the application itself
- Miro boards
Boards from a business's Miro teams with their frames, sticky notes, shapes, connectors, cards, text, images and tags, each item with coordinates
- Adobe Creative Cloud source files
Editable source files from several Adobe applications, with the links between them, the assets they place and their embedded XMP metadata
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.