Relayer ships five public packages on npm. Pick the ones that match what you’re building.Documentation Index
Fetch the complete documentation index at: https://docs.relayer.fi/llms.txt
Use this file to discover all available pages before exploring further.
At a glance
| Package | Use it when | Detail |
|---|---|---|
@relayerfi/widget-kit-react | You’re building a React app and want the prebuilt swap / transfer / bridge UI | React component library |
@relayerfi/widget-kit-native | Same, but for React Native | Native components |
@relayerfi/widget-kit-core | You’re building a custom widget for a framework that isn’t React | Framework-agnostic core logic |
@relayerfi/action-kit | You’re generating widget action metadata server-side or want to validate metadata schemas | Metadata builder + validator |
@relayerfi/agent-sdk | You’re running an AI agent that needs budget enforcement and x402 payments | Agent runtime SDK |
Widget Kit (React)
The prebuilt React widget for end-user swap, transfer, and bridge flows. Renders the UI, manages wagmi connectivity, and orchestrates signing in both Metadata Mode (user’s own wallet) and Passkey Signing Mode.Widget Kit (Native)
The same UI patterns as Widget Kit (React) but for React Native — drop into your mobile app.Widget Kit (Core)
Framework-agnostic core logic shared bywidget-kit-react and widget-kit-native. Use directly if you’re building a custom widget for Vue, Svelte, or any other framework that isn’t covered.
Action Kit
TypeScript library for building and validating widget action metadata. Defines the action schema, validates payloads before submission, and provides template helpers for common parameter types (token amounts, chain selectors, recipient addresses).Agent SDK
The runtime SDK for AI agents you operate via Relayer. Handles three-layer budget enforcement (infra / tokens / payments), x402 payment execution, kill-switch polling, and event reporting. Mastra-compatible.Source code
All packages are open source under the relayerfi GitHub organization:Widget Kit packages
Mono-repo for
@relayerfi/widget-kit-react, widget-kit-core, widget-kit-native, and action-kit.Agent SDK
Source for
@relayerfi/agent-sdk lives in packages/ of the Relayer monorepo.