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/streamcrafter-wc

v0.2.4

Published

Lit Web Components for StreamCrafter - framework-agnostic streaming UI

Readme

@livepeer-frameworks/streamcrafter-wc

Web Components wrapper for StreamCrafter. Registers <fw-streamcrafter> and composable sub-elements via Lit — camera/screen capture, scene composition, and WHIP streaming.

Docs: https://logbook.frameworks.network

Install

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

Usage

Auto-register elements (side-effect import)

import "@livepeer-frameworks/streamcrafter-wc/define";
<fw-streamcrafter
  whip-url="https://edge-ingest.example.com/webrtc/your-stream-key"
  initial-profile="broadcast"
  enable-compositor
  auto-start-camera
></fw-streamcrafter>

Class import (no auto-registration)

import { FwStreamCrafter } from "@livepeer-frameworks/streamcrafter-wc";

CDN / Script Tag

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

<fw-streamcrafter whip-url="https://edge-ingest.example.com/webrtc/your-stream-key"></fw-streamcrafter>

Gateway Mode (Stream Key + Gateway URL)

<fw-streamcrafter
  gateway-url="https://bridge.example.com/graphql"
  stream-key="sk_live_..."
  initial-profile="broadcast"
></fw-streamcrafter>

Notes:

  • There is no default gateway; pass either whip-url or (gateway-url + stream-key).
  • If both are provided, whip-url takes priority.

Attributes

| Attribute | Type | Default | Description | | ---------------------------- | --------- | ------------- | -------------------------------------------- | | whip-url | string | "" | Direct WHIP streaming endpoint | | gateway-url | string | "" | Gateway GraphQL endpoint | | stream-key | string | "" | Stream key (used with gateway-url) | | initial-profile | string | "broadcast" | "broadcast" · "professional" · "conference" | | enable-compositor | boolean | true | Enable scene composition | | auto-start-camera | boolean | false | Start camera on load | | dev-mode | boolean | false | Show advanced debug panel | | show-settings | boolean | false | Open settings on load | | debug | boolean | false | Debug logging | | theme | string | "" | Theme preset name | | locale | string | "en" | UI language | | controls | string | "" | "false" to hide, "stock" for minimal | | compositor-worker-url | string | "" | Custom compositor worker URL | | encoder-worker-url | string | "" | Custom encoder worker URL | | rtc-transform-worker-url | string | "" | Custom RTC transform worker URL |

Methods

const studio = document.querySelector("fw-streamcrafter");

// Capture
await studio.startCamera();
await studio.startScreenShare();
await studio.stopCapture();

// Streaming
await studio.startStreaming();
await studio.stopStreaming();

// Sources
studio.addCustomSource(mediaStream, "Label");
studio.removeSource(id);
studio.setSourceVolume(id, 0.8);
studio.setSourceMuted(id, true);
studio.setSourceActive(id, false);
studio.setPrimaryVideoSource(id);

// Audio
studio.setMasterVolume(0.75);
studio.getMasterVolume();

// Quality & encoding
await studio.setQualityProfile("professional");
await studio.getStats();
studio.setUseWebCodecs(true);
studio.setEncoderOverrides({ videoBitrate: 6000000 });

// Devices
await studio.getDevices();
await studio.switchVideoDevice(deviceId);
await studio.switchAudioDevice(deviceId);

// Cleanup
studio.destroy();

Events

| Event | Detail | | -------------------- | ---------------------------------------------- | | fw-sc-state-change | { state, context } — idle, capturing, streaming, error | | fw-sc-error | { error } |

Also supports onStateChange and onError property callbacks.

Sub-elements

| Element | Description | | ------------------------ | -------------------------------------------------- | | <fw-sc-compositor> | Layout controls — 14+ presets, scaling modes | | <fw-sc-scene-switcher>| Scene management with transitions (cut, fade, slide)| | <fw-sc-layer-list> | Compositor layer ordering, visibility, opacity | | <fw-sc-volume> | Volume slider with snap-to-100% and boost mode | | <fw-sc-advanced> | Dev panel — audio processing, encoder stats, info |

Notes

  • CSS is bundled inside Shadow DOM; no external stylesheet import needed.
  • The IIFE bundle includes Web Workers for compositor, encoder, and RTC transforms.
  • WebCodecs + Web Workers are used when available for background-safe encoding.