tmi.js

github.com/tmijs/tmi.js Twitch Tools Open-source projectOpen source

Build Twitch Messaging Interface integrations in JavaScript with the tmi.js library.

github.com/tmijs/tmi.js
tmi.js homepage screenshot

About tmi.js

tmi.js is a JavaScript library for the Twitch Messaging Interface. It allows a client to connect with a bot username and OAuth token, join specified channels, listen for chat messages, and send replies. It can be installed with npm for Node.js and used as a prebuilt script in the browser, with TypeScript definitions available in a separate package.

Key features

  • Connect with bot username and OAuth token
  • Join listed channels and receive chat messages
  • Send channel messages in response to commands
  • Enable debug output through client options
  • Install for Node.js with npm i tmi.js
  • Load prebuilt script that exposes window tmi
Best for: Developers building Twitch chat bots and messaging integrations in JavaScript.
Good for
  • Open source with MIT license
  • Supports Node.js and browser use
  • Includes example for listening and replying to messages

tmi.js at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

tmi.js alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

ComfyJS

github.com/instafluff/ComfyJS

ComfyJS provides a JavaScript library that connects Node.js and browser apps with Twitch chat.

Open source
24 alternatives

Popular in Twitch Tools

Well-known listings from the same topic.

All 110

tmi.js FAQ

How do I install tmi.js for Node.js?
Run $ npm i tmi.js, then require('tmi.js') in your project.
How do I connect to a Twitch channel?
Create a new tmi.Client with identity username, OAuth password, and channels array, then call client.connect().
Where are TypeScript type definitions available?
Install them separately with $ npm i -D @types/tmi.js.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing