This project demonstrates various implementations and use cases of Farcaster Frames v2, built with Next.js.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the showcase.
- Multiple Frame examples
- Implementation patterns for common use cases
- Integration with Next.js App Router
- TypeScript support
/app
- Main application code and Frame routes/components
- Reusable Frame components/utils
- Helper functions for Frame handling
- Clone the repository
git clone [email protected]:builders-garden/frames-v2-showcase.git
cd frames-v2-showcase
- Install dependencies
npm install
# or
yarn install
- Set up environment variables
Create a
.env.local
file in the root directory with the following variables:
# NextAuth generate your secret with `openssl rand -base64 32`
NEXTAUTH_SECRET="<YOUR_NEXTAUTH_SECRET>"
NEXTAUTH_URL="http://localhost:3000"
NEXT_PUBLIC_URL="http://localhost:3000"
NEYNAR_BASE_URL="https://api.neynar.com/v2"
NEYNAR_API_KEY="<YOUR_NEYNAR_API_KEY>"
TURSO_DATABASE_URL="<YOUR_TURSO_DATABASE_URL>"
TURSO_AUTH_TOKEN="<YOUR_TURSO_AUTH_TOKEN>"
- Start the development server
npm run dev
To learn more about Farcaster Frames: