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

@mattebox/cast-receiver

v0.1.1

Published

The bridge between Google's Cast receiver framework and <mattebox-player>, with hooks. No DOM of its own.

Readme

@mattebox/cast-receiver

This library connects Google's Cast receiver framework (CAF, version 3) to <mattebox-player>. You can turn a web page into a Chromecast receiver with a few lines of code. The library creates no DOM, and importing it has no side effects.

Install the library and its peer dependencies:

npm install @mattebox/cast-receiver @mattebox/player @mattebox/player-core mattebox

Add Google's framework to your page:

<script src="https://www.gstatic.com/cast/sdk/libs/caf_receiver/v3/cast_receiver_framework.js"></script>

Create the receiver, create the player with the receiver's handlers, and start the receiver:

import { createReceiver } from '@mattebox/cast-receiver';
import { MatteboxPlayerElement } from '@mattebox/player';
import full from 'mattebox/presets/full';

const receiver = createReceiver({ preset: full });
const player = new MatteboxPlayerElement({ handlers: receiver.handlers() });
document.body.append(player);
receiver.start(player);

| The library does this | The library does not do this | | ------------------------------------------------------------------------- | --------------------------------------------------------------------- | | It passes the sender's LOAD through your resolve and loads the player | It does not create or append any element | | It reports the media status from the video and the engine | It does not know what a token is, or where a license comes from | | It selects audio and text tracks under stable Cast ids | It does not bundle an engine preset. Your page imports one | | It sends the player's errors to every sender | It does not load Google's framework. Your page loads it | | It passes custom namespaces through | It does not ship a fake framework. The library's tests have their own |

The framework's script is never a dependency of the library. The engine, the core and the player are peer dependencies.

You can read the guide in the repository: docs/guide.

License

MIT