Post
Share your knowledge.

*Choosing the Right SDKs and Tools for Your Sui Project 🚀*
Are you building a web dApp, backend indexer, or mobile app on Sui? 🤔 With multiple SDKs and tools available, selecting the right ones can be overwhelming. In this article, we'll guide you through the process, providing a quick mapping of SDKs to use cases, project scaffolds, and integration patterns.
SDKs and Use Cases 📚
- TypeScript SDK (
@mysten/sui,@mysten/sui.js): Perfect for:- Web apps and React frontends 🌐
- Quick proofs of concept 🤔
- Node backends that don't require heavy native performance 📦
- dApp wallet integrations and PTB building 💼
- Rust SDK & crates (
sui-core,sui-sdkcrates): Ideal for:- Validators and high-performance backend services ⚡️
- Off-chain services that need speed and low-level control 🔧
- Integration with native systems 🤖
- Mobile (Swift/Kotlin community SDKs): Use community libraries, but verify maintenance and compatibility before production 📱
Project Scaffolds 🏗️
- Web dApp (React + TS SDK): npx create-react-app my-sui-dapp --template typescript cd my-sui-dapp npm i @mysten/sui
Use dApp Kit or SDK examples for a head start 🚀
- Backend Indexer (Rust):
- Start from Sui repo examples or
sui-sdkcrate docs - Set up a service that consumes RPC events or scans transactions and writes to a database for fast reads 📊
- Start from Sui repo examples or
Development Tooling 🛠️
- Testing:
sui move testfor Move unit tests; test locally to avoid publishing until ready 🔒 - Local Devnet:
suiscripts to run single-node or multi-node devnets for integration testing 🌐 - CI: Include
sui move buildandsui move testin CI to catch Move-specific compile errors early 🚨
When to Choose Rust vs TypeScript 🤔
- TypeScript: Fast iteration, many web libraries, and easy wallet integration 🌟
- Rust: Low-latency processing, native bindings, or validator-level tooling 🔩
Get Started Today 🎉
Check out the Sui docs and GitHub repo for more information and resources:
- TypeScript SDK docs and quickstart 📚
- Sui repo & Rust tooling 🤖
By following this guide, you'll be well on your way to building a successful Sui project 🚀. Happy building!
- Sui
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
- How to Maximize Profit Holding SUI: Sui Staking vs Liquid Staking616
- Why does BCS require exact field order for deserialization when Move structs have named fields?65
- Multiple Source Verification Errors" in Sui Move Module Publications - Automated Error Resolution55
- Sui Move Error - Unable to process transaction No valid gas coins found for the transaction419
- Sui Transaction Failing: Objects Reserved for Another Transaction410