@figranium/sdk. It ships parallel ESM and CommonJS builds with bundled TypeScript declarations, so most projects need no additional configuration.
Requirements
- Node.js
18or newer (for the built-in globalfetch), or a modern browser. - A running Figranium server that the client can reach at its
baseUrl. Local installs default tohttp://localhost:11345.
Install
Import styles
The SDK works with bothimport and require.
Verify the install
Callhealth.check() to confirm the SDK can reach your Figranium server.
verify.ts
status: "ok".
Browsers and bundlers
The SDK issideEffects: false, so bundlers like Vite, webpack, esbuild, and Rollup tree-shake unused resources. See Authentication for how to pass an API key.
Next steps
Quickstart
Save and run your first task with the SDK.
Client configuration
Configure
baseUrl, timeouts, custom fetch, and default headers.