glitch-javascript-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

Glitch Javascript SDK

Welcome to the Glitch JavaScript SDK. This SDK is designed to make access Glitch more easy and accessible for developers.

What is Glitch?

Glitch an open-source live community platform for gaming publishers and esports organizations to establish vibrant gaming communities. While the technology is retro-fitted for gaming, it can be used for various other use cases such as:

  • Live Shopping

  • Film Events

  • Conference Events

  • And more

How To Install

The library is agnostic to any application that is using Javascript with includes vanilla Javascript, React, Angular, Express and any of the other major frameworks. To install, simply run the following:

npm install glitch-javascript-sdk --save

This will add the package to your package.json

How To Use

The API coincides with the Glitch Backend. You can use the API as such:


import Glitch from 'glitch-javascript-sdk';

//Set the API Url to your backend
Glitch.config.Config.setBaseUrl("https://api.glitch.local/api/", true);

//Set Auth JSON Web Token (if user has loggedin)
Glitch.config.Config.setAuthToken("some-jwt");

//Make API Calls 
Glitch.api.Auth.login("john@example.com", "abc123").then(()=> {

}).catch(error => {

)

Documentation

Documentation is produced via typedoc as the code comments are extensive and turned in readable documentation.

https://glitch-gaming-platform.github.io/Glitch-Javascript-SDK/

Readme

Keywords

none

Package Sidebar

Install

npm i glitch-javascript-sdk

Weekly Downloads

260

Version

1.3.3

License

ISC

Unpacked Size

2.72 MB

Total Files

179

Last publish

Collaborators

  • bingewave_developers