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

quicrtc

v0.1.1

Published

Real-time transport for AI agent sessions over QUIC/WebTransport. TypeScript client, wire-compatible with the Go server.

Readme

quicrtc

TypeScript client for quicrtc, wire-compatible with the Go server.

Install

npm install quicrtc

Requires WebTransport in the browser or Node 18+ with a WebTransport-capable runtime.

Quick start

import { QuicRTCClient, TrackKind } from 'quicrtc';

const client = new QuicRTCClient();
await client.connect('https://your-server/wt', {
  slug: 'auth-token',
  certHash: 'base64url-sha256-der-hash', // only for self-signed dev certs
});

// Receive on a named track
const au = await client.recvOn('reasoning');
console.log(new TextDecoder().decode(au.bytes));

// Publish a track back to the server
const sender = await client.publish({ name: 'actions', kind: TrackKind.ToolCalls });
await sender.send({
  bytes: new TextEncoder().encode('{"type":"click","x":100,"y":200}'),
  keyframe: true,
  ptsMicro: 0,
  seq: 0,
});

await client.close();

A framework-free browser viewer that exercises every track kind lives in examples/viewer/.

API

QuicRTCClient

const client = new QuicRTCClient();
await client.connect(url, options);
interface ClientOptions {
  slug: string;                  // auth credential (shared secret or JWT)
  certHash?: string;             // SHA-256 cert pin for self-signed dev certs
  insecureSkipVerify?: boolean;  // dev only
  helloTimeout?: number;         // ms
  sessionId?: string;            // resume an earlier session
  features?: string[];           // capabilities to negotiate
}

Methods:

  • recv(), recvOn(trackName) — pull next AU from primary or named track
  • publish(track) — bidirectional: publish a track back to the server
  • requestKeyframe(trackName) — subscriber-driven keyframe request
  • sendDatagram(payload), receiveDatagram() — raw QUIC datagrams
  • getDataChannel() — reliable bidi messaging
  • getSDP(), getRemoteTracks(), getStats() — introspection
  • close()

Tracks

enum TrackKind {
  Video = 'video',
  Audio = 'audio',
  Tokens = 'tokens',
  ToolCalls = 'tool_calls',
  Telemetry = 'telemetry',
}

// Pull
const au = await track.recv();

// Push
track.onAU((au) => { /* ... */ });

Data channel

const dc = client.getDataChannel();
await dc.sendText('hello');
await dc.send(new Uint8Array([1, 2, 3]));
dc.onMessage((data) => { /* ... */ });

Wire codec performance

Allocation-free on the hot path. Reproduce with npm run bench:

  • Control frame encode — ~0.1 µs
  • Feed frame encode (1 KB payload) — ~0.3 µs
  • Datagram envelope encode (64 B) — ~0.1 µs
  • Datagram envelope decode — <0.1 µs
  • Backpressure marshal (with needs_keyframe) — ~0.2 µs
  • HELLO / SDP JSON marshal + unmarshal — ~0.4 µs each

End-to-end numbers (Go server side) live in the repo's benchmarks suite.

Browser support

Note: WebTransport is an evolving web standard. Browser support and implementation details may change.

| Browser | WebTransport | Status | |-------------|--------------|-------------------------| | Chrome 114+ | Native | Full | | Edge 114+ | Native | Full | | Safari 26.4+ (iOS / macOS) | Native | Full (shipped March 2026) | | Firefox | Behind flag | Enable network.webtransport.enabled |

License

Apache 2.0 — see LICENSE.