Tezos LogoTezos Boilerplate

Tezos Wallet Boilerplate Docs

Installation

Get started with the Tezos Wallet Boilerplate in your Next.js project.

Prerequisites

Before you begin, make sure you have the following installed:

  • Node.js 18+ or Bun runtime
  • Git for version control
  • A code editor (VS Code recommended)

Clone the Repository

Using Git

# Clone the repository
git clone https://github.com/your-username/nextjs-tezos-wallet-boilerplate.git

# Navigate to the project directory
cd nextjs-tezos-wallet-boilerplate

# Install dependencies
bun install
# or
npm install

Package Dependencies

The boilerplate includes the following key dependencies:

@airgap/beacon-dappBeacon SDK types and utilities
@airgap/beacon-sdkMulti-wallet connection protocol
@taquito/taquitoTezos JavaScript SDK for blockchain interactions
@taquito/beacon-walletBeacon wallet adapter for Taquito
kukai-embedDirect Kukai wallet integration
zustandLightweight state management
nextReact framework with App Router
tailwindcssUtility-first CSS framework (v4)
@radix-ui/react-*Accessible headless UI components
lucide-reactBeautiful icon library

šŸ”„ Auto-Installation

All dependencies are automatically installed when you run bun install or npm install. No additional setup required for wallet providers!

Development Server

Start the development server

# Start the development server
bun dev
# or
npm run dev

# Open http://localhost:3000 in your browser

Project Structure

nextjs-tezos-wallet-boilerplate/
ā”œā”€ā”€ app/                       # Next.js 15 App Router
│   ā”œā”€ā”€ docs/                 # Documentation pages
│   ā”œā”€ā”€ globals.css           # Global styles with Tailwind
│   ā”œā”€ā”€ layout.tsx            # Root layout with providers
│   └── page.tsx              # Main application page
ā”œā”€ā”€ components/               # React components
│   ā”œā”€ā”€ layout/              # Layout components
│   │   ā”œā”€ā”€ Header.tsx       # Navigation header
│   │   └── connect/         # Wallet connection components
│   ā”œā”€ā”€ providers/           # React providers
│   │   └── wallet-provider.tsx  # Wallet initialization
│   ā”œā”€ā”€ ui/                  # shadcn/ui components
│   ā”œā”€ā”€ contract-playground.tsx  # Smart contract interaction
│   ā”œā”€ā”€ tez-faucet.tsx       # Testnet token faucet
│   └── ...                  # Other dApp components
ā”œā”€ā”€ lib/                     # Utilities and configuration
│   ā”œā”€ā”€ tezos/              # Tezos-specific code
│   │   ā”œā”€ā”€ store/          # Zustand state management
│   │   │   └── walletStore.ts  # Wallet state store
│   │   └── useTezos.tsx    # Main Tezos hook
│   ā”œā”€ā”€ constants.ts        # App constants
│   └── utils.ts            # Utility functions
ā”œā”€ā”€ public/                 # Static assets
ā”œā”€ā”€ package.json           # Dependencies and scripts
ā”œā”€ā”€ tailwind.config.ts     # Tailwind CSS 4 configuration
ā”œā”€ā”€ components.json        # shadcn/ui configuration
└── next.config.mjs        # Next.js configuration

šŸ—ļø Architecture Highlights

  • • App Router: Uses Next.js 15 App Router for optimal performance
  • • Provider Pattern: WalletProvider handles global wallet state
  • • State Management: Zustand for lightweight, performant state
  • • Auto-Restoration: Wallet connections persist across refreshes

Next Steps

šŸ”§ Configuration

Configure network settings and RPC endpoints

Configure your app →

🧩 Components

Learn about the available components

Explore components →