Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twurple/twurple
Interact with Twitch's API, chat and subscribe to events via PubSub and EventSub.
https://github.com/twurple/twurple
api api-client chat-bot chatbot eventsub pubsub tmi twitch twitch-api twitch-chat webhooks
Last synced: 3 months ago
JSON representation
Interact with Twitch's API, chat and subscribe to events via PubSub and EventSub.
- Host: GitHub
- URL: https://github.com/twurple/twurple
- Owner: twurple
- License: mit
- Created: 2017-07-02T09:02:38.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-28T13:58:45.000Z (7 months ago)
- Last Synced: 2024-05-15T17:49:34.464Z (6 months ago)
- Topics: api, api-client, chat-bot, chatbot, eventsub, pubsub, tmi, twitch, twitch-api, twitch-chat, webhooks
- Language: TypeScript
- Homepage:
- Size: 8.2 MB
- Stars: 608
- Watchers: 13
- Forks: 102
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-twitch-dev - twurple/twurple - Interact with Twitch's API, chat, PubSub and subscribe to WebHooks. (Libraries / JavaScript (Node.js))
README
# Twurple
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/twurple/twurple/blob/main/LICENSE)
[![npm version](https://img.shields.io/npm/v/@twurple/auth.svg?style=flat)](https://www.npmjs.com/package/@twurple/auth)
![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)A set of libraries that aims to cover all existing Twitch APIs.
- Query the Helix API
- Build a chat bot
- React to custom redemptions, subscriptions, follows and much more using PubSub and EventSub
- Do all this without caring about the expiry of your access tokens - **we can refresh them automatically**## Installation
To add Twurple to your project, just execute:
yarn add @twurple/auth
or using npm:
npm install @twurple/auth
## Documentation
A good place to start with this library is the [documentation](https://twurple.js.org)
which also includes a complete reference of all classes and interfaces, as well as changes and deprecations between major versions.## Additional packages
The mentioned `@twurple/auth` package only provides authentication functionality. All the other things are located in separate packages:
- [@twurple/api](https://npmjs.com/package/@twurple/api) - make calls to the Helix API
- [@twurple/chat](https://npmjs.com/package/@twurple/chat) - connect to and interact with Twitch Chat
- [@twurple/pubsub](https://npmjs.com/package/@twurple/pubsub) - listen to events using the Twitch PubSub interface
- [@twurple/eventsub-http](https://npmjs.com/package/@twurple/eventsub-http) - listen to events using EventSub over HTTP/WebHooks
- [@twurple/eventsub-ws](https://npmjs.com/package/@twurple/eventsub-ws) - listen to events using EventSub over WebSockets## If you're getting stuck...
You can join the [Twitch API Libraries Discord Server](https://discord.gg/b9ZqMfz) and ask in `#twurple` for support.
## Special thanks
- [discord.js](https://discord.js.org) for major inspiration on the structure of the libraries (or, as it was back then, *the library*)
- [All the people who contributed to Twurple](https://github.com/twurple/twurple/graphs/contributors)
- My [sponsors](https://github.com/sponsors/d-fischer) (maybe you want to become one too?)