Show HN: Bite Ballot – Vote on where to eat
This is a web app for quickly settling on where to eat as a group. (Feel free to critique the landing page.)<p>Unique features compared to other polling apps:<p>- No sign-up step.<p>- Enhanced Approval Voting: veto&#x2F;ok&#x2F;prefer. You may vote for multiple restaurant options.<p>- Real-time ballot updates so new candidates can be seen and voted on immediately.<p>- Ties are always broken randomly.<p>- Implemented with HTMx + hyperscript + jinja, enabling SSR and HATEOAS.<p>If you want to test the functionality by yourself, you can start a ballot, then copy the join link and open it in a different browser (or device). Each browser will be recognized as a separate user.<p>But give it a try in an actual group if you&#x27;re able to. I find it nice and satisfying to use. You can just trust that the ballot result has picked the best place to eat for your group. Let me know if you feel the same way.<p>Aside from designing and implementing a new voting system, the other part I&#x27;m most proud of is the join-ballot flow. The intersection of possible states creates a plethora of cases that need to be handled differently:<p>- The joiner may not have a user (name) -&gt; ask for name.<p>- The joiner may already be in an active ballot -&gt; confirm abandoning the current ballot to join the new one.<p>- The joiner may be in a completed ballot -&gt; let them join without confirmation.<p>- The joiner may be trying to join the ballot they&#x27;re already in -&gt; tell them, and let them return to their ballot.<p>- The joiner may have clicked their own join link as a way to get back to the ballot -&gt; warn them to check if it has opened in a different browser.<p>- The ballot they&#x27;re trying to join may be completely abandoned or already finished -&gt; tell them, then let them create a new ballot or return to their current ballot if they have one.<p>Just handling all these different cases was hard enough, but I think I was able to simplify the code down enough to keep it maintainable.<p>If I can get enough users and monetize this, maybe I can afford to add more features like maps, yelp stars, or menus by paying for Google Maps and&#x2F;or Yelp Fusion API access. In the meantime, the next big feature would be persistent user accounts&#x2F;logins so that a single user can sign in on different browsers&#x2F;devices and have their restaurants and restaurant info (like links to Yelp pages) saved and synced -- while still supporting the original minimal sign-up flow (just name). But let me know if you can think of other good features to add.