A modern DeFi application template built on Sui blockchain.
- TBD
- Framework: Next.js 15+ with App Router and Turbopack
- Blockchain: Sui blockchain integration via
@mysten/dapp-kit - State Management: Zustand + TanStack Query for optimal data handling
- UI/UX: Radix UI primitives with Tailwind CSS
- Analytics: Amplitude, Microsoft Clarity, GrowthBook A/B testing
- Monitoring: Sentry for error tracking and performance monitoring
- Node.js 18+
- Pnpm package manager
# Clone the repository
git clone <repository-url>
cd sui-dapp-fe-template
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env.local
# Configure your database and API keys in .env.local
# Start development server
pnpm devThe application will be available at http://localhost:3000.
# Development server with Turbopack
pnpm dev
# Build for production
pnpm build
# Start production server
pnpm start
# Run linting
pnpm lintsrc/
├── app/ # Next.js App Router pages and API routes
│ ├── (main)/ # Main application routes
│ └── api/ # Backend API endpoints
├── components/ # React components organized by feature
│ ├── {feature}/ # Feature-specific components
│ ├── shared/ # Cross-feature reusable components
│ ├── ui/ # Base UI components (Radix-based)
│ └── layout/ # Layout and navigation components
├── hooks/ # Custom React hooks for data fetching and mutations
├── stores/ # Zustand stores for app state management
├── libs/ # Utility functions and configurations
└── consts/ # Constants and configuration values
- Sui Wallets: Support for major Sui wallets via dApp Kit
Key environment variables to configure:
# Blockchain
NEXT_PUBLIC_SUI_NETWORK="mainnet" # or "testnet", "devnet"
# Analytics & Monitoring
SENTRY_DSN="https://..."
NEXT_PUBLIC_AMPLITUDE_API_KEY="..."
NEXT_PUBLIC_CLARITY_PROJECT_ID="..."
# Feature Flags
NEXT_PUBLIC_GROWTHBOOK_API_HOST="..."
NEXT_PUBLIC_GROWTHBOOK_CLIENT_KEY="..."The application is optimized for deployment on Vercel with automatic environment detection:
- Environment Detection: Automatic via
VERCEL_ENVor manual viaSENTRY_ENVIRONMENT - Build Process: Next.js optimization
- Performance Monitoring: Sentry integration across all runtime environments
- Analytics: Production-ready tracking and A/B testing infrastructure
- Follow the existing code style and patterns
- Run
pnpm lintbefore committing - Test thoroughly across different wallet connections and network conditions
- Never commit sensitive environment variables
- All user inputs are validated and sanitized
- Smart contract interactions use secure transaction patterns
- Regular security audits by MoveBytes and OtterSec
Private repository - All rights reserved.