> ## Documentation Index
> Fetch the complete documentation index at: https://seilabs-docs-agent-skills-registry-and-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Templates

> Sei dApp templates you can scaffold in one command with @sei-js/create-sei, with wallet connections, Sei network configuration, and TypeScript already set up.

Start a new Sei dApp from a working template instead of a blank folder. The [`@sei-js/create-sei`](/evm/sei-js/create-sei) CLI scaffolds a project with wallet connections, Sei network configuration, TypeScript, and styling already set up.

## Scaffold in one command

<CodeGroup>
  ```bash npx theme={null}
  npx @sei-js/create-sei app -n my-sei-app
  ```

  ```bash bunx theme={null}
  bunx @sei-js/create-sei app -n my-sei-app
  ```
</CodeGroup>

Then install and run the project with Bun:

```bash theme={null}
cd my-sei-app
bun install
bun run dev
```

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

<Columns cols={2}>
  <Card title="Next.js + Wagmi" icon="react" href="/evm/sei-js/create-sei">
    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

    ```bash theme={null}
    npx @sei-js/create-sei app -n my-sei-app
    ```
  </Card>

  <Card title="Precompiles extension" icon="cube" href="/evm/precompiles/example-usage">
    The default template plus a Bank [precompile](/evm/precompiles/example-usage) example that queries the native SEI supply through `@sei-js/precompiles`.

    ```bash theme={null}
    npx @sei-js/create-sei app -n my-sei-precompile-app --extension precompiles
    ```
  </Card>
</Columns>

<Info>
  Run `npx @sei-js/create-sei list-extensions` to see every available extension. The [Scaffold Sei](/evm/sei-js/create-sei) page documents all CLI options and the interactive setup.
</Info>

## What the templates include

<Columns cols={2}>
  <Card title="Wallet connections" icon="wallet">
    RainbowKit with the generic injected browser-wallet connector. WalletConnect-based wallets also need `NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID` in `.env.local`.
  </Card>

  <Card title="Sei network config" icon="network-wired">
    Sei Mainnet (EVM chain ID `1329`) and Sei Testnet (EVM chain ID `1328`), selected with `NEXT_PUBLIC_CHAIN`.
  </Card>

  <Card title="Type safety" icon="square-check">
    End-to-end TypeScript with Wagmi and Viem, so contract calls and ABIs are typed.
  </Card>

  <Card title="Tooling" icon="screwdriver-wrench">
    Tailwind CSS, Mantine UI, and Biome formatting, ready to build on.
  </Card>
</Columns>

<Note>
  **Prerequisites:** Node.js 20 or newer to run the CLI, and Bun 1.3.14 or newer to install and run the generated project.
</Note>

## 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`](https://github.com/sei-protocol/sei-js/tree/main/packages/create-sei). Once it ships in the CLI, it can be listed here.

## Next steps

<CardGroup cols={2}>
  <Card title="Scaffold Sei (CLI reference)" icon="terminal" href="/evm/sei-js/create-sei">
    Every `create-sei` option, extension, and troubleshooting step.
  </Card>

  <Card title="Build a frontend" icon="browser" href="/evm/building-a-frontend">
    Wire Wagmi, Viem, and a wallet into a Sei dApp from first principles.
  </Card>
</CardGroup>
