Ranked-choice voting, counted in the open

Add a ranked ballot to any web page with two lines of HTML. Then watch the count here, round by round, as ballots move from candidate to candidate until the winners emerge.

Elections

Embed a ballot on your site

Works on any website: paste the script once, then add a <rcv-election> tag wherever you want a ballot.

<script src="https://elections.appfarms.org/widget.js" defer></script>

<rcv-election
  election-id="example-com-board-2026"
  title="Board of Directors 2026"
  description="Choose three directors."
  candidates="Alice Chen|Bob Ruiz|Carla Diaz|Dev Patel|Erin Wu"
  seats="3"
  closes="2026-12-31T23:59:00Z">
</rcv-election>

Try it

This is a live ballot. Your vote goes into a real election you can watch below the ballot.

Attributes

AttributeMeaning
election-id requiredUnique, lowercase, 3–80 characters (a–z, 0–9, . _ -). Ids are global, so start yours with your domain, e.g. example-com-…
title requiredShown at the top of the ballot.
candidates requiredSeparated by |, or a JSON array. 2–40 candidates.
seatsNumber of winners (default 1). 1 = instant runoff; more = single transferable vote.
descriptionShort text under the title.
opens, closesISO 8601 date-times, e.g. 2026-12-31T23:59:00Z.
live-resultstrue (default) shows results while voting is open; false hides them until closes.
unlistedtrue keeps the election off the public list on this site.
shufflefalse shows candidates in the order given (default: shuffled per voter).
themeauto (default), light or dark.

Good to know