Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GuidesNovember 22, 20265 min read

How to Build a Live Poll App

A live poll is a tiny multiplayer app: one presenter, a room full of phones, and a bar chart everyone watches move. Here is how to build one that counts every vote exactly once.

Startbase Team
Editorial ink illustration of three glass ballot boxes on a wooden bench filled with folded paper slips, one slip mid-drop in ember orange

Key takeaways

  • Enforce one vote per person with a unique rule in the database on poll plus voter, not with a check in the page.
  • Give every audience member an anonymous identity on join. No sign-up, but every vote still has an owner.
  • Let the presenter control the poll state (open, closed, revealed). The audience screen follows it live.

A live poll app has two screens and one rule. The presenter screen shows a question and a results chart that moves as votes arrive; the audience screen, opened on phones from a short room code or QR code, shows the options and a Vote button. The rule is one vote per person per poll, enforced by the database itself. Realtime updates push each new count to the presenter within a second or so, which is what makes the room gasp when the bars swing.

Where live polls earn their place

  • Talks and workshops: warm-up questions, "which topic next?", quick checks for understanding.
  • Classrooms: exit tickets, multiple-choice checks, anonymous "how confident do you feel?" scales.
  • Team meetings: retros, prioritizing a backlog, anonymous mood checks.
  • Events and streams: audience choices that change what happens next.

The common thread is a group in the same moment. If people vote over a week, you are building a survey, which needs different screens and much less realtime plumbing.

The data model

  • sessions: host user id, title, a short room code (four to six letters, avoiding look-alikes such as O and 0), the currently active poll id, and created at.
  • polls: session id, position, question, type (single choice, multiple choice, rating, word cloud), options, state (draft, open, closed, revealed), and whether results are visible to the audience while voting.
  • votes: poll id, voter id, chosen option (or options, or a short text for word clouds), and created at, with a unique rule on poll id plus voter id.
  • participants (optional): session id, voter id, joined at, an optional nickname. Handy for "42 people here" and nothing more.

One vote per person, for real

There are three levels of "one vote", and you should pick deliberately:

  1. 01One per device session: on join, the audience member gets an anonymous account automatically, no form, no email. Startbase Cloud's sign-in settings include anonymous users for exactly this kind of try-before-signing-up access (Auth docs). The unique rule on poll plus voter means a second vote from that session is rejected by the database. A determined person with three browsers can vote three times, which is fine for a classroom or a conference talk.
  2. 02One per signed-in person: require email or Google sign-in before voting. Good for internal team decisions where the result matters.
  3. 03One per invited person: the host uploads a list and each person gets a unique link. The only level suitable for anything resembling a formal ballot.

Whichever level you choose, the browser hiding the Vote button after voting is a courtesy, not the rule. Row level security should allow a voter to insert only their own vote while the poll is open, and never to read other people's individual votes. For "change my vote", allow an update of your own row while the poll is open rather than a second insert.

Tip

Avoid IP-based limits. A lecture hall or office shares one network, and blocking by address would let one person vote and lock out the other two hundred.

Realtime results without melting anything

Startbase Cloud includes live sync on your backend's realtime channels, the same plumbing used for lobbies, presence and live boards in games (Multiplayer docs). A live poll needs only the light end of that:

  • Audience screens subscribe to the session, so when the host opens the next poll, every phone switches to it instantly.
  • The presenter screen listens for vote changes and redraws counts. For small rooms, recount on each vote. For hundreds of voters, recount at most twice a second; the bars still look live and the database stays calm.
  • Counts come from the database, grouped by option, never from adding up messages in the browser. If the presenter reloads mid-poll, the chart is still correct.

Animate the bars smoothly from old to new value. A chart that jumps reads as glitchy; one that glides reads as alive. Show the total vote count next to the chart so the room can see participation climb.

