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

clappr-chromecast-plugin

v0.1.1

Published

Chromecast support for Clappr

Readme

Clappr Chromecast Plugin

A Clappr plugin that adds Chromecast support on Chrome browser. As with all apps running on Chromecast it requires the Google Cast extension installed on the browser.

Please notice it's still not production ready, as it lacks a way to select tracks (audio, subtitles), as well as display media information.

Usage

<html>
  <head>
    <script src="https://cdn.jsdelivr.net/npm/clappr@latest/dist/clappr.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/clappr-chromecast-plugin@latest/dist/clappr-chromecast-plugin.min.js"></script>
  </head>

  <body>
    <div id="player"></div>
    <script>
      var player = new Clappr.Player({
        source: '//clappr.io/highline.mp4',
        plugins: [ChromecastPlugin],
        parentId: '#player',
        chromecast: {
          appId: '9DFB77C0',
          contentType: 'video/mp4',
          media: {
            type: ChromecastPlugin.Movie,
            title: 'Awesome Hot Air Balloon Slackline',
            subtitle: 'You won\'t get much closer to Skylining than this!'
          },
          customData: {
            licenseURL: 'http://widevine/yourLicenseServer'
          }
        }
      });
    </script>
  </body>
</html>

There's also a demo page.

Plugin parameters

The plugin parameters are passed through the embed parameters object under the chromecast key:

  • appId: indicates what Chromecast application id should be used (defaults to Clappr app id: 9DFB77C0).
  • contentType: overrides the default content type used by the plugin when loading the video. If not present, the plugin infers its value from the source URL.
  • media: an object that represents metadata to be presented on the Chromecast application. The supported metadata values are:
    • type: the type of the media. Currently the supported values are ChromecastPlugin.Movie (for movies), ChromecastPlugin.TvSeries (for TV episodes) and ChromecastPlugin.None (for generic metadata - can also be absent or set to null/undefined)
    • title: the title of the video/movie/episode
    • subtitle: the subtitle of the video/movie/episode
    • images: an array of content image URLs such as cover art or a thumbnail of the currently playing media
    • releaseDate: ISO 8601 date and/or time when the content was released
    • studio: movie studio (movie only)
    • originalAirdate: ISO 8601 date when the episode originally aired (TV episode only)
    • seriesTitle: TV series title (TV episode only)
    • season: TV episode season (TV episode only)
    • episode: TV episode number (TV episode only)
  • poster: a URL for an image that should be used as a poster when casting (optional)
  • customData: an object that can be used to pass additional parameters to a custom receiver (optional)

Development

Install dependencies:

npm install

Build:

npm run build

Run:

npm start