@huddle01/web-core
TypeScript icon, indicating that this package has built-in type declarations

2.0.12 • Public • Published

Huddle01 Core SDK

https://huddle01-assets-frontend.s3.amazonaws.com/general/huddle01-logo-blue.svg

People-powered Communication

Core SDK

The Huddle01 Vanilla JS SDK offers a comprehensive suite of methods and event listeners that allow for seamless real-time audio and video communication with minimal coding required.

Installing the packages:

You can install the Huddle01 Vanilla JS SDK packages in two ways:

  1. using the script tag: Add the following code snippet to the head of your HTML file: Replace with our CDN

    <script src="https://unpkg.com/@huddle01/web-core@umd/dist/index.global.js"></script>
    
    <script>
    
    let client;
    
    // call this function in onclick of `join room` button
    const init = async () => {
      client = new HuddleWebCore.HuddleClient({
        projectId: "YOUR_PROJECT_ID",
        options: {
          activeSpeakers: {
            // Number of active speaker visible in the grid, by default 8
            size: 10,
          },
        },
      });
      const room = await client.joinRoom({
        roomId: "YOUR_ROOM_ID",
        token: "YOUR_ACCESS_TOKEN",
      });
    };
    </script>
  2. using npm (or pnpm/bun): Run the following command in your terminal to install the package:

    npm install @huddle01/web-core

For more information head to https://huddle01.com/docs

💡 For any help reach out to us on Discord

Package Sidebar

Install

npm i @huddle01/web-core

Weekly Downloads

691

Version

2.0.12

License

ISC

Unpacked Size

1.02 MB

Total Files

153

Last publish

Collaborators

  • akash_huddle01
  • maxwang0223
  • itsomg
  • mizanxali
  • deepso7
  • 0xvaibhav
  • support01
  • a4748g