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

@livepeer-frameworks/player-wc

v0.2.7

Published

Lit Web Components for FrameWorks streaming player — <fw-player> custom element with full UI

Readme

@livepeer-frameworks/player-wc

Web Components wrapper for the FrameWorks player. Registers <fw-player> and composable sub-elements via Lit.

Docs: https://logbook.frameworks.network

Install

pnpm add @livepeer-frameworks/player-wc
# or
npm i @livepeer-frameworks/player-wc

Usage

Auto-register elements (side-effect import)

import "@livepeer-frameworks/player-wc/define";
<fw-player
  content-id="pk_..."
  content-type="live"
  gateway-url="https://your-bridge/graphql"
  autoplay
  muted
></fw-player>

Class import (no auto-registration)

import { FwPlayer } from "@livepeer-frameworks/player-wc";

CDN / Script Tag

<script src="https://unpkg.com/@livepeer-frameworks/player-wc/dist/fw-player.iife.js"></script>

<fw-player content-id="pk_..." content-type="live"></fw-player>

Notes:

  • There is no default gateway; provide gatewayUrl unless you pass endpoints or mistUrl.

Direct MistServer Node (mistUrl)

<fw-player
  content-id="pk_..."
  content-type="live"
  mist-url="https://edge-egress.example.com"
></fw-player>

Attributes

| Attribute | Type | Default | Description | | ---------------- | --------- | -------- | ------------------------------------------- | | content-id | string | "" | Playback ID | | content-type | string | — | "live" · "dvr" · "clip" · "vod" | | gateway-url | string | — | Gateway GraphQL endpoint | | mist-url | string | — | Direct MistServer endpoint | | auth-token | string | — | Auth token | | autoplay | boolean | true | Auto-start playback | | muted | boolean | true | Start muted | | playback-mode | string | "auto" | "auto" · "hls" · "webrtc" · etc. | | stock-controls| boolean | false | Use native browser controls | | thumbnail-url | string | — | Poster / thumbnail URL | | theme | string | — | Theme preset name | | locale | string | "en" | UI language | | debug | boolean | false | Debug logging | | dev-mode | boolean | false | Show dev panel |

Methods

const player = document.querySelector("fw-player");

player.play();
player.pause();
player.togglePlay();
player.seek(30);
player.seekBy(-10);
player.jumpToLive();
player.setVolume(0.5);
player.toggleMute();
player.toggleLoop();
player.toggleFullscreen();
player.togglePiP();
player.toggleSubtitles();
player.getQualities();
player.selectQuality(id);
player.retry();
player.reload();
player.destroy();

Events

| Event | Detail | | ---------------------- | ----------------------------------------------- | | fw-state-change | Player state updated | | fw-ready | Player attached, { videoElement } | | fw-stream-state | Stream health state changed | | fw-time-update | { currentTime, duration } | | fw-volume-change | { volume, muted } | | fw-fullscreen-change | { isFullscreen } | | fw-pip-change | { isPiP } | | fw-error | { error } | | fw-protocol-swapped | Transport protocol changed | | fw-playback-failed | Playback failed after retries |

Theming

Set a preset via the theme attribute, or pass a CSS variable object to the themeOverrides JS property:

player.themeOverrides = {
  "--fw-color-accent": "#ff6600",
};

Sub-elements

<fw-player> bundles a full UI. All sub-elements are also exported for custom layouts:

<fw-player-controls> · <fw-seek-bar> · <fw-volume-control> · <fw-settings-menu> · <fw-idle-screen> · <fw-loading-spinner> · <fw-loading-screen> · <fw-stream-state-overlay> · <fw-thumbnail-overlay> · <fw-title-overlay> · <fw-error-overlay> · <fw-toast> · <fw-stats-panel> · <fw-dev-mode-panel> · <fw-subtitle-renderer> · <fw-skip-indicator> · <fw-speed-indicator> · <fw-context-menu> · <fw-play-button> · <fw-skip-button> · <fw-time-display> · <fw-live-badge> · <fw-fullscreen-button> · <fw-dvd-logo>

Controls & Shortcuts

The player ships with keyboard/mouse shortcuts when the player is focused (click/tap once).

Keyboard | Shortcut | Action | Notes | |---|---|---| | Space | Play/Pause | Hold = 2x speed (when seekable) | | K | Play/Pause | YouTube-style | | J / Left | Skip back 10s | Disabled on live-only | | L / Right | Skip forward 10s | Disabled on live-only | | Up / Down | Volume +/-10% | - | | M | Mute/Unmute | - | | F | Fullscreen toggle | - | | C | Captions toggle | - | | 0-9 | Seek to 0-90% | Disabled on live-only | | , / . | Prev/Next frame (paused) | WebCodecs = true step; others = buffered-only |

Mouse / Touch | Gesture | Action | Notes | |---|---|---| | Double-click | Fullscreen toggle | Desktop | | Double-tap (left/right) | Skip +/-10s | Touch only, disabled on live-only | | Click/Tap and hold | 2x speed | Disabled on live-only |

Constraints

  • Live-only streams disable seeking/skip/2x hold and frame-step.
  • Live with DVR buffer enables the same shortcuts as VOD.
  • Frame stepping only moves within already buffered ranges (no network seek). WebCodecs supports true frame stepping when paused.