Install MiniKit (Vite)
Add MiniKit to your existing Vite project.Requirements
- Deployed Vite app with HTTPS URL
- Coinbase Developer Platform API key
- Access to Farcaster custody wallet
Install
Configure
Add environment variables:src/main.tsx
Initialize
Add the hook to your main component:src/App.tsx
Generate Credentials
Run the CLI to generate Farcaster account association:FARCASTER_HEADER
, FARCASTER_PAYLOAD
, and FARCASTER_SIGNATURE
to your .env
.
Create Manifest
Create the manifest file:public/.well-known/farcaster.json
Add Embed Metadata
Add Farcaster embed metadata to your index.html so your app can be shared in feeds:index.html
Deploy
Deploy your app and verify the manifest loads athttps://your-app.vercel.app/.well-known/farcaster.json
.
Test in Base App Debug Tool.