Presenter controls that make it feel professional

  • Open, close, reveal: open lets votes in, close stops them, reveal shows the results to the audience (and on the big screen if they were hidden during voting).
  • Next and previous across the session's polls, with the audience following automatically.
  • Hide results while voting by default for opinion questions, so early votes do not sway the rest.
  • A join slide: the room code in huge type, a QR code, and the participant count rising as people arrive.
  • Reset a poll for rehearsals, with a confirmation, since it deletes its votes.
  • Export results to CSV after the session.

Word clouds and the moderation problem

Open-text polls are the most fun and the riskiest: someone will type something you do not want on a projector. Normalize answers (trim, lowercase, collapse spaces) so "Pizza" and "pizza " count together, cap length at about 25 characters, and give the host a moderation queue where new words wait for approval before they appear on the big screen. A simple blocked-words list helps, but a human approve button is the real protection in a live room.

What to leave out of v1

  • Quiz mode with points and leaderboards. That is a game; build it as one later.
  • Q&A with upvoted audience questions. Useful, but a separate feature with its own moderation.
  • Slide decks with polls embedded. Let the presenter keep their own slides and switch windows.
  • Branching sessions and integrations with presentation software.

Brief for a live poll app

Build a live polling app for workshops. The host signs in and creates a session with a list of polls (single choice, multiple choice, 1 to 5 rating, and word cloud). Each session has a 5-letter room code without ambiguous letters and a join slide with the code in huge type, a QR code and a live participant count. Audience members join from their phone with the code, get an anonymous account automatically, and see whichever poll the host has open. Votes table has a unique rule on poll and voter; voters can insert or change only their own vote while the poll is open and can never read individual votes. The presenter screen shows animated bar charts updated in realtime from database counts, throttled to twice a second, with total votes. Host controls: open, close, reveal, next, previous, hide results while voting (on by default), reset with confirmation, and CSV export. Word cloud answers are normalized, max 25 characters, and wait in a host approval queue before showing. Bold, high-contrast design readable from the back of a room.

Test it with a few phones in the preview before a real session: join late, vote twice, reload the presenter mid-poll, and lose Wi-Fi for a moment. Once published, the publish panel's Share option shows a QR code for the app's address, handy for the first slide. If you want to go further into rooms and shared state, the multiplayer game guide uses the same ideas, and the communities use case has more group-shaped builds. For classroom polls, the guide for teachers has more ideas.

Frequently asked questions

How do I make sure each person only votes once?

Give each participant an identity (anonymous on join, signed in, or an invite link) and add a unique rule on poll plus voter in the database. The database then rejects a second vote, whatever the browser does.

Do voters need to create an account?

No. Anonymous sign-in gives each phone an identity without a form, which is enough for classes, talks and meetups. Require real sign-in only when the result has consequences.

How many people can vote at once?

There is no fixed number to promise; it depends on your app and backend. Throttle chart updates, count in the database, and test with a realistic group before a big event.

Can I hide results until everyone has voted?

Yes. Keep a reveal state on each poll. While it is hidden, the audience sees only a confirmation of their own vote, and the host reveals the chart when ready.

On this page

  • Where live polls earn their place
  • The data model
  • One vote per person, for real
  • Realtime results without melting anything
  • Presenter controls that make it feel professional
  • Word clouds and the moderation problem
  • What to leave out of v1
  • Brief for a live poll app

Keep reading

More in Guides
Editorial ink illustration of a kitchen scale with an apple on its pan beside a notepad and a spoon, the apple in ember orange
GuidesNovember 22, 2026

How to Build a Calorie Tracker App

Calorie tracking fails when logging is slow or the numbers are wrong. Get reliable food data, make repeat meals one tap, and be honest that every number is an estimate.

6 min read
Editorial ink illustration of two tin-can telephones joined by a string across a garden fence, the knot in the string in ember orange
GuidesNovember 22, 2026

How to Build a Chat App

Chat looks simple and hides four hard problems: delivering messages live, knowing who is online, tracking who has read what, and keeping strangers from abusing it.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.