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

@spritestudio/ssplayer-pixi-ui

v7.0.0-beta.1

Published

SpriteStudio Player for Web on PixiJS v8, as UI: a SpriteStudio animation as a @pixi/ui button whose states play its labels, hit-tested on its parts.

Readme

English | 日本語

@spritestudio/ssplayer-pixi-ui

A SpriteStudio animation as a @pixi/ui button in a PixiJS v8 app. SSButton is a ButtonContainer whose look is one animation: hover, press, keyboard focus and enabled = false each play a section of it, and a pointer can be made to count only on some of its parts.

Who this is for: apps on PixiJS v8 that want a button, a menu item or a toggle drawn by a SpriteStudio animation. Install: npm install @spritestudio/ssplayer-pixi-ui @pixi/ui pixi.js (@pixi/ui@^2.4 and pixi.js@^8.19 are peer dependencies). It brings @spritestudio/ssplayer-pixi with it and re-exports it, so SSPlayer comes from here too. Not what you need? → ssplayer-pixi to play animations without the button.

▶️ Live demo — two buttons drawn by Ringo, one taking a pointer only on the parts you pick.

Part of the SSPlayerForWeb monorepo. For the guide, see UI buttons; the same pages for this version are in this package's docs/ (start at docs/README.md), and in skills/ssplayer-pixi-ui/ as an Agent Skill.

Quick start

  1. Author the states in one animation: a label named after each state — normal, hover, pressed, disabled, focused — where that state's loop starts. Each runs to the frame before the next label. A state without a label falls back (pressed to hover, the rest to normal), and with no labels at all the whole animation plays.

  2. Convert the .sspj as for any animation (Preparing assets).

  3. Make the button:

    import { Application } from 'pixi.js';
    import { SSButton, SSPlayer } from '@spritestudio/ssplayer-pixi-ui';
    
    await SSPlayer.initialize();   // once for the whole app
    
    const app = new Application();
    await app.init({ width: 1280, height: 720 });
    document.body.appendChild(app.canvas);
    
    const start = new SSButton({ hitParts: ['face'], accessibleTitle: 'Start' });
    await start.player.load('/ui/start/start.ssab');
    start.position.set(640, 360);
    start.onPress.connect(() => console.log('start'));
    app.stage.addChild(start);

Under prefers-reduced-motion each state holds its first frame; normal, and the states that fall back to it, play a reduced_motion label instead when the animation has one. Without accessibleTitle the button is decoration to a screen reader.

Read next: UI buttons · PixiJS guide

License

BSD-3-Clause — see LICENSE.md.


For contributors — building from source

Consumers can stop here — everything below is for hacking on this package.

From the repo root, after the WASM is in place (see ssplayer-pixi):

pnpm run build                                   # build all TS packages
pnpm --filter @spritestudio/ssplayer-pixi-ui test
pnpm run deploy-examples                         # once: the sample assets (not tracked in git)
pnpm --filter pixi-example dev                   # then open /ui.html