JavaScript library for YouTube Live Chat
npm install @hitomaru/masterchat



Masterchat is the most powerful library for YouTube Live Chat, supporting parsing 20+ actions, video comments and transcripts, as well as sending messages and moderating chats.
```
npm install @hitomaru/masterchat
`js
import { Masterchat, stringify } from "@hitomaru/masterchat";
const mc = await Masterchat.init("oyxvhJW1Cf8");
const chats = mc.iter().filter((action) => action.type === "addChatItemAction");
for await (const chat of chats) {
console.log(${chat.authorName}: ${stringify(chat.message)});`
}
See MANUAL for further instructions.
`bash`
npm i -g masterchat-cli
`bash`
mc watch --org Hololive
See masterchat-cli for detailed usage.
See ☄️Komet for further information.
- Use masterchat with DEBUG=masterchat and report logs that are prefixed with [action required]
- Squash TODOs
See Contribution Guide for more information.
Ask questions in #masterchat` channel on holodata Discord server.
Thanks goes to these wonderful people (emoji key):
uetchy 💻 | Shiaupiau 💻 | Jan Procházka 💻 | sphinxrave 🐛 | David Chen 🐛 🤔 | Evgeniy Istomin 📖 |
This project follows the all-contributors specification. Contributions of any kind are welcome!
- Holodex
- Luna's Translation
- Honeybee
- ShipID
- Komet