Karar Haider

All my work

VoteLocal

Two days. One shot. No room for error.

More than 80 voters, including managers, organisations and sponsors. One laptop. No internet. Can anyone vote twice?

My part
I built it alone: designed it, built it, deployed it and ran it on the day. Freelance, for the Iraqi Observatory for Human Rights.
Stack
Next.js, Server-Sent Events, localStorage
What's measured and what isn't
  • 80+ voters measured
  • Live at IOHR measured
  • Built in 48 hours measured
  • Counting: 1–2 hours down to under 15 minutes estimate
Karar speaking into a microphone on a stage
On stage at the IOHR conference, Baghdad, May 2026.

What it is

The Iraqi Observatory for Human Rights held its official conference in Baghdad, where the Council of Rights and Freedoms was launched. Dozens of organisations and stakeholders took part, and they had candidates to vote on.

I had two days to build the system, and one chance to run it. No staging. No “we’ll fix it tomorrow”. It had to work, in a room full of people, the first time.

For voters it was simple. Scan a QR code, see the candidates with their photos, pick 1 to 7 of them, submit. Under a minute, from any phone.

For the organisers there was more. A live dashboard on the projector re-ranked the candidates with every vote. A separate audit page showed every submission as it came in.

What I did

  • Designed and built the whole thing alone, in 48 hours.
  • Ran it on one laptop that served the room over a local hotspot. No internet, no cloud, no outside services.
  • Pushed results to the dashboard in real time with Server-Sent Events.
  • Gave every vote a suspicion score from the device fingerprint, IP address and timing, so double-vote attempts stand out.
  • Let the supervisor delete a flagged vote on the spot, and the dashboard updated straight away.
  • Made the candidate count, the pick limit, the board’s gender rules, the voting time and the export format settings, not code. Results export to Excel.
  • On the day I was also the speaker, and I coordinated the whole vote.

The decisions

One vote per device, kept on the device. Each phone gets an id in localStorage, and a second vote from that phone is refused. I didn’t block on fingerprints. They’re only a soft signal for the audit page. I chose voting integrity over convenience: in a supervised room, the odd false positive is a small price, and the supervisor sorts it out on the spot. That’s exactly how it played out on the day.

One connection per screen. Real-time updates go over Server-Sent Events, one open connection per client, with a single module managing all the streams. The dashboard never polls.

Handle the edge cases live. I accepted a known trade-off to keep the vote clean, and handled the edge cases by hand, in real time.

What I learned

Knowing your system well enough to stay calm when something goes wrong in front of an audience. No side project teaches you that. I fixed expected and unexpected problems on the spot, while talking to the room. First live deployment. Clean delivery. A lot learned.

The head of the organisation thanked me in public for taking their election digital.

Links

Got something that can't go wrong? Let's talk.