Inspiration

“If ten of you type believe, I'll try the jump.”

These are built-in cliffhangers: something to root for, argue about, and come back for. But a fast-moving chat can leave the promise behind before the payoff happens.

We wanted to give those moments a life beyond the sentence. What if a streamer's own words became a story that the whole community could play out?

What it does

hypepilot is a local companion app that runs alongside OBS. It turns spoken promises into mini-games in three steps:

  1. Say it. A detected promise appears privately in the streamer's desk. Clear catches have a ten-second silent cancellation window before appearing on stream as a receipt-style card. Unclear catches wait for approval.
  2. Viewers back it. Viewers sign with !witness, then help meet the condition: ten different viewers type believe, new follows arrive, or a raid lands. For conditions the app cannot observe, such as “if I lose this match,” viewers call !itsdue and the streamer confirms.
  3. Pay up. When a goal is due, viewers can type !collect. The streamer performs the action and presses Pay now / start vote. Viewers vote !paid or !played, and the result is stamped on stream and saved.

Other promises have their own arcs:

  • Streamer Time: “Back in two minutes” becomes a return clock, followed by overtime. Viewers choose !over or !under using imaginary points, and the streamer's personal exchange rate updates on return.
  • Vows: “I'm never playing this game again” is linked to the current Twitch category. A detected return to that category breaks the vow.
  • Debt Day: unpaid promises can return next stream. Viewers vote on what gets collected first. Each additional stream can add a silly modifier, such as “in a pirate voice,” up to three modifiers per debt.

Tab, our deadpan collector, appears at story beats on the overlay and can post in Twitch chat, within a six-lines-per-minute budget. The streamer can cancel promises, require approval, pause the engine, or silence Tab. Viewers use ordinary Twitch chat; they need no extension, download, or purchase. Points are for fun, with no cash value.

How we built it

  • Local companion: Node.js serves the private desk and transparent OBS overlay, with no external npm packages. Its listener is restricted to 127.0.0.1; actions require matching Host/Origin checks and a CSRF token. Audio and extraction text still travel to OpenAI when those features are used.
  • Speech and promise reading: the desk captures the microphone as 24 kHz audio, retains 300 ms before speech starts, and sends speech turns to OpenAI Realtime transcription using a short-lived credential. Cue-bearing sentences go to the Responses API with a strict JSON schema for the proposed promise.
  • Rules and Twitch: local code checks the proposal against the transcript, confidence bands, supported conditions, and safety/cap rules. After detection, code runs timers and unique-viewer counts; Twitch events, chat votes, and streamer actions determine outcomes. EventSub supplies chat, follows, raids, category changes, and stream lifecycle events. Helix reads current stream state and sends Tab's announcements. Tokens are checked on startup and hourly.
  • Receipts and memory: obs-websocket saves a local replay at catch time and can play its final 15 seconds when a goal becomes due. Leaving the configured BRB scene can settle a time promise. SQLite stores state-changing events and snapshots for recovery and cross-stream memory.
  • Rehearsal and verification: a separate SIM ledger and simulated viewers exercise the loop without Twitch, OBS, or an API key. We have 36 passing automated tests, including mocked Twitch and OBS cases. Viewer chat is never sent directly to a model.

Streamer Time adds a small piece of personal stream lore. Its exchange rate uses up to the last ten recorded breaks:

Exchange Rate = median(Recorded Break Duration ÷ Promised Duration)

The over/under line is the promised duration multiplied by that rate, with a minimum of two minutes. Before any recorded breaks, the rate defaults to 1.7×. The current implementation measures the break from the card going public until the return is registered.

Challenges we ran into

  • Stream delay: votes need to count for viewers watching delayed video. Witness, betting, call, Debt Day, and settlement windows include 25 seconds of grace; settlement ties favor the streamer.
  • Missed endings: closing the app before a stream ends can lose the offline event. The Twitch adapter now queries current stream state at startup/reconnect and uses stream IDs to recognize a new broadcast.
  • Replay timing: a fixed save delay could select the previous OBS file. Receipt saves now wait for the replay-saved event and overlapping saves are serialized; playback seeks to the final 15 seconds.
  • Storage growth: ordinary chat used to write unnecessary snapshots. It now creates neither a viewer record nor a journal entry unless participation changes state. Read-only commands also avoid snapshots. A clean-copy HTTP check confirmed that 200 ordinary messages created zero additional journal rows or viewer records.

Accomplishments that we're proud of

  • A complete rehearsal loop: catch, cancellation window, witnesses, unique-viewer goal progress, collection, voting, stamps, and debt carryover.
  • Clear decision boundaries: AI proposes a catch; code, viewers, streamer actions, and Twitch events determine the outcome.
  • Participation designed for smaller communities: a goal can be sized for five viewers, and the core loop does not use paid Twitch participation features.
  • A local companion with no external npm packages, a recoverable ledger

What we learned

Recognition can be a reward. A viewer's name on the promise turns a passing joke into something they helped create.

Fairness lives in details: delay, duplicate messages, and excluding broadcaster/bot participation all matter. Streamer control matters just as much. A silent cancellation window makes the system easier to trust, while a public cancellation can itself become part of the show.

What's next for HypePilot

We want to simplify Twitch authorization, run pilots with streamers, and measure participation before claiming engagement gains. Future ideas include season-long promise records, community rivalries, and exploring cross-streamer promises through Twitch's Shared Chat.

Built With

Share this project:

Updates

Submission history