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 installPackage Dependencies
The boilerplate includes the following key dependencies:
| @airgap/beacon-dapp | Beacon SDK types and utilities |
| @airgap/beacon-sdk | Multi-wallet connection protocol |
| @taquito/taquito | Tezos JavaScript SDK for blockchain interactions |
| @taquito/beacon-wallet | Beacon wallet adapter for Taquito |
| kukai-embed | Direct Kukai wallet integration |
| zustand | Lightweight state management |
| next | React framework with App Router |
| tailwindcss | Utility-first CSS framework (v4) |
| @radix-ui/react-* | Accessible headless UI components |
| lucide-react | Beautiful 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 browserProject 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