| name | figma-load-scale |
| description | Load test Figma API integrations and plan for scale.
Use when benchmarking API throughput, testing rate limit behavior,
or planning capacity for high-volume Figma integrations.
Trigger with phrases like "figma load test", "figma scale",
"figma benchmark", "figma capacity", "figma throughput".
|
| allowed-tools | Read, Write, Edit, Bash(k6:*), Bash(node:*) |
| version | 1.6.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","figma"] |
| compatibility | Designed for Claude Code |
Figma Load & Scale
Overview
Test and plan for the throughput limits of your Figma API integration. Figma's rate limits use a leaky bucket algorithm -- this skill helps you find the bucket size for your plan tier and design your integration to stay within it.
Prerequisites
- k6 load testing tool (
brew install k6 or apt install k6)
- Figma test PAT (do not load test with production token)
- A test Figma file (not your production design system)
Instructions
Step 1: k6 Load Test Script
import http from 'k6/http';
import { check, sleep } from 'k6';
import { Rate, Trend } from 'k6/metrics';
const figmaErrors = new Rate('figma_errors');
const figmaLatency = new Trend('figma_latency', true);
export const options = {
scenarios: {
rate_limit_probe: {
executor: 'constant-arrival-rate',
rate: 10,
timeUnit: '1s',
duration: '2m',
preAllocatedVUs: 5,
maxVUs: 20,
},
},
: {
: [],
: [],
: [],
},
};
= __ENV.;
= __ENV.;
() {
res = http.(
,
{
: { : },
: { : },
}
);
figmaLatency.(res..);
isError = res. !== ;
figmaErrors.(isError);
(res, {
: r. === ,
: r. !== ,
: r.. < ,
});
(res. === ) {
retryAfter = (res.[] || );
.();
(retryAfter);
} {
();
}
}