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-core

v0.2.1

Published

Core streaming logic for StreamCrafter - framework agnostic WebCodecs-based browser streaming

Readme

@livepeer-frameworks/streamcrafter-core

Headless WHIP streaming engine for FrameWorks. Provides IngestControllerV2, WhipClient, WebCodecs encoder, audio mixing, compositor, and CSS.

Most users should install a wrapper instead of core directly:

| Package | Use case | | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- | | @livepeer-frameworks/streamcrafter-react | React apps | | @livepeer-frameworks/streamcrafter-svelte | Svelte 5 apps | | @livepeer-frameworks/streamcrafter-wc | Web Components — Vue, Angular, CDN <script> tag, plain HTML |

The wrappers include core as a dependency and provide a full UI (preview, camera/screen controls, quality selector, connection status, etc.). Install core directly only if you need headless programmatic control with a completely custom UI.

Docs: https://logbook.frameworks.network

Install

npm install @livepeer-frameworks/streamcrafter-core

Headless Usage

import { StreamCrafterV2 } from "@livepeer-frameworks/streamcrafter-core";
import "@livepeer-frameworks/streamcrafter-core/streamcrafter.css";

const crafter = new StreamCrafterV2({
  whipUrl: "https://edge-ingest.example.com/webrtc/your-stream-key",
  profile: "broadcast",
});

await crafter.startCamera();
await crafter.startStreaming();

// Later
await crafter.stopStreaming();
crafter.destroy();

Gateway Resolution (Advanced)

The vanilla StreamCrafterV2 constructor requires a direct WHIP URL. If you want gateway resolution, use the IngestClient (or the React/Svelte wrappers).

import { IngestClient, StreamCrafterV2 } from "@livepeer-frameworks/streamcrafter-core";

const ingest = new IngestClient({
  gatewayUrl: "https://bridge.example.com/graphql",
  streamKey: "sk_live_...",
});

const endpoints = await ingest.resolve();
const whipUrl = endpoints?.primary?.whipUrl;

if (!whipUrl) throw new Error("No WHIP URL resolved");

const crafter = new StreamCrafterV2({ whipUrl, profile: "broadcast" });

Notes:

  • There is no default gateway; you must supply whipUrl or resolve it yourself.

Notes

  • WebCodecs + Web Workers are used when available for background-safe encoding.
  • For custom UIs, build on the core APIs or use the React/Svelte/Web Component wrappers.
  • CSS export: @livepeer-frameworks/streamcrafter-core/streamcrafter.css