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

@hivertc/sdk

v1.0.0

Published

HiveRTC SDK — Create Zoom-like meeting rooms with SFU-based WebRTC

Readme

@hivertc/sdk

🐝 HiveRTC SDK — Create Zoom-like meeting rooms with SFU-based WebRTC. One npm install to add real-time video conferencing to any web app.

Features

  • 📹 Video & Audio — HD video calls powered by Mediasoup SFU
  • 🖥️ Screen Sharing — Present slides, share code, demo apps
  • 💬 In-Meeting Chat — Real-time text messaging alongside video
  • 🎙️ Active Speaker Detection — Auto-detect who's talking
  • Hand Raise & Reactions — Engagement for classrooms and town halls
  • ⏺️ Meeting Recording — Client-side recording with MediaRecorder API
  • 📊 Network Quality Monitor — Live RTT, packet loss, and quality score
  • 🔌 Framework Agnostic — Works with React, Vue, Svelte, vanilla JS
  • ⚛️ React Bindings@hivertc/react with hooks and pre-built components

Quick Start

Installation

npm install @hivertc/sdk socket.io-client mediasoup-client

Vanilla JavaScript / TypeScript

import { HiveRTC } from '@hivertc/sdk';

const hive = new HiveRTC({
  serverUrl: 'http://localhost:3002',
  debug: true,
});

// Join a room
const room = await hive.joinRoom('daily-standup', {
  userId: 'user-123',
  displayName: 'Tanmay',
});

// Get your local stream
room.on('localStream', (stream) => {
  document.querySelector('video#local').srcObject = stream;
});

// Handle remote peers
room.on('peerJoined', ({ userId, stream, kind }) => {
  if (kind === 'video') {
    const video = document.createElement('video');
    video.srcObject = stream;
    video.autoplay = true;
    document.getElementById('peers').appendChild(video);
  }
});

room.on('peerLeft', ({ userId }) => {
  console.log(`${userId} left the meeting`);
});

// Controls
room.toggleMic();
room.toggleCam();
await room.shareScreen();
room.sendMessage('Hello everyone!');
room.raiseHand();
room.startRecording();
room.leave();

React

npm install @hivertc/react
import { useHiveRoom, VideoTile, ControlBar } from '@hivertc/react';

function MeetingRoom() {
  const {
    joinRoom, leaveRoom, toggleMic, toggleCam,
    shareScreen, stopScreenShare, sendMessage,
    raiseHand, lowerHand, startRecording, stopRecording,
    localStream, remoteStreams, chatMessages,
    isMicOn, isCamOn, isScreenSharing, isRecording, isHandRaised,
    activeSpeaker, networkQuality, connectionState, joined,
  } = useHiveRoom({ serverUrl: 'http://localhost:3002' });

  return (
    <div>
      {!joined ? (
        <button onClick={() => joinRoom('my-room', { userId: 'user-1' })}>
          Join Meeting
        </button>
      ) : (
        <>
          {localStream && <VideoTile stream={localStream} muted mirror label="You" />}

          {remoteStreams
            .filter(s => s.kind === 'video')
            .map(s => (
              <VideoTile key={s.peerId} stream={s.stream} label={s.userId} />
            ))}

          <ControlBar
            isMicOn={isMicOn} isCamOn={isCamOn}
            isScreenSharing={isScreenSharing} isRecording={isRecording}
            isHandRaised={isHandRaised}
            onToggleMic={toggleMic} onToggleCam={toggleCam}
            onShareScreen={shareScreen} onStopScreenShare={stopScreenShare}
            onStartRecording={startRecording} onStopRecording={stopRecording}
            onRaiseHand={raiseHand} onLowerHand={lowerHand}
            onLeave={leaveRoom}
          />
        </>
      )}
    </div>
  );
}

API Reference

HiveRTC

| Method | Description | |--------|-------------| | new HiveRTC(config) | Create SDK instance | | joinRoom(roomId, options?) | Join a room → returns Room | | getRoom(roomId) | Get an existing room | | destroy() | Leave all rooms |

Room

| Method | Description | |--------|-------------| | join(options?) | Connect and publish media | | leave() | Full cleanup | | toggleMic() | Toggle microphone | | toggleCam() | Toggle camera | | shareScreen() | Start screen sharing | | stopScreenShare() | Stop screen sharing | | sendMessage(text) | Send chat message | | raiseHand() / lowerHand() | Toggle hand raise | | startRecording() | Start client-side recording | | stopRecording() | Stop recording → Blob |

Room Events

| Event | Payload | When | |-------|---------|------| | localStream | MediaStream | Your media is ready | | peerJoined | { peerId, userId, stream, kind } | New participant | | peerLeft | { peerId, userId } | Participant left | | chatMessage | ChatMessage | New chat message | | handRaised | { peerId, userId, raised } | Hand raise toggled | | activeSpeaker | { peerId, userId, volume } | Speaker changed | | networkQuality | NetworkQuality | Connection quality update | | screenShareStarted | { peerId, userId, stream } | Screen share began | | screenShareStopped | { peerId, userId } | Screen share ended | | recordingStopped | Blob | Recording file ready |

Architecture

┌─────────────────────┐
│   Your Application  │
│  (React/Vue/Vanilla) │
└──────────┬──────────┘
           │ npm install @hivertc/sdk
┌──────────▼──────────┐
│   @hivertc/sdk      │
│  ┌───────────────┐  │
│  │  HiveRTC      │  │
│  │  └─ Room      │  │
│  │     ├─ Signal  │  │ ← Socket.io to SFU
│  │     ├─ Media   │  │ ← mediasoup-client
│  │     ├─ Chat    │  │
│  │     ├─ Screen  │  │
│  │     ├─ Record  │  │
│  │     └─ Speaker │  │
│  └───────────────┘  │
└──────────┬──────────┘
           │ WebRTC + Socket.io
┌──────────▼──────────┐
│  HiveRTC SFU Server │
│  (Mediasoup + Redis) │
└─────────────────────┘

License

MIT