JavaScript SDK
Generate Figviz diagrams from Node.js or the command line with the official SDK and CLI
The official SDK is a thin, zero-dependency wrapper around the REST API.
It ships both a programmatic client and a figviz CLI. Source and full changelog
live on npm: @figviz/figviz-sdk.
Get an API key
Create a key (new accounts include 3 free credits) at
Settings > API. Figviz is pay-as-you-go — no subscription, and
credits never expire. Every key begins with the fvk_ prefix.
A key spends real credits. Keep it server-side and never ship it in a browser or mobile bundle.