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

@clayzo/canvaskit-player

v0.3.23

Published

The full-fidelity Clayzo animation player. CanvasKit/Skia, draws everything the engine can express.

Readme

@clayzo/canvaskit-player

The full-fidelity Clayzo player. CanvasKit — Skia compiled to WASM, the same build the video export runs — so it draws everything the engine can express.

npm i @clayzo/canvaskit-player
import { createPlayer } from '@clayzo/canvaskit-player';

const player = await createPlayer({ canvas, document });
player.play();

Same call as @clayzo/webgl-player, so swapping is one word in an import.

React and Next clients can use the optional client entrypoint:

import { ClayzoPlayer } from '@clayzo/canvaskit-player/react';

export function Hero() {
  return <ClayzoPlayer document={document} poster="/hero.poster.webp" posterTick={240} label="A cube folding into the logo" />;
}

It takes the same poster, posterTick, autoplay, reducedMotion, label, decorative and fallback props as @clayzo/webgl-player/react, and loads the player only as it comes near the viewport.

~2,535 KB brotli, most of it Skia. If that is affordable, this is the renderer to reach for: it is correct by construction, and what a viewer sees cannot drift from what an export produces, because they are the same code.

Where Skia comes from

Unlike the light renderer, an 8 MB binary cannot be baked into the bundle — base64 would be 10 MB of JavaScript to parse before the first frame. It is fetched instead, from a version-pinned CDN by default:

https://unpkg.com/[email protected]/bin/full

Pinned to an exact version deliberately. This renderer is written against that build's behaviour, and a CDN quietly serving a newer Skia is a fidelity change nobody asked for.

To self-host — behind a firewall, under a strict CSP, or simply not wanting a third-party dependency in your critical path:

npm i -D [email protected]
cp node_modules/canvaskit-wasm/bin/full/canvaskit.{js,wasm} public/canvaskit/
await createPlayer({ canvas, document, canvasKitUrl: '/canvaskit' });

Both files are required, and the full build specifically: Skottie ships only there, and documents with Lottie nodes need it.

Fonts

await createPlayer({
  canvas,
  document,
  onPrewarm: (result) => {
    if (result.unresolvedFamilies.length > 0) {
      console.warn('no font for:', result.unresolvedFamilies.join(', '));
    }
  },
});

Worth wiring up. A font no loader could supply does not throw and does not substitute — the text runs relying on it draw nothing at all. onPrewarm is the difference between catching that in development and shipping a blank headline.

Choosing between the two renderers

See @clayzo/animation's docs/renderers.md. Use this one when you cannot enumerate the documents in advance — a design tool, an editor preview, a gallery of user-authored work — or when @clayzo/webgl-player's checkCoverage says a document needs it.