Get Started
Fastest path: send a Figma design URL to the free cloud convert API. You need a Figma personal access token so the server can read the file — Calque itself requires no key.
curl -sS -X POST https://calque.flowsrun.com/v1/convert \
-H 'content-type: application/json' \
-H "X-Figma-Token: $FIGMA_TOKEN" \
-d '{
"figma_url": "https://www.figma.com/design/FILE_KEY/Name?node-id=4368-321208",
"markup": "react",
"style": "tailwind"
}' -o result.json
| URL part | Meaning |
|---|---|
FILE_KEY | Figma file key |
node-id=4368-321208 | Target frame (API form 4368:321208) |
{
"files": [
{ "path": "Banner/Banner.tsx", "content": "export function Banner() { ... }\n" }
],
"stats": { "nodes": 1, "loops": 0, "fileCount": 1 },
"markup": "react",
"style": "tailwind"
}
Write each files[i].content to files[i].path under your output directory. Do not restructure “for style” unless the user asks — output is intentional and deterministic.
Plugin dump, single node, or array of nodes:
curl -sS -X POST https://calque.flowsrun.com/v1/convert \
-H 'content-type: application/json' \
--data-binary @design.json \
-o result.json
bun run calque scan-index --repo ./src --out calque.index.jsonindex / index_json in the convert body, or use CLI --index / --repoDetails: Design-system mapping.
curl -sS -X POST https://calque.flowsrun.com/v1/check \
-H 'content-type: application/json' \
--data-binary @design.json
Success: { "ok": true, "message": "determinism ok …" }