Inspiration
Every stream has a "we need a ___ for this" moment: a scoreboard for the race, a countdown for the boss fight, a tracker for the marathon. Right now that means pausing the show to go find a tool. We wanted that moment to be the show.
What it does
HYPE lets Twitch chat commission the stream's tools, live.
- A viewer types
!hype a countdown for the next boss fight. - The request appears on the overlay, and chat votes with
!vote. - The winning request goes to OpenAI Codex, which builds the widget while everyone watches the progress on screen.
- The finished widget pops onto the stream for every viewer, and HYPE posts the Codex thread ID in chat as a receipt.
Viewers don't just watch the stream, they shape it, and the build itself is entertaining to watch.
How we built it
HYPE was built with Codex, and Codex also runs inside the product. When a request wins the vote, HYPE starts a Codex agent in a sandbox and gives it one of eight widget templates to adapt: scoreboard, countdown, poll, dice, wheel, bracket, chat meter or marathon. Codex's live progress feeds the "building…" panel on the overlay.
On the Twitch side, HYPE reads chat through EventSub, posts replies with the Chat API, and shows everything in a Twitch overlay extension.
Challenges we ran into
- Safety: HYPE deploys AI-written code to every viewer's screen, so every widget is validated and runs sandboxed before it goes live.
- Speed: a live audience won't wait minutes. Having Codex adapt a working template instead of starting from scratch keeps builds fast and consistent.
- Real Twitch quirks: we got EventSub's connection flow right, then found that channel moderation silently drops raw code in chat, so HYPE now posts a plain-language summary.
Accomplishments that we're proud of
- The full loop works live on Twitch, from chat request to vote to Codex build to the widget on stream.
- Codex is the product, not just the tool we used to build it. Every widget can be traced to the Codex thread that wrote it.
- It's watchable. The vote bar and live build log make the wait part of the entertainment.
What we learned
Agentic coding gets interesting when it happens in public. Giving the agent a strong starting point (templates and a clear widget contract) mattered more than a clever prompt. Building around Twitch's real moderation and API behavior taught us to test against the live platform early.
What's next for HYPE
- Interactive widgets: chat commands that drive a built widget, e.g.
!deathincrements a Codex-built death counter. - Saved widgets: a library of built widgets streamers can bring back on future streams.
- Code viewer: a panel where viewers can read the full code Codex wrote.
- Channel points: spending channel points to skip the vote queue.
Built With
- codex-cli
- css3
- html5
- javascript
- node.js
- openai-codex
- playwright
- pnpm
- server-sent-events
- twitch
- twitch-eventsub
- twitch-extensions
- typescript
- vitest
- websockets