# tmijs/tmi.js

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

Repository: https://github.com/tmijs/tmi.js
Canonical: https://ross.abutalabs.com/products/tmijs
Homepage: https://tmijs.com
Language: JavaScript
License: MIT
License Family: permissive
Topics: twitch, chatbot, javascript, nodejs, tmi, tmijs, twitchdev, chat
Last push: 2025-11-21T21:44:22+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 53, release rhythm 8, longevity 100
- inputs: {"age_days": 4105, "days_push": 285, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1589, forks 204 (observed 2026-08-28T04:05:08.124540+00:00)

## What it is
tmi.js is a JavaScript library for connecting to and interacting with Twitch chat (IRC) from Node.js or the browser. It provides a client for reading messages, sending chat commands, and building Twitch bots and chat overlays.

## Use cases
- build a twitch chat bot
- connect to twitch chat from nodejs
- create a chat overlay for obs
- handle twitch chat commands like !hello
- read twitch chat messages anonymously
- send messages to twitch chat with a bot account

## When to choose
- you need a battle-tested JavaScript client for Twitch chat IRC
- you want to build Twitch bots or chat overlays in Node.js or the browser
- you want a simple event-based API for reading and sending chat messages

## When to avoid
- you need Twitch API features beyond chat (the IRC connection lost some commands in 2023)
- you are building bots for platforms other than Twitch
- you need a fully supported long-term solution without awareness of the planned v2 rewrite

## Facets
- artifact type: library
- maturity: active
- function: websocket, http-client, chatbot, sdk
- domain: messaging-platforms, chatbots, web-development, developer-tools
- platform: browser, cross-platform
- tags: twitch, tmi, irc, chat, streaming, twitch-bots, chat-overlay, nodejs, javascript

## Member repositories
- tmijs/tmi.js (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:08.124540+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:54:58.821984+00:00, confidence not recorded.
  - readme: https://github.com/tmijs/tmi.js (fetched 2026-08-28T04:05:08.124540+00:00, sha fb27fd66886f)
  - homepage: https://tmijs.com (fetched 2026-08-29T11:25:57.501042+00:00, sha 31ffc6d4e5f6)
  - registry_npm: https://registry.npmjs.org/tmi.js (fetched 2026-08-29T11:25:57.504758+00:00, sha 05217cb72504)
- Data as of 2026-08-30T08:39:29.467469+00:00.
