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

@telestack/rtc

v1.0.5

Published

Industrial-grade P2P RTC SDK with Edge Signaling

Readme

@telestack/rtc

Industrial-grade P2P WebRTC SDK for Building Real-Time Collaboration Engines.

@telestack/rtc is a high-performance, developer-first WebRTC SDK designed for production-scale video conferencing, file sharing, and real-time synchronization. It features a decentralized Mesh architecture with Edge-based signaling for ultra-low latency.

🚀 Key Features

  • Mesh Networking: Peer-to-peer connections for small to medium groups (up to 5 peers) without expensive SFU costs.
  • Adaptive Quality Engine: Automatic bitrate scaling (up to 2.5Mbps) based on real-time RTT and packet loss.
  • E2E Encryption: Military-grade AES-GCM encryption for DataChannels.
  • AI Virtual Background: Built-in support for background blur and images (via MediaPipe).
  • Live Captions: Real-time audio transcription using the Web Speech API.
  • Advanced DataChannels: Reliable message passing and high-speed binary file transfer with backpressure handling.
  • Edge Signaling: Powered by Telestack Edge Workers for global, low-latency connection negotiation.

📦 Installation

npm install @telestack/rtc

🛠️ Quick Start

1. Initialize the SDK

import { TelestackRTC } from '@telestack/rtc';

const rtc = TelestackRTC.init({
  apiKey: 'your_telestack_api_key',
  gatewayUrl: 'your_edge_gateway_url'
});

2. Join a Room

// Join a room and start your camera/audio
const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true });

await rtc.joinMesh('room-123', stream);

3. Handle Remote Streams

rtc.onTrack = (event, peerId) => {
  const remoteVideo = document.getElementById(`video-${peerId}`);
  remoteVideo.srcObject = event.streams[0];
};

4. Real-time Messaging

// Send a message to everyone
rtc.broadcast({ type: 'chat', text: 'Hello World!' });

// Listen for incoming messages
rtc.onMessage = (data, peerId) => {
  console.log(`Message from ${peerId}:`, data);
};

🔐 Advanced Usage

E2E Encryption

// Enable encryption with a shared secret
rtc.enableE2E('your-secret-key');

// All DataChannel traffic (chat, files, sync) is now encrypted
rtc.broadcast({ type: 'secure-data', val: 42 });

AI Virtual Background

const videoTrack = stream.getVideoTracks()[0];

// Apply blur background
const backgroundTrack = await rtc.startVirtualBackground('blur');

// Replace the original track in the local stream
stream.removeTrack(videoTrack);
stream.addTrack(backgroundTrack);

File Transfer

const file = fileInput.files[0];
rtc.sendFile(file);

rtc.onFileProgress = (p) => {
  console.log(`Transferring ${p.name}: ${p.percent}%`);
};

rtc.onFileReceived = (file, peerId) => {
  console.log(`Received ${file.name} from ${peerId}`);
};

📖 API Reference

For detailed documentation, event lists, and architecture diagrams, check out the Full API Reference.

📄 License

MIT © Telestack HQ