A production-ready template for building Farcaster Mini Apps with Next.js 16, React 19, and Tailwind CSS v4.
- Next.js 16 with App Router and SPA shell
- React 19 with React Router
- Tailwind CSS v4
- Farcaster Mini App SDK integration
- TypeScript
- Bun support
# Install dependencies
bun install
# Expose public URL for testing
bun run tunnel
# Set environment variables
echo "NEXT_PUBLIC_HOST=TUNNEL_LINK" > .env
# Run development server
bun run devNEXT_PUBLIC_HOST(required): Your app's origin (e.g.,http://localhost:3000)
bun run dev- Start development server with Turbopackbun run build- Build for productionbun run start- Start production serverbun run lint- Run ESLintbun run tunnel- Start Cloudflare tunnel
app/
api/ # API routes
frontend/ # Client-side SPA
lib/ # Utilities and config
shell/ # SPA shell page
MIT