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

zatmeet-embed-sdk

v1.0.1

Published

ZAT Meet CPaaS Embedding SDK - Easily embed video rooms into your application

Readme

zatmeet-embed-sdk

The official ZAT Meet CPaaS (Communication Platform as a Service) Embed SDK.

This elegant, plug-and-play Javascript wrapper library allows you to embed ZAT Meet video rooms directly into your custom DOM containers.

Installation

npm install zatmeet-embed-sdk
# or
yarn add zatmeet-embed-sdk

Basic Usage (Vanilla JS)

<div id="zatmeet-container" style="width: 100vw; height: 100vh;"></div>
import ZatMeetEmbed from 'zatmeet-embed-sdk';

// 1. Fetch meeting token from your backend 
// (which securely communicates with ZAT Meet API)
const token = "YOUR_SECURE_JWT_TOKEN";

// 2. Initialize the embed
const room = new ZatMeetEmbed("zatmeet-container", {
  meetingId: "your-meeting-id",
  token: token,
  name: "Dr. Smith", 
  micOn: true,
  cameraOn: true
});

// 3. Listen to events
room.on("connected", () => {
  console.log("Joined meeting successfully!");
});

room.on("disconnected", () => {
  console.log("Left meeting.");
});

room.on("error", (err) => {
  console.error("ZAT Meet Error:", err);
});

React Hook & Component Guide

To easily use this in React, you can copy this wrapper component into your project. It manages the lifecycle and automatically cleans up the iframe when unmounting.

import React, { useEffect, useRef } from 'react';
import ZatMeetEmbed from 'zatmeet-embed-sdk';

interface ZatMeetRoomProps {
  meetingId: string;
  token: string;
  userName?: string;
  userId?: string;
  onLeave?: () => void;
  onError?: (error: any) => void;
}

export const ZatMeetRoom: React.FC<ZatMeetRoomProps> = ({ 
  meetingId, 
  token, 
  userName, 
  userId, 
  onLeave, 
  onError 
}) => {
  const containerRef = useRef<HTMLDivElement>(null);
  const roomRef = useRef<any>(null);

  useEffect(() => {
    if (!containerRef.current || !meetingId || !token) return;

    const containerId = `zatmeet-container-${meetingId}`;
    containerRef.current.id = containerId;

    try {
      roomRef.current = new ZatMeetEmbed(containerId, {
        meetingId,
        token,
        name: userName || "Guest",
        userId: userId || "",
      });

      roomRef.current.on("disconnected", () => {
        if (onLeave) onLeave();
      });

      roomRef.current.on("error", (err: any) => {
        if (onError) onError(err);
      });

    } catch (err) {
      if (onError) onError(err);
    }

    // Cleanup
    return () => {
      if (roomRef.current) {
        roomRef.current.destroy();
        roomRef.current = null;
      }
    };
  }, [meetingId, token, userName, userId, onLeave, onError]);

  return (
    <div 
      ref={containerRef} 
      style={{ width: '100%', height: '100%', minHeight: '600px' }} 
    />
  );
};

Available Options

| Option | Type | Default | Description | |---|---|---|---| | meetingId | string | Required | The ID of the meeting room. | | token | string | Required | The SDK authorization JWT token. | | name | string | "Embedded Guest" | The participant name shown to others. | | userId | string | "" | The custom user identifier. | | micOn | boolean | true | Initial microphone status. | | cameraOn | boolean | true | Initial camera status. | | chat | boolean | true | Whether to show the chat panel. | | whiteboard| boolean | true | Whether to show the whiteboard. | | participants| boolean| true | Whether to show the participants list. | | baseUrl | string | window.location.origin | Custom base URL of the ZATMEET instance. |

Methods

  • muteAudio(): Programmatically mute user's audio input.
  • unmuteAudio(): Programmatically unmute user's audio input.
  • muteVideo(): Programmatically mute user's camera stream.
  • unmuteVideo(): Programmatically unmute user's camera stream.
  • leave(): Programmatically leave the meeting room.
  • destroy(): Clean up and remove the embed iframe from the DOM.

Events

  • connected: Emitted when successfully joined the room.
  • disconnected: Emitted when the user leaves or is disconnected.
  • participant-joined: Emitted when a new participant joins (passes participant info).
  • participant-left: Emitted when a participant leaves (passes participant info).
  • error: Emitted when an error occurs (passes error message).