Code Monkey home page Code Monkey logo

twitch-extension-starter's Introduction

Twitch Extension Starter

Note: This project is outdated and the official TwitchDev resources/repos are recommended. If you're new to Twitch extensions, I highly recommend checking out this repo: /extension-getting-started

This project will get you started developing Twitch Extensions using React!

Getting started

  1. Install with yarn or npm:

yarn or npm install

  1. Bundle and start development server:

yarn start or npm run start

  1. It will tell you the paths to the different pages in the console, e.g. "https://localhost:8080/panel.html". Go to this address in your browser.

  2. Open file in src/components/PanelPage/Panel.js, change <h1>This is the panel!</h1> to something cool and watch it being updated live in the browser!

  3. Happy hacking!

Testing on Twitch

To test your extension on Twitch while running the development server (yarn start as described above), follow these steps:

  1. Create your Twitch extension at https://dev.twitch.tv

  2. Inside your extension versions, under "Asset Hosting", insert the correct values for Testing Base URI (by default: https://localhost:8080/), Panel Viewer Path (default: panel.html), Config Path (default: config.html) and Live-Config Path (default: live_config.html) respectively. These are the pages defined under src/pages/.

  3. On the Versions -> Version Status page, click the "View on Twitch and Install" button.

  4. Install your extension. You should be redirected to your config page and already see the content (default: "You're a streamer on the config page!")

  5. Go back to the extensions inside your streamer dashboard, locate your extension under "Installed Extensions" and "Activate" your new extension.

  6. Go to your channel and see the Viewer page of your extension integrated on Twitch! Make any changes and see them change live!!

  7. Lastly go to your live streamer dashboard and see your live config page displayed in the Extensions widget!

In Short:

  • Your viewer page is being displayed on your channel either as a video overlay (when your channel is live) or panel. You can choose between overlay or panel when creating the extension.

  • Your config page is being displayed in your streamer's extensions dashboard, after installing the extension.

  • Your live config page is being displayed in your streamer's live dashboard, after installing and activating the extension.

Packaged ZIP

To create the ZIP, after successfully testing the extension, run "yarn package". This will create a new ZIP file in /dist_zip folder named after the current version set in your package.json.

In your extension's settings under Versions -> Version Assets, upload the created ZIP file. Then your're ready to move to "Hosted Test" in the Version Status section.

Alternative

There's now an official developer-rig by TwitchDev, which gives you a more integrated environment. For an official solution, please go to https://github.com/twitchdev/developer-rig. You could also combine the rig with this starter code.

twitch-extension-starter's People

Contributors

embiem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.