Skip to content

builders-garden/frames-v2-showcase

Repository files navigation

Speedrun frames v2

This project demonstrates various implementations and use cases of Farcaster Frames v2, built with Next.js.

Getting Started

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.

Features

  • Multiple Frame examples
  • Implementation patterns for common use cases
  • Integration with Next.js App Router
  • TypeScript support

Project Structure

  • /app - Main application code and Frame routes
  • /components - Reusable Frame components
  • /utils - Helper functions for Frame handling

Development Setup

  1. Clone the repository
git clone [email protected]:builders-garden/frames-v2-showcase.git
cd frames-v2-showcase
  1. Install dependencies
npm install
# or
yarn install
  1. 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>"
  1. Start the development server
npm run dev

Learn More

To learn more about Farcaster Frames: