Try it in your browser
Point Jev at a live Twitch chat.
Pick a live channel and a question, paste your TypeSafe key, and press Start. The stream plays in Twitch's own player, its chat comes straight from Twitch, and Jev's answer shows up next to each new message. Nothing to install.
Pick a channel, and its stream plays here.
Twitch chat
1import { monitor, recipes } from "jev-events";2import { twitchChat } from "jev-events/public";3 4// Reads your key from TYPESAFE_API_KEY.5const chat = monitor({6 source: twitchChat("some_live_channel"),7 questions: { kind: recipes.chat.kind },8 // This demo's limits, so a busy chat can't run up your bill.9 rate: { perSecond: 2, burst: 2 },10 maxQueue: 3,11 maxLagMs: 3000,12});13 14chat.on("judged", (e) => console.log(e.item.text, e.answers.kind.choice));15 16await chat.start();