TwitchJS

A community-centric, community-supported Twitch JavaScript SDK for Node.js and browsers.

Get Started API Reference

🔌 IRC Chat

Connect to Twitch chat with full support for commands, cheers, and subscriptions.

📡 Helix API

Make authenticated requests to Twitch API with built-in token refresh.

🔔 Stream Notifications

Monitor when channels go live and track stream status.

📦 TypeScript

Full TypeScript definitions for type-safe development.

Getting Started

npm install twitch-js
import TwitchJs from 'twitch-js'

const { chat, api } = new TwitchJs({
  username: 'your_username',
  token: 'your_oauth_token'
})

await chat.connect()
await chat.join('#channel')

chat.on('PRIVMSG', (msg) => {
  console.log(`${msg.username}: ${msg.message}`)
})

📚 Documentation

🛠️ Streamer Tools