Skip to main content
Start a new Sei dApp from a working template instead of a blank folder. The @sei-js/create-sei CLI scaffolds a project with wallet connections, Sei network configuration, TypeScript, and styling already set up.

Scaffold in one command

Then install and run the project with Bun:
Open http://localhost:3000. The dApp connects to Sei Mainnet unless .env.local sets NEXT_PUBLIC_CHAIN=testnet. Copy the template’s .env.example to .env.local to use Sei Testnet.

Templates

Next.js + Wagmi

The default template: a Next.js App Router dApp with typed wallet connections and contract reads and writes.Stack: Next.js 15 · React 19 · Wagmi 2 · Viem 2 · RainbowKit 2 · TanStack Query 5 · Tailwind CSS 4 · Mantine 8 · Biome 2 · TypeScript

Precompiles extension

The default template plus a Bank precompile example that queries the native SEI supply through @sei-js/precompiles.
Run npx @sei-js/create-sei list-extensions to see every available extension. The Scaffold Sei page documents all CLI options and the interactive setup.

What the templates include

Wallet connections

RainbowKit with the generic injected browser-wallet connector. WalletConnect-based wallets also need NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID in .env.local.

Sei network config

Sei Mainnet (EVM chain ID 1329) and Sei Testnet (EVM chain ID 1328), selected with NEXT_PUBLIC_CHAIN.

Type safety

End-to-end TypeScript with Wagmi and Viem, so contract calls and ABIs are typed.

Tooling

Tailwind CSS, Mantine UI, and Biome formatting, ready to build on.
Prerequisites: Node.js 20 or newer to run the CLI, and Bun 1.3.14 or newer to install and run the generated project.

Contribute a template

Templates ship as part of @sei-js/create-sei. To add one, such as a DeFi starter, an NFT mint, or an x402 payments dApp, open a pull request in sei-protocol/sei-js. Once it ships in the CLI, it can be listed here.

Next steps

Scaffold Sei (CLI reference)

Every create-sei option, extension, and troubleshooting step.

Build a frontend

Wire Wagmi, Viem, and a wallet into a Sei dApp from first principles.