figma-load-scale

Featured

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".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 ```javascript // figma-load-test.js 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: { // Test 1: Find your rate limit ceiling rate_limit_probe: { executor: 'constant-arrival-rate', rate: 10, // 10 requests per second timeUnit: '1s', duration: '2m', preAllocatedVUs: 5, maxVUs: 20, }, }, thresholds: { figma_errors: ['rate<0.10'], // Less than 10% errors figma_latency: ['p(95)<3000'], // P95 under 3 seconds http_req_duration: ['p(99)<5000'], // P99 under 5 seconds }, }; const PAT = __ENV.FIGMA_PAT; const FILE_KEY = __ENV.FIGMA_FILE_KEY; export default function () { // Use a lightweight endpoint for rate limit testing const res = http.get( `https://api.figma.com/v1/files/${FILE_KEY}?depth...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category