Install
"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
ProvideBuffer and process (for example with buffer and process/browser through webpack.ProvidePlugin), and
load the kit only on the client:
Create the kit
Create oneHotKit 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
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.