Picking a movie as a group takes too long.
Single-choice polls tend to end in a tie, or in a film most people only tolerate, because nobody's second choice counts.
A group-chat poll gives everyone one vote. With five people and five films, that's often a five-way tie. Seeing live results also nudges late voters toward whatever's winning. Passing one phone around doesn't work when people are in different rooms or different houses.
- Job to be done: “Get us to a pick most of us are happy with, quickly.”
- Idea: Ranking a top three shows how much people like each option, not just their favourite.
Choosing the voting rules, then building around them.
I picked the voting method, wrote the rules (points, tie-breaks, when results show), decided how private ballots should be, and took it from a pass-the-phone page to shared links on two kinds of hosting. I built it with Claude Code, and the rules are covered by unit tests.
- Business analystVoting methodCompared voting methods and chose 3-2-1 points, because anyone can check the result by hand.
- Product ownerRulesTie-breaks: most first-place picks, then most second-place picks, then a shared place.
- Product ownerPrivacyResults appear only once everyone has voted, and never show who picked what.
- Software engineerHostingOne codebase with two targets: Cloudflare Workers with D1, or Docker on a home network.
- Software engineerAbuse limitsUnguessable links, rate limits, expiry and storage caps for the public version.
- Project managerQualityUnit and UI tests (Vitest, Testing Library) that every change has to pass.
What it had to do
An excerpt of the requirements, each written so it could be tested.
- Enough to vote on. At least 2 voters and 3 movies before a vote can start.
- Ranked ballot. Each voter picks 3 different movies: 1st gets 3 points, 2nd gets 2, 3rd gets 1.
- Tie-break. Equal points are split by more 1st-place picks, then more 2nd-place picks. Movies still level share the place.
- Hidden until complete. Until the last vote is in, the link shows only how many people have voted. Not even the creator sees picks.
- One vote each. Each name votes once, even if two votes arrive at the same moment (one database row per ballot).
- No keys in the page. Movie search runs on the server, so the API key never reaches the browser.
Decisions and trade-offs
Points instead of instant runoff
A simple 3-2-1 count rather than round-by-round elimination.
WhyAnyone can check the result in their head. For movie night, being easy to follow mattered more than being theoretically optimal.
The link is the key
No accounts. Links are 128 random bits, and there's no list of votes anywhere.
WhyFriends won't sign up to pick a film. The trade-off is written down: fine among friends, not a secure ballot.
Two hosting options, one codebase
Cloudflare Workers with D1 for a public site, or Docker restricted to a home network.
WhySome people want nothing to set up; others want nothing on the internet.
Keep the offline mode
“Vote on this device” still runs the original pass-the-phone vote, with nothing saved.
WhyIt works without a signal and is the most private option.
How it compares
The usual options are a group-chat poll, a general-purpose poll site, or a random-movie picker.
| Need | Typical alternative | Movie Night Vote |
|---|---|---|
| How much people like each option | One vote each; second choices are ignored | A ranked top three, scored 3-2-1 |
| Ties | A coin flip, or a debate | Broken by first-place, then second-place picks |
| Herding | Live results sway late voters | Hidden until the last vote is in |
| Adding films | Type titles by hand | Title search with posters (OMDb) |
| Privacy | Accounts, ads, tracking | No accounts; votes expire after 30 days |
What it's built with
- Frontend
- React 19, TypeScript, Vite, Tailwind CSS 4
- Cloudflare API
- A Worker with static assets, a D1 database, a daily cleanup cron, platform rate limiting
- Home API
- A Node and TypeScript server in Docker, limited to the local network by default
- Integrations
- OMDb movie search, cached for a day to stay within the free tier
- Security
- 128-bit links, per-visitor rate limits, a 64 KB request cap, strict headers
- CI
- Vitest, Testing Library, coverage, ESLint, TypeScript checks; Renovate for updates
- AI-assisted coding
- Claude Code
The rules and the privacy model were mine to decide. Claude Code implemented them, and the tie-break rules have unit tests so the scoring can't change by accident.
Where it is now
Working. It runs on Cloudflare Workers with D1, or in Docker at home.
Next: A filter for films everyone in the group can stream tonight.