Complete OAuth 2.0 flows
Authorization code exchange, client credentials, and refresh token flows with automatic caching and CLI setup tool.
velho wraps authentication, Helix REST, EventSub, and chat utilities into one cohesive toolkit. Build verified, resilient Twitch experiences without stitching together brittle SDKs.
Opinionated utilities for Twitch integrations with cohesive ergonomics, predictable types, and guardrails for production workloads.
Authorization code exchange, client credentials, and refresh token flows with automatic caching and CLI setup tool.
Get, post, and patch Helix endpoints while parsing rate-limit headers and validating responses with Zod.
Join chat, send messages, and handle WebSocket EventSub notifications with a resilient reconnect strategy.
One-command setup tool that handles the entire OAuth flow and saves credentials automatically to your .env file.
Compose the modules you need or use them together—each piece is designed to stay out of your way.
Authenticate your app, query Helix, and listen to EventSub notifications without leaving TypeScript.
import {
HelixClient,
TwitchAuth,
EventSubWebSocketClient
} from "velho";
const auth = new TwitchAuth({
clientId: process.env.TWITCH_CLIENT_ID!,
clientSecret: process.env.TWITCH_CLIENT_SECRET!,
});
const helix = new HelixClient({ clientId: auth.clientId, auth });
const { data } = await helix.get("/streams", { query: { first: 5 } });
const ws = new EventSubWebSocketClient({ autoReconnect: true });
ws.on("notification", ({ subscription, event }) => {
console.log(subscription.type, event);
});
Bring your entire integration workflow under a single dependency. velho handles the repetitive scaffolding so you can focus on features.
EventSub webhook helpers verify signatures with constant-time comparison and respond to challenges automatically.
Inject any fetch-compatible implementation to instrument requests or target alternative runtimes.
All clients expose structured events so you can instrument logs, metrics, or traces without custom plumbing.
Composable modules layer Zod validation on top of Twitch APIs, pairing runtime guarantees with first-class TypeScript support.
"velho" keeps your integration code concise and verifiable, even as Twitch expands its API surface.
Install via npm, drop in your Twitch credentials, and explore the guided docs to wire up your first integration.