
Floppy Bird is a canvas-based, forest-themed Flappy Bird-style game built with Next.js. It includes power-ups, quests, cosmetics, local and global leaderboards, and accessibility options.
pnpm installcp .env.example .envMONGODB_URI in .env.pnpm devhttp://localhost:3000.MONGODB_URI (required for global leaderboard)
mongodb+srv://<user>:<password>@<cluster>/<db>?retryWrites=true&w=majorityIf MONGODB_URI is missing or invalid, the global leaderboard endpoints will fail, but the game still runs locally.
Space or Arrow UpSpace/Arrow Up (or touch/hold on mobile)PEscB1 (shield), 2 (slow), 3 (magnet)Base path: /api/scores
GET /api/scores
{ scores: [{ username, score, createdAt }] }POST /api/scores
{ "username": string, "score": number, "coins"?: number }POST /api/scores/check-username
{ "username": string }GET /api/scores/profile?username=<name>
{ exists: boolean, user?: { username, score, coins, createdAt } }Collection: scores
username (string, unique, 2-20 chars, trimmed)score (number)coins (number)createdAt / updatedAt (timestamps)MONGODB_URI in your hosting provider.pnpm buildpnpm startcomponents/floppy-bird.tsxapp/globals.csspublic/assets/themes/public/audio/When replacing assets, ensure you have the correct license/rights to distribute them.
MONGODB_URI and MongoDB network access.pnpm lint and pnpm build to identify issues.AFFILIATE PROGRAM
Join our affiliate program to earn commissions on every sale you refer.