npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

klas-video-sdk

v1.0.2

Published

The Video SDK provides video, audio, screen sharing, chat, data streams, and more, as a service. You can build with all of these features, or pick and choose. The Video SDK allows users to integrate klas live learning technology into their app

Downloads

8

Readme


sidebar_position: 2

The Dashboard

Login to your Dashboard connected through:

A Visit the API Dashboard.

https://api.tryklas.com

Proceeding With The Sign In

  • After Visiting The Url

Login Page

  • Enter your email and password
  • And Login To Proceed to The Dashboard
  • If You do not have and Account Proceed to Sign Up

Proceeding With The Sign Up

  • After Visiting The Sign Up Page

Login Page

  • Enter your Company Name, Email and Password
  • And Login To Proceed to The Dashboard
  • If You do not have and Account Proceed to Sign Up
  • After Sign Up Proceed to Sign In

Getting Your Public/ API Key

  • After Signing In To The Dashboard

Login Page

  • Click on API Keys on the side bar
  • copy the code in the API Key by clicking copy under the label API KEY

Using the public / API Key

  • After Copying The Code from the Dashboard
  • Paste Your Code As An .env variable for security Reasons
  • But For Test Paste Your Code Directly as publicKey
import Connector from 'klas-api-sdk';

export default function MyReactPage() {
  const publicKey = process.env.REACT_NEXT_PUBLIC_KEY;

  const [roomID, setRoomID] = setState('');
  const [userID, setUserID] = setState('');
  const [name, setName] = setState('');
  const [email, setEmail] = setState('');
  const [topic, setTopic] = setState('');

  const connectToSdk = (e) => {
    e.preventDefault();
    if (roomID === '' ) {
      return alert('No Room ID');
    }
    Connector({
      roomID: roomID,
      userID: userID,
      name: name,
      email: email,
      topic: topic,
      pubKey: publicKey,
      isInstructor: false
    });
  }

  return (
    <div>
      <h1>Connect to Klas Live With SDK</h1>
      <p>Jump To Klas</p>
      <form onSubmit={connectToSdk}>
        <input value={roomID} onChange={(e)=>setRoomID(e.target.value)}/>
        <input value={userID} onChange={(e)=>setUserID(e.target.value)}/>
        <input value={name} onChange={(e)=>setName(e.target.value)}/>
        <input value={email} onChange={(e)=>setEmail(e.target.value)}/>
        <input value={topic} onChange={(e)=>setTopic(e.target.value)}/>
        <input type='submit' value='Connect To SDK'/>
      </form>
    </div>
  );
}

For instructors

Note:

For Students set isInstructor to true

Connector({
  roomID: roomID,
  userID: userID,
  name: name,
  email: email,
  topic: topic,
  pubKey: publicKey,
  isInstructor: true
});

For students

Note:

For Students set isInstructor to false

  • Topic is not required while connecting a student
Connector({
  roomID: roomID,
  userID: userID,
  name: name,
  email: email,
  topic: topic,
  pubKey: publicKey,
  isInstructor: false
});