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

@smoove/player

v0.1.7

Published

Lit web components that play a smoove Composition like an HTML5 <video>.

Readme

@smoove/player

A framework-agnostic web component that plays a smoove Composition like an HTML5 <video>.

<smoove-player> letterbox-scales the stage to its box and adds fullscreen, click and keyboard control, an imperative API, and a set of DOM events. Use it from plain HTML, React, Vue, Svelte, or anything that can put an element on a page.

Install

pnpm add konva @smoove/core @smoove/player

konva and @smoove/core are peer dependencies (lit and @lit/context are bundled). Import the package once to register the elements, then opt into the default styling:

import "@smoove/player"; // registers <smoove-player> and the controls
import "@smoove/player/styles.css"; // opt-in default styling

Usage

Hand the player a composition in one of two ways.

Assign it imperatively. Set the composition property to a live Composition. The player owns the canvas and mounts the stage itself:

<smoove-player controls loop style="width: 640px; aspect-ratio: 16/9"></smoove-player>
document.querySelector("smoove-player").composition = comp;

Point src at a module. Like <video src>, the player import()s the URL and resolves its default export (a Composition, or a sync/async factory returning one):

<smoove-player src="https://cdn.example/orbit.js" controls loop></smoove-player>

No bundler? Use the CDN build

A self-contained build bundles Konva and the core authoring API, registers every element, and exposes window.Smoove:

<script type="module" src="https://cdn.jsdelivr.net/npm/@smoove/player/dist/player.global.js"></script>

The same file is published on unpkg and through the @smoove/player/standalone export.

Docs

Full documentation lives at smoove.dev.

License

MIT