Documentation Index
Fetch the complete documentation index at: https://docs.calmtreasury.xyz/llms.txt
Use this file to discover all available pages before exploring further.
Install
react@^18 || ^19 (only if you use the widget).
Drop in the widget
Wrap your app in PrivyProvider
The SDK relies on Privy’s identity tokens. If you’re already using Privy,
skip this step.
Mount CalmProvider + DepositFlow
The Provider bootstraps a session on mount.
<DepositFlow /> renders the
multi-step onboarding flow.Anatomy of a session
The cookie is
HttpOnly, Secure, SameSite=None, and Partitioned. It
lasts an hour. The SDK uses credentials: "include" on every request, so the
cookie attaches automatically — you never see it.Next
State machine
Every step the widget can be in, and how it advances.
Composing your own flow
Bring your own UI with
useCalm() and the individual step components.