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/hang-ui

v0.1.2

Published

Media over QUIC library UI components

Downloads

30

Readme

@moq/hang-ui

npm version TypeScript

A TypeScript library for interacting with @moq/hang Web Components. Provides methods to control playback and publish sources, as well as status of the connection.

Installation

npm add @moq/hang-ui
# or
pnpm add @moq/hang-ui
yarn add @moq/hang-ui
bun add @moq/hang-ui

Web Components

Currently, there are two Web Components provided by @moq/hang-ui:

  • <hang-watch-ui>
  • <hang-publish-ui>

Here's how you can use them (see also @moq/hang-demo for a complete example):

<hang-watch-ui>
    <hang-watch url="<MOQ relay URL>" path="<relay path>" muted>
        <canvas style="width: 100%; height: auto; border-radius: 4px; margin: 0 auto;"></canvas>
    </hang-watch>
</hang-watch-ui>
	<hang-publish-ui>
		<hang-publish url="<MOQ relay URL>" path="<relay path>">
			<video
				style="width: 100%; height: auto; border-radius: 4px; margin: 0 auto;"
				muted
				autoplay
			></video>
		</hang-publish>
	</hang-publish-ui>

Project Structure

The @moq/hang-ui package is organized into modular components and utilities:

src/
├── publish/             # Publishing UI components
│   ├── components/      # UI controls for publishing
│   ├── hooks/           # Custom Solid hooks for publish UI
│   ├── styles/          # CSS styles for publish UI
│   ├── context.tsx      # Context provider for publish state
│   ├── element.tsx      # Main publish UI component
│   └── index.tsx        # Entry point for publish UI
│
├── watch/               # Watching/playback UI components
│   ├── components/      # UI controls for watching
│   ├── hooks/           # Custom Solid hooks for watch UI
│   ├── styles/          # CSS styles for watch UI
│   ├── context.tsx      # Context provider for watch state
│   ├── element.tsx      # Main watch UI component
│   └── index.tsx        # Entry point for watch UI
│
└── shared/              # Shared components and utilities
    ├── components/      # Reusable UI components
	│   ├── button/      # Button component
	│   ├── icon/        # Icon component
	│   └── stats/       # Statistics and monitoring components
    ├── flex.css         # Flexbox utilities
    └── variables.css    # CSS variables and theme

Module Overview

publish/

Contains all UI components related to media publishing. It provides controls for selecting media sources (camera, screen, microphone, file) and managing the publishing state.

  • MediaSourceSelector: Allows users to choose their media source
  • PublishControls: Main control panel for publishing
  • Source buttons: Individual buttons for camera, screen, microphone, file, and "nothing" sources
  • PublishStatusIndicator: Displays connection and publishing status

watch/

Implements the video player UI with controls for watching live streams. Includes playback controls, quality selection, and buffering indicators.

  • WatchControls: Main control panel for the video player
  • PlayPauseButton: Play/pause toggle
  • VolumeSlider: Audio volume control
  • LatencySlider: Adjust playback latency
  • QualitySelector: Switch between quality levels
  • FullscreenButton: Toggle fullscreen mode
  • BufferingIndicator: Visual feedback during buffering
  • StatsButton: Toggle statistics panel

shared/

Common components and utilities used across the package.

  • Button: Reusable button component with consistent styling
  • Icon: Icon wrapper component
  • Stats: Provides real-time statistics monitoring for both audio and video streams. Uses a provider pattern to collect and display metrics.
  • CSS utilities: Shared styles, variables, and flexbox utilities