Hyvy ยท clean Pages build

Publish ballots.
Collect votes.

This starter build is set up for Cloudflare Pages + D1. Use the organizer page to create a ballot, then send the voter link to anyone opening the vote page on phone or desktop.

Create a ballot

Organizer flow for title, prompt, slug, and up to 50 options. Publishes directly to /api/ballots.

Open create.html

Open a ballot

The vote page loads a ballot by slug and submits rankings into D1. Example format: vote.html?slug=my-ballot.

Open vote.html
After deploy, bind your D1 database to DB, run the schema, then publish a real ballot from create.html. The demo vote link above will only work after you create a ballot with slug demo-ballot.