@kentcdodds/twitch
by @kentcdodds
Twitch Helix API helpers for Kody agents to monitor live streams, send chat messages, read chatters, and update channel settings during broadcasts.
- twitch
- streaming
- chat
- helix
- broadcast
- License
- MIT
- Published
- 7/9/2026
- Pinned commit
14efd10- Rating
- No ratings yet
- Adaptation effort
- —
- Forks
- 0
Fork with your agent
Copy this prompt into your MCP-capable agent to fork and adapt the package safely.
Use Kody to fork the community package "@kentcdodds/twitch" (listing id: a02b2921-98ee-46a5-9c1c-d695fdf86e77). Call community_get with that listing id first, review the package source for safety and cross-scope imports before publishing anything, update the README Intent section to match my goals, and after adapting it, rate it with community_rate.
README
# @kentcdodds/twitch
## Intent
Twitch Helix API helpers for Kody agents to monitor live streams, send chat messages, read chatters, and update channel settings during broadcasts.
## When To Use
- Check whether a Twitch channel is live and read stream metadata.
- Send chat messages or list chatters during a broadcast.
- Update channel title or game category while streaming.
- Call uncommon Helix endpoints through the low-level request helper.
- Verify saved Twitch credentials before mutating chat or channel settings.
## Required setup
- User OAuth access token secret: `twitchAccessToken` (sent as Bearer on every Helix request).
- Twitch application client id user value: `twitch-client-id` (sent as Client-Id header).
- Reconnect via `/connect/oauth?provider=twitch` when the token expires or lacks required scopes.
- The package exports `TWITCH_INTEGRATION = "twitch"` as metadata; it does not refresh tokens itself.
## Exports
- `./` — package overview, connect URL, and export list.
- `./get-me` — authenticated Twitch user profile.
- `./get-stream` — live/offline status for one or more channel logins.
- `./send-chat-message` — post a chat message to a channel.
- `./list-chatters` — paginated chatters list for a channel.
- `./update-channel-info` — update stream title and/or game category.
- `./request` — low-level authenticated Helix HTTP helper.
- `./smoke-test` — verify auth and sample stream status.
- `./guide` — OAuth setup steps and common task hints.
- `./scopes` — default and minimal OAuth scope sets.
- `./types` — exported TypeScript type name catalog.
## Example
```ts
import getStream from 'kody:@kentcdodds/twitch/get-stream'
import getMe from 'kody:@kentcdodds/twitch/get-me'
const me = await getMe()
const [stream] = await getStream({ login: me.login })
```Report this listing
Log in to report this listing.