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

catalyst-vc-react

v3.2.1

Published

Reliable and scalable open-source video chat in a few lines of code

Downloads

117

Readme

Catalyst Video Chat

📷💬 Reliable and scalable open-source video chat in a few lines of code.

Check out the full Catalyst documentation!

Quick Start

Installation

Catalyst can be installed using either npm or yarn

npm i catalyst-vc-react

Importation

import CatalystChat from "catalyst-vc-react"

Implementation

	<CatalystChat
			room="ROOM_NAME"
			appId="YOUR_CATALYST_PROJECT_ID"
			name="MEMBER_NAME"
			onEndCall={() => console.log('Call ended!')}
		/>

You will need a Catalyst appId API key to connect to our servers. This can be obtained in under a minute by visiting the API keys tab of our management portal.

Our servers are free for your first 30 monthly active users, which means they should not cost you anything in development (and possibly production)!

We recommend a minimum parent container size of 400px X 450px.

Parameters

| Prop | Description | Type | Example Value | Required | | ------------ | ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------- | -------------------------------------- | -------- | | room | Unique session identifier (peers with the same room are connected) | string | ROOM_NAME | Required | | appId | Unique project identifier, obtained from the API keys tab of our management portal | string | YOUR_CATALYST_PROJECT_ID | Required | | name | Display name of member joining the call | string | MEMBER_NAME | Optional | | fade | Milliseconds of no user interaction before fading out controls. Disabled when set to 0 | number | 600 | Optional | | audioOffDefault |Is microphone disabled by default | boolean | true | Optional | | videoOffDefault | Is webcam disabled by default | boolean | true | Optional | | theme | Color scheme. Includes: primary (main color), secondary (background color), tertiary (button color), quaternary (button hover color), quinary (text color) | string | { primary?: string; secondary?: string; tertiary?: string; quaternary?: string; quinary?: string; } | default | Optional | | simulcast | Publish multiple levels of quality for video streams | boolean | true | Optional | | disableChat | Hide text chat functionality | boolean | true | Optional | | disableSetupView | Skip setup view | boolean | true | Optional | | disableNameField | Hide user name input field in setup view | boolean | true | Optional | | cstmSetupBg | Gradient or hex-code background for setup view | string | #fff | Optional | | disableRefreshBtn | Hide refresh button in top settings bar | boolean | true | Optional | | cstmWelcomeMsg | Message displayed when you are the only member in room | string, HTMLElement | Welcome! | Optional | | cstmSupportUrl | Url for all help/support messages. When set to an empty string hides support icon. | string | https://catalyst.chat/contact.html | Optional | | arbData | Data passed to all other members of room | Uint8Array | TextEncoder().encode('str') | Optional | | handleReceiveArbData | Function triggered whenever arbitrary data is received | Function | (arbData: Uint8Array) => void | Optional | | handleUserData | Function passed all user metadata after token is generated | Function | (userData: CatalystUserData) => void | Optional | | onJoinCall | Function triggered when user joins the call | Function | () => void | Optional | | onMemberJoin | Function triggered when a member joins the call | Function | () => void | Optional | | onMemberLeave | Function triggered when a member leaves the call | Function | () => void | Optional | | onLeaveCall | Function triggered when user leaves call | Function | () => void | Optional |

Meta

Created by @GoldinGuy and @JoeSemrai

The master branch of this repository contains Catalyst V3, the latest version. The older V2 version can be found on the Catalyst V2 Branch.

Catalyst is designed with safety and security in mind. Visit our terms of service and privacy policy to learn more.

Catalyst V3 is based on a custom version of WebRTC SFU LiveKit infrastructure to allow for more stability and scalability. Prior versions of Catalyst made use of direct P2P protocols.

Distributed under the AGPL-3.0-only license. See LICENSE for more information.