@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. In the browser, use a session-authenticated client ({ session: true }) so cookies are sent. See Authentication.
Next steps
Quickstart
Save and run your first task with the SDK.
Client configuration
Configure
baseUrl, timeouts, custom fetch, and default headers.