Reference · 01

SDK reference.

Every public API, with its defaults and failure behavior. Flower is unreleased: APIs and storage formats may still change.

Install the SDK and CLI
npm install @flower-js/sdk
npx flower --help
APIContract
@flower-js/sdkEverything for writing an application: declarations, contexts, JSON helpers, plus the client. Safe to bundle.
@flower-js/sdk/clientThe HTTP client for calling Flower from Node or a browser.
@flower-js/sdk/temporalExpiring records and worker leases.
@flower-js/sdk/schedulerDelayed callbacks with retries.
@flower-js/sdk/cryptoNaCl and JWT, for use inside deployed application code only.
@flower-js/sdk/http2Pooled HTTP/2 transport for the client. Node only; keep it out of application bundles.
@flower-js/sdk/bundleBuild tools. Node only; keep them out of application bundles.
@flower-js/sdk/package.jsonPackage metadata. Importing internal SDK files isn’t supported.
  • The SDK and CLI need Node 22.18+. The server is a separate Rust binary and doesn’t need Node.
  • npx flower is the SDK’s CLI, not the server. In a checkout, the server is ./target/release/flower. Run npm ci and npm run build first.
  • Source: sdk/ on GitHub.

All reference pages