Skip to content

ren2140eth/basepaint-mini

Repository files navigation

BasePaint Mini

A Farcaster Mini App for minting BasePaint daily editions on Base — straight from your feed, with referral kickbacks routed through BasePaint's on-chain referral contract on every mint.

Live: https://basepaint-mini.vercel.app

Features

  • 🎨 Mint the current BasePaint daily edition in-app
  • 💸 Referral kickbacks earned on-chain for each mint
  • 🟣 Signed Farcaster manifest — renders as a Mini App embed in Farcaster clients
  • ⚡ USDC/ETH mint flow via wagmi + viem on Base

Stack

Getting started

npm install
cp .env.example .env.local   # then fill in the values
npm run dev

Open http://localhost:3000.

Environment

See .env.example. You'll need an OnchainKit API key for NEXT_PUBLIC_ONCHAINKIT_API_KEY. Nothing secret is committed — .env* is gitignored.

Deploying your own

  1. Deploy to Vercel and set the env vars (set NEXT_PUBLIC_URL to your final domain).
  2. Re-sign the manifest for your domain. The accountAssociation in minikit.config.ts is bound to basepaint-mini.vercel.app and signed by the original author's Farcaster account — it will not validate on your domain. Regenerate it with npx create-onchain --manifest (or the Farcaster Manifest Tool) and replace those three values, plus baseBuilder.ownerAddress.

License

MIT © ren2140eth

About

Farcaster Mini App for minting BasePaint daily editions on Base, with on-chain referral kickbacks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors