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 🙏

© 2026 – Pkg Stats / Ryan Hefner

lidersdk

v1.0.1

Published

Run this script to install LiderSdk

Downloads

22

Readme

Integration

Run this script to install LiderSdk

npm install lidersdk

Creating the Lider Meet API object

After you have integrated the Meet API library and a container, you need to create a Lider Meet API object to define all the required information of the room which you want to provide in your website.

The Meet API object takes the following form:

lider = new LiderClient("lider-container");

The parameter to initiate LiderClient object is the id of the container which you have declared before. In this example we are using lider-container as a parameter of LiderClient object.

Starting your first meeting

After create an instance of LiderClient class, you can start your first meeting with the method join.

  lider.join({
    token: "your_app_token", // Token of your app
    roomId: "roomId", // Room ID, this field is required and decide the room of your clients
    user: {
      username: "username", // Username of client
    },
  });

The example above is the way how you can join your meeting. Function join have a list of required parameters and optional parameters. See full attribute at the next article.

Parameters

Function join have a list of required parameters and optional prameters. Below is an example and the definition of all fields

Example

This script below is an example with all parameter can pass into join object

  lider.join({
    accessType: "public",
    token: "your_app_token",
    roomId: "roomId",
    inviteUrl: "http://localhost:3002/2451-as4r-4sa"
    user: {
      username: "username",
      avatar: "avatar",
      metadata: {
        'userId': "123123123",
      }
    },
  });

Required

roomId (string)

roomId is the id of the room. This field is really important and base on it, we will group your clients to the meeting room. Please ensure that you need to use an enough complex string to group your clients correctly.

token (string)

token is the token string which we discuss above. This field is required and you need to pass it in initiation object to verify your app.

user (object)

user is the object contain the information of your client who want to join a meeting.

List allowed fields in user object

username string, required The name of client which will show in meeting.

avatar string, optional The avatar of client, this field is optional and if you dont pass it in user object. we will generate automatically client avatar base of the username you provided

metadata object, optional The metadata of client who join your meeting. We allow you to attach user information into each meeting. It help you tracking your meeting data easier.

Optional

accessType ('public' | 'askToJoin')

accessType decide the type of meeting.

public, the meeting is public and allow everyone join the meeting if they have a link.
askToJoin, your client need to approved by the author of meeting to join this room.

inviteUrl (string)

inviteUrl is the link of the meeting. Note that you will manage this link, Lider Iframe will show it in the meeting UI if you pass it. A UI of this URL invite-url-example.png

video (boolean)

video decide the status of client camera when join the meeting is on or off. The default value is off

audio (boolean)

audio decide the status of client microphone when join the meeting is on or off. The default value is off