An open API service indexing awesome lists of open source software.

https://github.com/sigvt/masterchat

๐Ÿ’ฌ Get full access to YouTube Live Chat
https://github.com/sigvt/masterchat

innertube livechat youtube youtube-chat youtube-comments youtube-livestream

Last synced: 3 months ago
JSON representation

๐Ÿ’ฌ Get full access to YouTube Live Chat

Awesome Lists containing this project

README

          

# Masterchat

[![npm](https://badgen.net/npm/v/masterchat)](https://npmjs.org/package/masterchat)
[![npm: total downloads](https://badgen.net/npm/dt/masterchat)](https://npmjs.org/package/masterchat)
[![npm: publish size](https://badgen.net/packagephobia/publish/masterchat)](https://npmjs.org/package/masterchat)
[![typedoc](https://badgen.net/badge/docs/typedoc/purple)](https://holodata.github.io/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.

## Install

```
npm install masterchat
```

```js
import { Masterchat, stringify } from "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](https://github.com/holodata/masterchat/tree/master/MANUAL.md) for further instructions.

## CLI

```bash
npm i -g masterchat-cli
```

```bash
mc watch --org Hololive
```

See [masterchat-cli](https://github.com/holodata/masterchat-cli) for detailed usage.

## Desktop App

See [โ˜„๏ธKomet](https://github.com/holodata/komet) for further information.

## Community

### Contributing

- Use masterchat with `DEBUG=masterchat` and [report](https://github.com/holodata/masterchat/issues/new) logs that are prefixed with `[action required]`
- Squash [TODOs](https://github.com/holodata/masterchat/search?l=TypeScript&q=TODO)

See [Contribution Guide](./CONTRIBUTING.md) for more information.
Ask questions in `#masterchat` channel on [holodata Discord server](https://holodata.org/discord).

### Contributors โœจ

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



uetchy

๐Ÿ’ป

Shiaupiau

๐Ÿ’ป

Jan Prochรกzka

๐Ÿ’ป

sphinxrave

๐Ÿ›

David Chen

๐Ÿ› ๐Ÿค”

Evgeniy Istomin

๐Ÿ“–

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!

### Projects using Masterchat

- [Holodex](https://holodex.net)
- [Luna's Translation](https://github.com/luna-translations-bot/luna-translations-bot)
- [Honeybee](https://github.com/holodata/honeybee)
- [ShipID](https://github.com/holodata/ShipID)
- [Komet](https://github.com/holodata/Komet)

## Related projects

- [YouTube.js](https://github.com/LuanRT/YouTube.js)