Developing with MEDKit

Set up your development environment and learn the basics

In this section, learn the basics of developing extensions that take full advantage of Muxy functionality through MEDKit, the Muxy JavaScript SDK.

Muxy provides state stores with varying scopes, where you can collect data about your extensions and viewers and access it in real time.

You can also call directly into the Twitch API. MEDKit even provides a convenience wrapper for some of the more common use cases.

Access Muxy Functionality in JavaScript

The Muxy.SDK class provides the JavaScript methods you use to access all functionality and services. Instantiate this class as part of your initialization code for any page script.

// create an SDK instance named "medkit"
const medkit = new Muxy.SDK();
// call a method to retrieve data
medkit.getAllState();