# nodecg-twitchie

> Provides Twitch channel, stream and chat information via NodeCG replicants

Latest version **3.11.0** (published 2025-07-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install nodecg-twitchie
pnpm add nodecg-twitchie
yarn add nodecg-twitchie
bun add nodecg-twitchie
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.11.0 |
| Published | 2025-07-02 |
| First published | 2019-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.4.0 |
| Dependencies | 19 |
| Unpacked size | 675.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | dani quinn sexton |
| Maintainers | helloitsdan |
| Keywords | nodecg-bundle |

## Links

- npm: https://www.npmjs.com/package/nodecg-twitchie
- Repository: https://github.com/helloitsdan/nodecg-twitchie
- Issues: https://github.com/helloitsdan/nodecg-twitchie/issues
- npm.io page: https://npm.io/package/nodecg-twitchie

## Dependencies (19)

- [moment](https://npm.io/package/moment.md) ^2.29.4
- [express](https://npm.io/package/express.md) ^4.18.2
- [request](https://npm.io/package/request.md) 2.88.2
- [debounce](https://npm.io/package/debounce.md) ^1.2.1
- [node-cache](https://npm.io/package/node-cache.md) ^5.1.2
- [@twurple/api](https://npm.io/package/@twurple/api.md) ^7.0.1
- [@twurple/auth](https://npm.io/package/@twurple/auth.md) ^7.0.1
- [@twurple/chat](https://npm.io/package/@twurple/chat.md) ^7.0.1
- [@polymer/polymer](https://npm.io/package/@polymer/polymer.md) ^3.5.1
- [@polymer/iron-image](https://npm.io/package/@polymer/iron-image.md) ^3.0.2
- [@polymer/iron-pages](https://npm.io/package/@polymer/iron-pages.md) ^3.0.1
- [@polymer/paper-item](https://npm.io/package/@polymer/paper-item.md) ^3.0.0
- [@polymer/paper-input](https://npm.io/package/@polymer/paper-input.md) ^3.2.1
- [@twurple/eventsub-ws](https://npm.io/package/@twurple/eventsub-ws.md) ^7.0.1
- [@polymer/paper-button](https://npm.io/package/@polymer/paper-button.md) ^3.0.0
- [@polymer/paper-listbox](https://npm.io/package/@polymer/paper-listbox.md) ^3.0.0
- [@polymer/paper-spinner](https://npm.io/package/@polymer/paper-spinner.md) ^3.0.2
- [request-promise-native](https://npm.io/package/request-promise-native.md) ^1.0.9
- [@polymer/paper-dropdown-menu](https://npm.io/package/@polymer/paper-dropdown-menu.md) ^3.0.0

## Recent versions

- 3.11.0 (latest) — 2025-07-02
- 3.10.2 — 2023-08-05
- 3.10.1 — 2023-07-25
- 3.10.0 — 2023-07-25
- 3.8.1 — 2022-07-03
- 3.8.0 — 2022-07-03
- 3.7.0 — 2022-07-02
- 3.6.0 — 2022-07-02
- 3.5.0 — 2022-07-01
- 3.4.2 — 2022-07-01
- 3.4.1 — 2022-07-01
- 3.4.0 — 2022-06-30
- 3.3.0 — 2022-06-30
- 3.2.1 — 2022-02-28
- 3.2.0 — 2022-02-28
- … 14 more at https://npm.io/package/nodecg-twitchie/versions

## README

# 🤖💜 nodecg-twitchie

Twitchie makes it easy to get all your Twitch channel, stream, and chat information in NodeCG, so that you can get to the fun bit and start making overlays and graphics!

Out of the box, Twitchie will provide you with all of this:

- User info
- Stream info
- Follower notifications
- Subscriber notifications
- Cheer notifications
- Chat and API calls through the [really good twurple libraries](https://twurple.js.org/)

## Compatibility

Twitchie requires that you use a version of NodeCG greater than _2.0.0_, and a version of node greater than _16.0.0_, because of some compatibility stuff.

## Usage

Everything that Twitchie handles is exposed through NodeCG's replicants and bundle messages, in the `nodecg-twitchie` namespace. This means that getting stream information in your graphics is extra-simple!

```javascript
const showSubscriber = (subscriber) => {
  // show notification in your graphics...
}

const updateChannelInfo = (info) => {
  // update now playing, uptime, etc...
}

nodecg.listenFor(
  'channel.subscriber',
  'nodecg-twitchie',
  showSubscriber
)

const streamInfo = nodecg.Replicant('stream.info', 'nodecg-twitchie')
streamInfo.on('change', updateStreamInfo)
```

### The twitchie client

The default export of this module is a little client for use in your graphics, which gives you an easy way to listen to events or access your stream information in your graphics without having to manually configure loads of replicants. Using the twitchie client, the above example could be rewritten like so...

```javascript
import twitchie from 'nodecg-twitchie'

twitchie.on('channel.subscriber', showSubscriber)
twitchie.stream.info.on('change', updateStreamInfo)
```

### Custom requests with Twitchie

The twitchie extension exposes an instance of the [twurple API library](https://twurple.js.org/). If you want to query the Twitch API directly, you can access it through `nodecg.extensions['nodecg-twitchie'].api`.

## Configuring Twitchie

In order to use Twitchie, you'll need to enable Twitch logins on your NodeCG instance, as we use this authentication to connect to the Twitch API and chat. Instructions on how to do this can be found in the [NodeCG documentation](https://www.nodecg.dev/docs/nodecg-configuration).

Please make sure you've included `user_read channel:read:subscriptions channel:read:redemptions user:read:broadcast moderator:read:followers bits:read chat:read chat:edit moderator:read:shoutouts channel:read:predictions channel:read:polls` in your scopes!

---
_Source: https://npm.io/package/nodecg-twitchie · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
