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

rankrtc

v1.1.11

Published

React component that embeds Janus client inside react application

Readme

RankRTC React

React component to embed Interact conference into React application

Installation

NPM

npm install rankrtc

Yarn

yarn add rankrtc

Usage

    import { RankRTC } from 'rankrtc';
    import 'rankrtc/dist/index.css';
  
    const config = {
      server: <Interact portal url>
    }
    const eventHandler = {
	    joinSuccess: async () => {},
	    joinFail: (event) => {},
	    leave: () => {},
	    publishSuccess: () => {},
	    publishFail: (event) => {},
	    participantJoined: (participant) => {},
	    participantLeft: (participant) => {},
	    participantListUpdated: (participants) => {},
	    recordingStarted: () => {},
	    recordingStopped: () => {},
	    videoMuted: () => {},
	    videoUnmuted: () => {},
	    audioMuted: () => {},
	    audioUnmuted: () => {},
	    shareStarted: () => {},
	    shareStopped: () => {},
	    shareFailed: () => {},
	    deviceUpdated: ({ audioInput, videoInput }) => {},
    }
    const  App  = () => {
	    return ( 
		    <div className='render'>
			    <RankRTC
				    displayName={"John Doe"}
			        roomName={1234}
			        configParams={config}
			        joinNow={true}
			        on={eventHandler}
		        />
			</div>
	    )
    }
    export default App

Props

| Props | Required | Description | |-- |-- |-- | | displayName | True | Name of the participant to be displayed | | roomName | True | Application generated roomId in number | | userMeta | False | Application specific metadata of the user in JSON format | | configParams| True | Configuration to Initialize conference | | joinNow| True | Based on this parameter, conference will be joined. Keep it false. Whenever you want to start the conference, make it true | | on | True | Callback notifications from the component. You'll receive events from the conference, to perform required tasks at application |

configParams

Configuration to Initialize conference. Below are the parameters list.

| Params | Required | Description | |-- |-- |-- | | server | True | Portal/Proxy address of Interact | | iceServers | False | Stun and Turn server details. You should use this, if you're behind NAT environment, i.e. corporate networks | viewerOnly | False | This parameter defines, if the participant wants to be publisher or wants to view the conference only. Default is false.

on

Callback notifications from the component. All the handlers are required for now. | Handler | Returns | Event | |-- |-- |-- | | joinSuccess | | Conference join successful | joinFail| event | Conference join failure | | leave || Conference ended | | publishSuccess|| Publishing of feed successful| | publishFail| event | Publishing of feed failed | | participantJoined| participant details | A new participant has joined | | participantLeft| participant details | A participant has left | | participantListUpdated| list of participants | Participant list has been updated due to joining/leaving of participant | | recordingStarted|| Recording has been started in the room | | recordingStopped|| Recording has been stopped in the room | | deviceUpdated| { audioInput, videoInput } | Hardware device list updated | | videoMuted|| Own camera has been muted | | videoUnmuted|| Own camera has been unmuted | | audioMuted|| Own mic has been muted | | audioUnmuted|| Own mic has been unmuted | | shareStarted|| Screen sharing started | | shareStopped|| Screen sharing stopped | | shareFailed|| Screen sharing start failed |

API Functions

| Function | Argument(s) | Returns | |-- |-- |-- | | muteAudio | | Returns through event handler| | muteVideo | | Returns through event handler| | unmuteAudio | | Returns through event handler| | unmuteVideo | | Returns through event handler| | isAudioMuted | | True / False | isVideoMuted | | True / False | listParticipants | room id| Participants array | hangup | | Returns through event handler| | shareScreen | | Returns through event handler| | stopShare | | Returns through event handler| | changeCamera | | | | changeMic | | |