Packages
| Package | What it does | When to use |
|---|---|---|
@keystoneos/react | React hooks and provider (headless) | You want full UI control with your own components |
@keystoneos/react-ui | Pre-built styled components | You want drop-in widgets that just work |
@keystoneos/elements-core | Framework-agnostic core | You’re not using React, or building a custom integration |
@keystoneos/node | Server-side helpers | Creating session tokens, handling webhooks |
Integration Tiers
Elements supports three integration patterns depending on how your platform handles custody and signing:Tier 1: View-Only
Your backend handles everything via the SDK and webhooks. The frontend only displays settlement status.Tier 2: Interactive + Custody (Most Common)
The widget collects user decisions (confirm, deposit). Deposit execution routes through your backend to a custody provider like Fireblocks or BitGo.Tier 3: Full Self-Service
End-users connect their own wallets. The widget handles on-chain transactions directly via wagmi.How It Works
Getting Started
Install and set up your first integration in 5 minutes.
Hooks Reference
Full API reference for all React hooks.