• Homepage
  • Docs
  • Forums
  • Github
  • Donate

tmi.js

Javascript library for the Twitch Messaging Interface

Save time

Save hundreds of hours of extra development. Start right away coding your functionality and watch your project come to life months sooner.

Cross platform

Developed with Node, compatible with Node 4.x and every browser that supports WebSockets. Securely hosted on our CDN.

Less code

Accomplish in 10 lines what would otherwise take 100. We handle all the connection stuff and provide you with useful functions.

npm install tmi.js [copy]
Node 4.x
<script src="//cdn.tmijs.org/js/latest/1.x/tmi.min.js"> [copy]
Browsers

Sample code

var tmi = require("tmi.js");
var client = new tmi.client({
    identity: {
        username: "Schmoopiie",
        password: "oauth:a29b68aede41e25179a66c5978b21437"
    },
    channels: ["#schmoopiie"]
});
// Connect the client to the server..
client.connect();

Twitch is a trademark or registered trademark of Twitch Interactive, Inc. in the U.S. and/or other countries. "tmi.js" is not operated by, sponsored by, or affiliated with Twitch Interactive, Inc. in any way.

Developed with by Schmoopiie and
our awesome contributors.
tmi.js ©