[!IMPORTANT] This minimal example demonstrates how to build a poll Frame without the use of a framework. If you're looking to build a Frame we recommend using frog or frames.js.
A example Poll app using Farcaster Frames.
This example lets you create a poll and have users vote on it. The FrameAction is authenticated against a hub
so the votes cannot be spoofed (if HUB_URL
is provided), and the results are stored in a redis database.
kv
database https://vercel.com/<name>/<project>/stores
KV
prefix url's for the new kv
databaseHUB_URL
environment variable to a production hub's public ip address port 2283 ref: https://docs.farcaster.xyz/reference/frames/spec#frame-signature-packetHOST
env variable to your public facing url or domain, ie; https://<project>.vercel.app/