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-jsimport 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
- Stream Analytics Tools - Track Twitch and Kick growth
- Kick Statistics Tracker - Real-time Kick analytics
- Twitch Bits Calculator - Understand bit values