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

@strasberry/capacitor-chromecast

v0.0.18

Published

This is a plugin for Capacitor that enables Chromecast functionality for iOS and Android.

Readme

@strasberry/capacitor-chromecast

Plugin Capacitor pour Chromecast sur iOS et Android. Fork de hauxir/capacitor-chromecast.

Install

npm install @strasberry/capacitor-chromecast
npx cap sync

Configuration

Dans capacitor.config.ts :

/// <reference types="@capacitor/cli" />
import type { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  plugins: {
    Chromecast: {
      appId: 'CC1AD845',       // Receiver ID (défaut Google: CC1AD845)
      autoInitialize: true,    // Optionnel, défaut: true
    },
  },
};
export default config;

Ordre de priorité pour appId : initialize({ appId }) > plugins.Chromecast.appId > CC1AD845

Avec autoInitialize: true (défaut), le plugin s'initialise automatiquement au chargement et au resume.

Web prerequisites (Google Cast Web Sender)

Pour l'utilisation web (ionic serve, PWA, navigateur):

  • Navigateurs supportés: Chrome desktop et Chrome Android.
  • Non supporté: iOS browser/WKWebView pour le Web Sender.
  • Contexte sécurisé requis: HTTPS, ou http://localhost / http://127.0.0.1.
  • requestSession() doit être appelé sur une action utilisateur (click/tap).
  • Si tu vois cast_sender.js dans une app Capacitor iOS/Android, c'est généralement un fallback web non voulu: vérifie npx cap sync puis rebuild natif.

iOS — Permissions réseau local (obligatoire)

Dans Info.plist de l'app iOS :

<key>NSLocalNetworkUsageDescription</key>
<string>Chromecast discovery requires access to devices on your local network.</string>
<key>NSBonjourServices</key>
<array>
  <string>_googlecast._tcp</string>
  <string>_CC1AD845._googlecast._tcp</string>
</array>

Remplace CC1AD845 par ton appId si tu utilises un receiver custom.

Note iOS : Le SDK Cast garde le premier appId initialisé pour tout le cycle de vie de l'app. Pour tester un autre appId, redémarre l'app.

iOS : CocoaPods vs SPM

Par défaut : CocoaPods via npx cap sync. SPM : le package livre un Package.swift — voir docs/QUICKSTART.md.

Documentation

| Document | Description | |---|---| | docs/QUICKSTART.md | Démarrage rapide (5 min) | | docs/GUIDE.md | Guide complet avec exemples TypeScript production | | docs/API.md | Référence API complète (auto-générée) | | docs/examples/angular-ionic-standalone/ | Service Angular standalone avec Signals |

Exemples d'applications

Contributing

Voir CONTRIBUTING.md. Mainteneurs : voir la section Publishing.