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

@yschimke/remote-compose-player-cmp

v1.33.0

Published

The Compose Multiplatform / Wasm Remote Compose player, as a drop-in browser bundle. Renders .rc documents in an iframe driven by query parameters and window.rcPlayerLoad.

Readme

@yschimke/remote-compose-player-cmp

The Compose Multiplatform / Wasm Remote Compose player, as a browser bundle. It renders a .rc document into a page, driven entirely by query parameters and one window function — no JavaScript API to learn and no bundler step.

<iframe src="/rc-player/index.html?src=/documents/watch-face.rc&theme=dark"></iframe>

Install

npm install @yschimke/remote-compose-player-cmp

The package ships a dist/ directory: index.html, the compiled Wasm module, the Skiko runtime, and a fonts manifest. Serve it as static files — copy dist/ into your public directory, or point your server at node_modules/@yschimke/remote-compose-player-cmp/dist. Nothing here is meant to be imported into an app bundle; the player runs in its own document.

Every file must be served from the same directory, and .wasm must be served as application/wasm — the module is instantiated by streaming.

Which player is this?

There are two. This one is the Compose Multiplatform renderer. The other is a TypeScript player vendored inside compose-preview's CLI, and today it supports more operations. Reach for this package when you want the same renderer that runs on Android and iOS — one implementation, one set of pixels across platforms. Reach for the TypeScript player when coverage matters more than cross-platform parity. RC_CMP_WASM_PLAYER.md in the repository tracks which gates remain before this one replaces it.

The embed contract

Versioned separately from the release it ships in, because a host cares whether ?src= still means what it coded against — not which release it happens to have. window.rcPlayerContractVersion and document.documentElement.dataset.rcPlayerContract both carry it, and this package's major tracks it.

Full reference: RC_PLAYER_EMBED.md. Summary:

| parameter | meaning | |---|---| | ?src= | URL of the .rc document. Required. | | ?theme=light\|dark | Force a mode. Anything else follows prefers-color-scheme. | | ?fontsBase= | Directory holding fonts.json and its faces. Default ./fonts/. | | ?namedValues= | Host overrides for the document's named variables. | | ?rcTrace=1 | Emit User Timing marks for a DevTools performance profile. | | ?allowExternalImagePlaceholders=1 | Render a placeholder instead of failing on an external image. | | ?handoffDelayMs= | Cold-start tail before ready. Only lower it if you composite the result yourself. |

  • window.rcPlayerLoad(src) swaps the document without reloading the page, keeping the Wasm module, the Compose runtime and the fetched fonts warm.
  • document.documentElement.dataset.rcPlayerState is loading, ready or error. Wait for ready before revealing the frame; rcPlayerError carries the message on error.
  • The player also postMessages cp-rc-wasm-ready / cp-rc-wasm-error:<message> and structured host-action and debug-message events to window.parent, same-origin.

Size

The bundle is around 23 MB, nearly all of it the Skiko WebAssembly runtime. That is the cost of running the real Compose renderer in a browser rather than a reimplementation of it. The repository enforces a budget so an unintended jump fails the build; the budget is not a published guarantee, and it moves when a deliberate payload lands.

License

Apache 2.0.