# live-reaccs: live emoji reactions for talks The audience scans a QR code, taps emoji on their phones, and the emoji float across the presenter's slides in real time. Reactions from everyone in a room are batched server-side (every 300 ms) and shown as counted clusters ("🔥 ×52"). Base URL: https://reaccs.noisyneighbor.studio ## Adding reaccs to a deck: the usual workflow This site's homepage is only a setup page. Nobody can react there, so a link or QR code to https://reaccs.noisyneighbor.studio itself does nothing for an audience. Live reactions need a room, and the QR code must encode that room's audienceUrl. 1. Settle the presenter's choices. These are theirs to make; the setup form asks the same: - Talk title (becomes the room's name, e.g. "React Conf 2026 Keynote"). - Emoji: an approved palette (only those emoji; default ❤️🔥😂👏🤯🎉👍😮), or open (any emoji except an exclude list; the default list excludes 🍆🍑💦🍌🍒🌮🥒👅🖕💩🤮🤬🔞🥵). - Where reactions float up on the slides: left, right (default), or everywhere. - Speed: 0.5 calm … 2 frantic (default 1). 2. Create the room with those choices (section 1). 3. Put the join code on the slide, as its main content, centered, next to the talk title and "Scan to react live". Two styles, also the presenter's choice: - Normal: a plain QR image. Works in any deck; for Keynote, PowerPoint or Google Slides, download it and insert it as a picture: Scan to react live - 3D: the code animates in (emoji rain) when the slide appears. HTML decks only: Set on="dark" or on="light" to match the slide background if it isn't a solid color. 4. Add the reactions overlay once for the whole deck (e.g. in the layout), using the chosen position and speed, so reactions float over every slide (HTML decks): (origin: bottom-left = left, bottom-right = right, bottom = everywhere.) Note the two URLs: the overlay takes the presenterUrl, the QR encodes the audienceUrl. Decks that can't run scripts can't show the overlay; the displayUrl works as an OBS browser source instead, and qrUrl is a ready-made full-screen join page. 5. The server keeps only an activation counter per room, so the presenter needs to keep the audienceUrl, presenterUrl (or displayUrl) and qrUrl. Explain activations (below) briefly: the room wakes when the deck or OBS connects, for 6 hours at a time, a limited number of times. ## 1. Create a room Anonymous rooms can only be created from the web form (it has a bot check). Scripts and agents need a presenter's API token. curl -X POST https://reaccs.noisyneighbor.studio/api/rooms \ -H "content-type: application/json" \ -H "authorization: Bearer $REACCS_TOKEN" \ -d '{"title": "My Talk", "emoji": {"mode": "palette", "emoji": "❤️🔥😂👏🤯🎉👍😮"}}' The Authorization header is optional. With a presenter's API token (they create one at https://reaccs.noisyneighbor.studio/account after signing in by email), the room gets 25 activations and is saved to their account. Without it, the room is anonymous: 3 activations, remembered nowhere. `emoji` is one of: - {"mode": "palette", "emoji": "❤️🔥👏"}: only these emoji are accepted; they are the audience's buttons. - {"mode": "open", "exclude": "🍆💩"}: any emoji except these. Omitting `exclude` uses a default list of the obvious ones to avoid; "" excludes nothing extra. - omitted: the default palette. The server also always blocks a small set (🍆💦🍑🖕), whatever the room allows. Response (201). A room has two unguessable keys, and the URLs differ by which one they carry: - audienceUrl: the phone page, holding the AUDIENCE key. This is what the QR code encodes. It can only send reactions while the room is awake. - qrUrl: full-screen join slide (2D QR). qrImageUrl: the QR as an SVG image (dark on white), for or for downloading into a deck. Both use the audience key. - presenterUrl: holds the PRESENTER key. Connecting with it wakes the room. Goes in the deck's and in OBS, never on the QR. - displayUrl: transparent reactions overlay page for OBS browser sources (presenter key). - statusUrl: GET returns {tier, activations, activeUntil, live, paused, generation} (presenter key). POST /pause {"paused": true|false} drops or readmits the audience. POST /rotate issues a new audience link (new QR); the old one is refused as "stale". - tier: how many activations the room may spend in its life (3 anonymous, 25 with a token). signedIn: whether the room was saved to an account. - scriptUrl, qrScriptUrl: the two drop-in scripts below. - emoji: the room's resolved emoji rule. Activations: a room is awake for a 6-hour window from the moment a presenter connection (the deck's overlay or OBS) arrives while it is asleep. Each such wake spends one activation; reconnecting inside a window is free. When a window ends everyone is disconnected; a presenter still connected reconnects and spends another activation. When the tier is exhausted the room is dead and a new one must be minted (new QR). This bounds what any room can ever cost. Only that activation record is stored server-side. Save the returned URLs; they are the room. A room's emoji rule can't change. To change it, create a new room. ## 2. Put it on slides (any HTML deck: reveal.js, Slidev, plain pages) Reactions overlay: add once per deck (e.g. in the layout). It is full-viewport and click-through. Join QR: put on the slide where people should scan. It animates in when the slide appears, then settles into a scannable code. attributes: - room: the presenterUrl (required for live reactions; the audience URL is refused). - origin: bottom-right (default), bottom-left, bottom (full width), bottom-center, center, left, right, or "x,y" fractions. - animation: gather (default: same emoji cluster into counted groups), float, fade, bounce, burst. - speed: tempo/energy multiplier, 0.5 calm … 2 frantic. Default 1. - size (px, default 44), duration (ms, default 4000), allow / block (emoji lists), max-on-screen (150), max-per-burst (12), stagger (ms, 900), show-counts (true). - add the `contained` attribute to fill the nearest positioned ancestor instead of the viewport. - headless: draw nothing, but stay connected and fire `reactions` events (see "Custom display"). attributes: - room: the audienceUrl (required; the presenter URL is refused, so it can't leak onto a QR). - on: "dark" | "light", the slide background it sits on. This picks the code's polarity. If omitted, it is detected from the nearest opaque background color. Set it explicitly when the slide background is an image or gradient; the wrong polarity won't scan. - once: play only the first time it is shown (default: replay on every visit to the slide). Agent checklist: - Size the QR at 30vh or more so it scans from the back of a room. - Keep what's behind a solid color: dark for on="dark", light for on="light". - Don't place slide content where the overlay's origin is (e.g. bottom-right) if it must stay readable. - The script needs a browser; it does nothing in PDF or PowerPoint exports. ## Custom display, or turning the overlay off is also the data source for a display of your own. Pick the lightest level that does the job: 1. Restyle the built-in particles with page CSS: live-reactions::part(particle) { filter: drop-shadow(0 0 8px gold); } live-reactions::part(count) { background: crimson; } 2. Replace each emoji's glyph but keep the built-in motion (clusters, merging, counts): el.configure({ renderReaction: (type) => { const img = document.createElement("img"); img.src = LOGOS[type]; img.style.width = "1em"; return img; } }); Return a string or a NEW Node on every call (never reuse one node). Size in `em`, because the particle's font-size grows with its cluster. Particles live in a shadow root, so page CSS doesn't reach inside them; use inline styles or the parts above. 3. Draw everything yourself. Every server batch and every el.emit() fires a `reactions` event on the element. e.detail is [{type, count}], already filtered by allow/block. - el.setAttribute("headless", "") (or configure({headless: true})): the built-in overlay draws nothing and the screen is cleared; the socket and events keep running. Remove the attribute to turn the overlay back on. Toggle it any time, e.g. per slide. - e.preventDefault() in a listener skips built-in drawing for that one batch only, so a listener can take over some batches (e.g. huge bursts) and leave the rest. - el.show(reactions) draws with the built-in renderer without firing the event. The `status` event (detail: connecting | open | closed | offline | ended) tracks the connection, for a "live" indicator. Example: a headless scoreboard.
    Rules: the element must stay in the DOM (removing it closes the socket); `room` is still the presenterUrl; a headless element is invisible and click-through, so it can sit anywhere. ## 3. Ready-made pages (no code) With the audience key: - https://reaccs.noisyneighbor.studio/r/SLUG/AKEY: audience phone page. - https://reaccs.noisyneighbor.studio/r/SLUG/AKEY/qr: 2D join slide. - https://reaccs.noisyneighbor.studio/r/SLUG/AKEY/qr.svg: the QR code as an image. - https://reaccs.noisyneighbor.studio/r/SLUG/AKEY/qr3d: 3D join slide (dark). With the presenter key: - https://reaccs.noisyneighbor.studio/r/SLUG/PKEY/display: transparent overlay for OBS (wakes the room). - https://reaccs.noisyneighbor.studio/r/SLUG/PKEY/status: activation state as JSON. Each accepts overlay settings as query params: ?origin=bottom-left&animation=gather&speed=1.5 ## 4. Send reactions yourself (testing, bots) WebSocket: wss://HOST/r/SLUG/AKEY/ws?role=audience (wss://HOST/r/SLUG/PKEY/ws?role=display receives batches instead, and wakes the room). A refused upgrade answers HTTP 423 with an x-reaccs-reason header: asleep, paused, exhausted, or stale (the QR on screen is a newer key). GET /live returns {live} or {live:false, reason} for the same reasons. When a window ends, open sockets are closed with code 4000; presenters reconnect (spending an activation). → {"t": "react", "reactions": [{"type": "❤️", "count": 3}]} ← (displays) {"t": "batch", "reactions": [{"type": "❤️", "count": 1832}]} Limits: each `type` must be a single emoji allowed by the room; up to 16 types and a count of 50 each per message; each connection is rate-limited (burst 40, then 12 per second). Send the text "ping" every ~25 s to keep a connection alive; the server answers "pong".