Skip to main content

Install

React 18 or 19 is a peer dependency: the kit renders its popups with React even when your app does not use it. The package is ESM only ("type": "module") and needs Node.js 20.10 or newer for tooling and server use.

Bundler setup

Some chain SDKs the kit depends on use Node built-ins (Buffer and friends), so the browser bundle needs polyfills.

Vite

vite.config.ts

webpack / Next.js

Provide Buffer and process (for example with buffer and process/browser through webpack.ProvidePlugin), and load the kit only on the client:

Create the kit

Create one HotKit per app, at module level, and reuse it everywhere.
kit.ts
defaultConnectors covers EVM, NEAR, Solana, TON, Stellar, TRON, Sui, Aptos, Starknet, XRP and UTXO chains. Each chain’s code is a separate chunk loaded on demand: see Connectors.

Connect and react to wallets

HotKit is a MobX store: kit.wallets, kit.priorityWallet, kit.evm, kit.near and the balances are observable. In React, wrap the components that read them in observer from mobx-react-lite:

Open the built-in UI

See UI for presentation, theming and customization.

Server side

On Node.js import the headless parts only: @hot-labs/kit/core and the chain entry point you sign with. They do not touch window and pull no React code.
More in Intents.