Whats in this Repo
This repo contains a bunch of examples and bits and pieces that might be useful it might not.
Languages
Most of these examples either use NodeJS or PHP or pure HTML (with Javascript) (using a dumb php -S
to serve the demo, as apposed to file:// to avoid some oddities)
Aside from that the dependencies are supposed to be as lightweight as possible.
LIVE EXAMPLES
These examples are testable on GitHub pages, and will prompt for implicit authentication to run the code.
Auth Type Things | ||
---|---|---|
How to Implicit auth | Source | For Client Side apps/websites |
Token Checker and Killer | Source | Validate Tokens and revoke then, handy if you find stuff in the wild that shouldn't be there! |
Examply Things | ||
Building a clone of the Directory view | Source | Pretty simple, shows how to "chain" API's together |
Some Calendar/Schedule Stuff | Source | |
Channel Information Widget | Source | |
Team Page | Source | A clone of the team page, rougly, for showing how/where to get various data from |
Player Things | ||
A VOD Player that Skips Muted Segments | Source | Enough Said it plays VOD's |
Twitch Player/parent | Source | Implements most of the Embed JS player functions for test/example purposes |
Twitch Player on Google Sites | Source | A demo of how to do Players on Google Sites as they have nested iFrames and a dynamic URL on one of them... |
Streamer Tool Type Things | ||
Near Clone of the Dashboard | Source | The Dashboard core parts (edit stream info) but via the API |
Simple Poll Tool/Results Display | Source | A simple tool to create a poll and monitor the results |
Simple Channel Points Manager | Source | A simple tool to manage rewards |
Get my Stream Key | Source | A simple demo to auth the user and show the user their own stream key. |
Clips Navigator | Source | A simple demo fetch and display clips using started_at and ended_at parameters. |
Guest Star | Source | WIP implementation of the Guest Star API/EventSub. Uses EventSub Websockets for real time updates. |
TwitchEmotes | Source | |
EventSub WebSocket Transport Things | ||
The Basics | Source | A basic EventSub WebSocket connector |
Creator Goals EventSub WebSocket | Source | A EventSub WebSocket CreatorGoals Example |
Charity EventSub WebSocket | Source | A EventSub WebSocket Charity Example |
Simple Poll Tool/Results Display | Source | A simple tool to create a poll and monitor the results via EventSub WebSocket. |
Extension Type Things | ||
Extensions Config Tool | Source | A replacement for the Rig's tool - desktop version |
Twitch Extensions
There are some useful bits for Twitch Extensions in this repo, mainly for the API side of things.
If you are after a demo of a Twitch Extension with an EBS that talks to the Twitch API, checkout the Twitch Profile Extension Repository instead
Looking to get started wtih JWT auth, but you just want to start making requests. Try this insomnia plugin: "twitch extension" which includes a "predefined" request collection to import too!
Or looking to get started with Extension Development and the various API calls outside of a Rest client in a Desktop Application Similar to the Developer Rig? Check out BarryCarlyon's Twitch Extension Tools.
Practical Examples
Most of the code in this repository is various bits and pieces for your to copy/paste in other projects.
However the examples folder will contain self contained examples that demonstrate a more full "product".
Further Help
Some options
OMGLIEKWUT OHMYGOODNESS U SO MUCH HELP
Thank you for the help I want to give you beer/coffee money -> Check the Funding/Sponsor details