#142 · Primary category: AI Chatbots

tmi.js

chat chatbot javascript nodejs tmi tmijs twitch twitchdev

💬 Javascript library for the Twitch Messaging Interface. (Twitch.tv)

Project last updated:11/21/25

GitHub Stars

1.6K

Forks

204

Contributors

44

License

MIT

Why we included this project

tmi.js is the library most Twitch chat bot builders start with, and for good reason. It lets a bot join a channel, read messages, respond to commands, and send chat lines, with the same code running in Node.js or the browser. The pattern is small and predictable: create a client with the bot's credentials and a target channel, attach a handler for incoming messages, and reply with client.say(). The library handles the IRC connection and the low-level plumbing, which leaves the real work to the bot logic, whether that is a moderation helper, a community utility, or a relay that forwards chat into another service. It ships with TypeScript definitions and prebuilt browser builds, and its changelog tracks Twitch API changes, something worth watching because Twitch keeps adjusting its IRC behavior. If you want a Twitch chat client with minimal setup and a large, active community, tmi.js is a dependable place to start.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category