Description
Twurple is a set of JavaScript libraries for working with Twitch's APIs, aiming to cover all of them. With it you can query the Helix API, build a chat bot, and react to channel point redemptions, subscriptions, follows and many other events through EventSub, while access tokens are refreshed automatically so you do not have to track their expiry. The functionality is split into packages: @twurple/auth handles authentication, @twurple/api makes Helix API calls, @twurple/chat connects to and interacts with Twitch Chat, and @twurple/eventsub-http and @twurple/eventsub-ws receive EventSub events over HTTP webhooks or WebSockets. You add it to a project with npm, yarn or pnpm. The documentation includes a full reference of all classes and interfaces and notes on changes and deprecations between major versions. Support is offered on the Twitch API Libraries Discord.…
Highlights
- Helix API client
- Twitch Chat bot support
- EventSub over HTTP webhooks or WebSockets
- Automatic access token refresh
- Modular npm packages
Ratings & Reviews
No ratings yet
Be the first to rate Twurple.
People also visit
Twurple FAQ
What is Twurple?
A collection of libraries for Twitch's APIs: Helix API calls, chat, and event subscriptions via EventSub.
How do I install it?
Start with the auth package: npm i @twurple/auth (or use yarn or pnpm), then add the packages you need such as @twurple/api or @twurple/chat.
Do I have to refresh access tokens myself?
No. Twurple can refresh tokens automatically.
How do I receive Twitch events?
Use @twurple/eventsub-http for webhooks or @twurple/eventsub-ws for WebSockets.
Where can I get help?
Join the Twitch API Libraries Discord server and ask in the #twurple channel. The documentation also has a full API reference.
What are the best Twurple alternatives?
Popular alternatives to Twurple include davidtc, StreamLabsTikTokStreamKeyGenerator and TwitterInternalAPIDocument. See all Twurple alternatives

