Live Q&A and polls for events, built by Claude Code on Elements
Join codes, audience questions ranked by upvotes, live polls and word clouds, and a presenter screen for the projector.
How it's built
Micpass needed questions, votes and poll results that move on every phone and the projector at once, moderation for the host, and an audience that joins with a code and no account. Each of those is a part of Elements, so the agent spent its 20 minutes on the Q&A app itself.
- Live questions, votes and polls. Events, questions, votes, polls and answers are LiveTables, so a vote reorders the questions and a poll answer grows its bar on every phone and the projector the moment it is cast.
- Votes straight from the page. The audience upvotes and answers polls by writing to the live tables, and the server checks each write: one vote per question, one answer per poll, only on a live question or an open poll.
- Moderation. Only the event's host approves, hides, pins or marks a question answered, and a moderated event holds new questions until the host approves them.
- Server calls as function calls. Creating an event mints a short join code, joining turns a typed code into the event page, and asking a question is one more
@rpccall. - An audience with no account. Each browser keeps its own voter id, which the server uses to count one vote per person.
- Data from SQL files. Migrations define the app and seed a host and one event with 13 questions, 167 votes, two finished polls and a draft poll ready to open.
Why Elements
Elements is the integrated stack for building apps with AI: a TypeScript project server, build system, app framework and deployment system, engineered from the ground up as one. Your editor, tools and one or many agents all connect to the same always-on project server, which runs type checking, program analysis, migrations and tests as the agent builds. Built-in guardrails keep the app structured correctly and secure as it grows from prototype to production.
Run it yourself
Paste this into a terminal. It installs Elements, creates your copy of this app and starts it.
curl -fsSL 'https://elements.dev/install?create=micpass&scaffold=demo-micpass' | sh