twitch_misc

Misc. Twitch bits and pieces

81
26
JavaScript

Whats in this Repo

This repo contains a bunch of examples and bits and pieces that might be useful it might not.

CodeQL
Deploy statics
pages-build-deployment

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 authSourceFor Client Side apps/websites
Token Checker and KillerSourceValidate 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 viewSourcePretty simple, shows how to "chain" API's together
Some Calendar/Schedule StuffSource
Channel Information WidgetSource
Team PageSourceA clone of the team page, rougly, for showing how/where to get various data from
Player Things
A VOD Player that Skips Muted SegmentsSourceEnough Said it plays VOD's
Twitch Player/parentSourceImplements most of the Embed JS player functions for test/example purposes
Twitch Player on Google SitesSourceA 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 DashboardSourceThe Dashboard core parts (edit stream info) but via the API
Simple Poll Tool/Results DisplaySourceA simple tool to create a poll and monitor the results
Simple Channel Points ManagerSourceA simple tool to manage rewards
Simple UnBan Requests ManagerSourceA simple tool to manage unban requests
Get my Stream KeySourceA simple demo to auth the user and show the user their own stream key.
Clips NavigatorSourceA simple demo fetch and display clips using started_at and ended_at parameters.
TwitchEmotesSource
Guest Star
Guest Star ControllerSourceWIP implementation of the Guest Star API/EventSub. Uses EventSub Websockets for real time updates.
Guest Star OBS Setup AssistantSource
EventSub WebSocket Transport Things
The BasicsSourceA basic EventSub WebSocket connector
The Chat TopicsSourceTesting the new Chat Topics
Notes about how Authentication works for Chat over EventSub Found Here
Creator Goals EventSub WebSocketSourceA EventSub WebSocket CreatorGoals Example
Charity EventSub WebSocketSourceA EventSub WebSocket Charity Example
Simple Poll Tool/Results DisplaySourceA simple tool to create a poll and monitor the results via EventSub WebSocket.
Extension Type Things
Extensions Config ToolSourceA 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

TwitchDev Discord

OMGLIEKWUT OHMYGOODNESS U SO MUCH HELP

Thank you for the help I want to give you beer/coffee money -> Check the Funding/Sponsor details