llms.txt
@mysten/sui v2.0 and a new dApp Kit are here! Check out the migration guide
Mysten Labs SDKs

Sui dApp Kit

Build Sui apps with framework-agnostic core and React bindings.

Coming from the original @mysten/dapp-kit package? Follow the migration guide.

The Sui dApp Kit provides tools and components for building decentralized applications on the Sui network. The SDK consists of two packages that work together:

Packages

@mysten/dapp-kit-core

Framework-agnostic core that works with vanilla JS, React, Vue, or any framework:

  • Action-based API for direct wallet operations
  • Web Components for universal UI elements
  • Automatic state management with nanostores
  • Smaller bundle size and improved performance

@mysten/dapp-kit-react

React bindings for the core package:

  • React hooks for state and actions
  • React component wrappers for Web Components
  • Seamless integration with React applications

Install

Choose the installation method based on your framework:

For React applications

npm i @mysten/dapp-kit-react @mysten/sui

Vanilla JavaScript and other frameworks

npm i @mysten/dapp-kit-core @mysten/sui

Getting started

Check the framework-specific guides:

On this page