Examples
Examples
Working TypeScript examples that show how to connect to Twitch with velho.
Every guide walks through setup, required credentials, and ideas for extending the pattern in your
own integrations. The source for each one lives in
examples/.
Quick Start Bot
Refresh OAuth tokens with the velho CLI and connect a resilient chat bot.
Authorization Code Flow
Generate authorization URLs, exchange codes, and refresh user tokens.
Fetch Live Streams
Authenticate with client credentials and call the Helix Streams endpoint.
Chat Command Bot
Answer uptime and title requests by combining chat commands with Helix lookups.
EventSub Webhook Server
Accept EventSub webhooks and verify signatures with a lightweight HTTP server.
EventSub WebSocket Monitor
Handle keepalives and observe subscription lifecycle events in real time.