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

@moq/room

v0.1.0

Published

Headless multi-participant rooms over MoQ: announce-derived roster, local publish, remote watch, and a chat track

Readme

@moq/room

npm version TypeScript

Headless multi-participant rooms over Media over QUIC. A room is a path prefix. There is no service and no storage: joining is minting a moq-token rooted at that prefix (the LiveKit AccessToken analogue) and dialing the relay.

Participants are discovered from the announce stream. Identity is the path before camera.hang / screen.hang. Each participant publishes:

  • {identity}/camera.hang: camera + microphone, hd/sd renditions
  • {identity}/screen.hang: screenshare; its announce/unannounce is the share lifecycle

This is the generic room layer extracted from hang.live (roster, local/remote, hang/*.json metadata) and iroh-live (the chat track iroh-rooms is moving onto the announce bus). Memes, 3D layout, chat UI, and accounts stay in the app. The native twin is moq-room.

Install

bun add @moq/room

Token

Sign with @moq/token. root is the room, get: "" subscribes to everyone, put: "<identity>/" so a participant cannot publish at someone else's paths.

import { claims } from "@moq/room";
import { sign } from "@moq/token";

const token = await sign(key, claims("meet/demo", "alice"));
// Dial https://relay.example.com/meet/demo?jwt=<token>

On a public prefix (anon/), skip the token and dial that path directly.

Usage

import { Local, Room } from "@moq/room";
import { Connection, Path } from "@moq/net";

const connection = new Connection.Reload({
	url: new URL("https://relay.example.com/anon/meet/demo"),
	enabled: true,
});

const identity = Path.from("alice");
const local = new Local({
	connection: connection.established,
	identity,
	user: { name: "Alice" },
});
local.enabled.set(true);
local.cameraEnabled.set(true);
local.microphoneEnabled.set(true);

const room = new Room({ connection, identity });

// room.remotes is a Map<identity, Remote>. Each Remote has camera/screen
// Members; assign member.canvas and set member.muted to false to play audio.

hang.live should depend on this package for Room, Local, Remote, and the hang/*.json metadata tracks. Location stays an app-defined catalog extension (TRACK.location). hang.live's JSON chat (TRACK.chat = hang/chat.json) is also an extension; the JSON window track is Chat.TRACK ("chat").

import { Chat } from "@moq/room";

const publisher = Chat.Publisher.create(broadcast);
publisher.send("hello");

const subscriber = Chat.Subscriber.subscribe(broadcast.consume());
const event = await subscriber.recv(); // push, pop, or skip
// Call publisher.finish() and subscriber.close() when done.

A conferencing demo (no memes, no 3D, no chat UI) lives at demo/web/src/meet.html.

Room members start muted; set member.muted to false to play audio. Chat uses uncompressed JSON strings, a retained ten-second window with push/pop/skip events; it is not compatible with the raw UTF-8 iroh-live track. Empty normalized identities are rejected by claims.