A Next.js Web3 app template.
- β‘ React 19 - Latest React with improved performance and hydration
- π¨ Chakra UI v2 - Accessible component library
- π Web3 Integration - Wallet connection via Reown AppKit
- π° Ethereum Support - Send transactions with Ethers.js v6
- π On-chain Referrals - Smart contract-based referral system
- π³ Stripe Subscriptions - $1/month subscription system
- π€ AI Chat - Integrated Claude AI assistant
- π Wallet Generator - Secure local wallet creation and message signing
- π Multi-language - i18n support for 10+ languages
- π± Responsive - Mobile-first design
- π§ Build Tracking - Real-time build status and version detection
- Frontend: Next.js 15, React 19, TypeScript
- UI: Chakra UI v2, Framer Motion 12
- Web3: Ethers.js v6, Reown AppKit
- Backend: Next.js API routes, Stripe
- AI: Anthropic Claude API
- Build: ESBuild, PNPM
- Node.js: 18+ (recommended: 20+)
- PNPM: Latest version
- Environment: Browser with Web3 wallet support
pnpm i
Create a .env
file:
cp .env.template .env
Add your own keys in the .env
file:
NEXT_PUBLIC_PROJECT_ID=your_reown_project_id # Get yours at https://cloud.reown.com/
STRIPE_SECRET_KEY=sk_test_your_stripe_key
STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
NEXT_PUBLIC_APP_URL=http://localhost:3000
ANTHROPIC_API_KEY=your_claude_api_key
OPERATOR_PRIVATE_KEY=your_operator_wallet_private_key # For referral contract
Then start the development server:
pnpm dev
Change the app name and details in these files:
package.json # name, version, description
src/app/metadata.ts # title, description, SEO
src/context/index.tsx # Web3 metadata
src/components/Header.tsx # Navigation and branding
src/translations/index.ts # Multi-language content
Edit supported networks in src/context/index.tsx
:
networks: [
sepolia, // Default testnet
optimism,
base,
arbitrum,
// Add or remove networks as needed
]
- Create an account at Reown Dashboard
- Create a new project
- Copy your Project ID to
.env
- Create
.well-known/walletconnect.txt
in yourpublic
folder - Add your verification details from Reown dashboard
- Ensure it's accessible at:
your-domain/.well-known/walletconnect.txt
- Create a Stripe account
- Get your API keys from the Stripe dashboard
- Set up webhook endpoints for subscription events
- Add all keys to your
.env
file
- Get an Anthropic API key
- Add to
.env
asANTHROPIC_API_KEY
- Customize the AI behavior in
src/app/api/chat/route.ts
- Smart contract deployed on OP Sepolia
- Gasless referral registration via API
- Shareable referral links:
/referral/[wallet-address]
- Powered by Claude (Anthropic)
- Custom system prompts
- API endpoint:
/api/chat
- Secure client-side wallet generation
- Encrypted private key storage in IndexedDB
- Message signing and verification
- No private keys leave the browser
- $1/month via Stripe
- Webhook integration for subscription events
- Wallet-based user identification
- Real-time build status monitoring
- Automatic build ID extraction from webpack chunks
- GitHub integration for checking latest commits
- Visual indicators for up-to-date vs outdated builds
- Click to refresh build status
- Tooltip showing current vs latest commit info
Supports 10 languages:
- English, δΈζ, ΰ€Ήΰ€Ώΰ€¨ΰ₯ΰ€¦ΰ₯, EspaΓ±ol, FranΓ§ais
- Ψ§ΩΨΉΨ±Ψ¨ΩΨ©, বাΰ¦ΰ¦²ΰ¦Ύ, Π ΡΡΡΠΊΠΈΠΉ, PortuguΓͺs, Ψ§Ψ±Ψ―Ω
pnpm build
pnpm lint
pnpm format
npx tsc --noEmit
This app can be deployed to:
- Vercel (recommended for Next.js)
- Netlify
- Railway
- Any platform supporting Next.js
Make sure to:
- Set all environment variables
- Configure domain verification for Reown
- Set up Stripe webhooks with your production URL
src/
βββ app/ # Next.js 13+ app directory
β βββ api/ # API routes
β β βββ chat/ # AI chat endpoint
β β βββ referral/ # Referral system
β β βββ subscription/ # Stripe integration
β βββ chat/ # AI chat page
β βββ referral/ # Referral system
β βββ subscribe/ # Subscription pages
β βββ wallet/ # Wallet generator
βββ components/ # Reusable UI components
βββ context/ # React contexts (Web3, i18n)
βββ hooks/ # Custom React hooks
βββ translations/ # i18n translations
βββ utils/ # Utility functions
βββ buildDetector.ts # Build tracking and GitHub integration
βββ i18n.ts # Internationalization utilities
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
- React 19 - Latest React features
- Next.js 15 - React framework
- Chakra UI v2 - UI component library
- Ethers.js v6 - Ethereum library
- Reown AppKit - Web3 wallet connection
- Stripe API - Payment processing
- Anthropic Claude - AI integration
Feel free to reach out to Julien on Farcaster, Element, Status, Telegram, Twitter, Discord, or LinkedIn.