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

@xtr-dev/rondevu-client

v0.21.16

Published

TypeScript client for Rondevu with durable WebRTC connections, automatic reconnection, and message queuing

Readme

Rondevu Client

npm version

WebRTC signaling client with durable connections

TypeScript client for Rondevu, providing WebRTC signaling with automatic reconnection, message buffering, and tags-based discovery.

Features

  • Ed25519 Identity: Your public key IS your identity (like Ethereum addresses)
  • Tags-Based Discovery: Find peers using tags (e.g., ["chat", "video"])
  • Automatic Reconnection: Built-in exponential backoff
  • Message Buffering: Queues messages during disconnections

Installation

npm install @xtr-dev/rondevu-client

Quick Start

import { Rondevu } from '@xtr-dev/rondevu-client'

// ============================================
// ALICE: Host and wait for connections
// ============================================
const alice = await Rondevu.connect()

alice.on('connection:opened', (offerId, connection) => {
  console.log('Connected to', connection.peerPublicKey)
  connection.on('message', (data) => console.log('Received:', data))
  connection.send('Hello!')
})

const offer = await alice.offer({ tags: ['chat'], maxOffers: 5 })
// Later: offer.cancel() to stop accepting connections

// ============================================
// BOB: Connect to Alice
// ============================================
const bob = await Rondevu.connect()

const peer = await bob.peer({ tags: ['chat'] })

peer.on('open', () => peer.send('Hello Alice!'))
peer.on('message', (data) => console.log('Received:', data))

API Reference

Rondevu.connect()

const rondevu = await Rondevu.connect({
  apiUrl?: string,         // Default: 'https://api.ronde.vu'
  keyPair?: KeyPair,       // Reuse existing keypair
  iceServers?: IceServerPreset | RTCIceServer[],  // Default: 'rondevu'
  debug?: boolean
})

rondevu.getPublicKey()  // Get public key (your identity)
rondevu.getKeyPair()    // Get keypair for persistence

ICE Presets: 'rondevu' (default), 'rondevu-relay', 'google-stun', 'public-stun'

rondevu.peer()

const peer = await rondevu.peer({
  tags: string[],
  publicKey?: string,       // Connect to specific peer
  rtcConfig?: RTCConfiguration
})

// Events
peer.on('open', () => {})
peer.on('close', (reason) => {})
peer.on('message', (data) => {})
peer.on('error', (error) => {})
peer.on('reconnecting', (attempt, max) => {})

// Properties & Methods
peer.state           // 'connecting' | 'connected' | 'reconnecting' | ...
peer.peerPublicKey
peer.send(data)
peer.close()

rondevu.offer()

const offer = await rondevu.offer({
  tags: string[],
  maxOffers: number,
  ttl?: number,       // Offer lifetime in ms (default: 300000)
  autoStart?: boolean // Auto-start filling (default: true)
})

offer.cancel()  // Stop accepting connections

rondevu.on('connection:opened', (offerId, connection) => {
  connection.on('message', (data) => {})
  connection.send('Hello!')
})

rondevu.discover()

const result = await rondevu.discover(['chat'], { limit: 20 })
result.offers.forEach(o => console.log(o.publicKey, o.tags))

Identity (Ed25519 Keypairs)

Your identity is an Ed25519 public key - no usernames, no registration, no claiming conflicts. Generate a keypair locally and start making requests immediately.

// Auto-generated keypair
const rondevu = await Rondevu.connect()
console.log(rondevu.getPublicKey())  // '5a7f3e2d...' (64 hex chars)

// Save and restore keypair for persistent identity
const keyPair = rondevu.getKeyPair()
localStorage.setItem('keypair', JSON.stringify(keyPair))

// Later: restore
const saved = JSON.parse(localStorage.getItem('keypair'))
const rondevu = await Rondevu.connect({ keyPair: saved })

Tag Validation

Tags: 1-64 chars, lowercase alphanumeric with dots/dashes.

Valid: chat, video-call, com.example.service

Links

License

MIT