A simple, addictive mini game built with MiniKit that runs inside Farcaster Frames.
In Tap to Earn, players tap a button as quickly as possible to earn points within a 30-second time limit. The game features:
- Core Mechanic: Tap the button to increment your score
- Timer: Each game session lasts 30 seconds
- Score Display: Real-time score tracking
- Wallet Connection: Connect your Coinbase Wallet to save scores on-chain
- Leaderboard: See the top 10 scores globally
- Notifications: Get alerts for milestones and high scores
- Visual Feedback: Button animations enhance the tapping experience
- Framework: Next.js
- Styling: TailwindCSS
- Blockchain Integration: MiniKit on Base
- Database: Upstash Redis for the leaderboard
- Clone this repository
- Install dependencies:
npm install - Set up your environment variables in
.env - Run the development server:
npm run dev
This project uses Upstash Redis for storing leaderboard data. To set it up:
- Create an account at Upstash
- Create a new Redis database
- Add your Redis URL and token to the
.envfile
Deploy on Vercel:
vercel deploy
MIT
This project was created using MiniKit, a toolkit for building mini apps on Base, an Ethereum Layer 2 blockchain.