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

@tawaship/pixim.js

v1.15.0

Published

Framework that wraps pixi.js.

Readme

@tawaship/pixim.js

"pixim.js" is a little useful "pixi.js" wrapper framework.

Build Status MIT License


Setup

NPM

npm install --save pixi.js @tawaship/pixim.js
import * as PIXI from 'pixi.js';
import * as Pixim from '@tawaship/pixim.js';

Browser

git clone https://github.com/tawaship/Pixim.js
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.3.2/pixi.min.js"></script>
<script src="/path/to/dist/Pixim.min.js"></script>

Usage

Basic

  1. Create content
Pixim.Content.create('test');
const Test = Pixim.Content.get('test');

or

const Test = Pixim.Content.create();
  1. Define content settings and libraries

Test.setConfig({
	width: 300,
	height: 300
});

Test.defineLibraries({
	root: class Root extends Pixim.Container {
		constructor($) {
			super();
			
			this.addChild(new PIXI.Graphics())
				.beginFill(0xFFEEEE, 1)
				.drawRect(0, 0, $.width, $.height);
			
			this.addChild(new $.lib.main($))
		}
	},
	
	main: class Root extends Pixim.Container {
		constructor($) {
			super();
			
			this.addChild(new PIXI.Graphics())
				.beginFill(0xFFFFFF, 1)
				.drawRect(0, 0, 100, 100);
		}
	}
});
  1. Create application
const app = new Pixim.Application({width: 300, height: 300});
  1. Attach content to application and run application
app.attachAsync(new Test())
	.then(() => {
		app.play();
	});

1

Image assets to preload

Asset provided by this feature are instance of "PIXI.Texture", or dictionary of instance of "PIXI.Texture".

for class

  1. Define assets
Test.defineImages({
	image_1: 'img/image_1.png'
});

Test.defineSpritesheets({
	ss_1: 'img/ss_1.json'
});
  1. Use assets
// in content library

this.addChild(new PIXI.Sprite($.resources.images.image_1));
this.addChild(new PIXI.Sprite($.resources.spritesheets.ss_1.ss_1_1)).y = 105;
this.addChild(new PIXI.Sprite($.resources.spritesheets.ss_1.ss_1_2)).x = 105;

2

for instance

  1. Define assets
const test = new Test();

test.addImages({
	image_2: 'img/image_2.png'
});

test.addSpritesheets({
	ss_2: 'img/ss_2.json'
});
  1. Use assets
// in content library

this.addChild(new PIXI.Sprite($.resources.images.image_2));
this.addChild(new PIXI.Sprite($.resources.spritesheets.ss_2.ss_2_1)).y = 105;
this.addChild(new PIXI.Sprite($.resources.spritesheets.ss_2.ss_2_2)).x = 105;

3

Sound assets to preload

Load "howler.js".

<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.0/howler.min.js"></script>

Asset provided by this feature are instance of "Howl".

for class

  1. Define assets
Test.defineSounds({
	a: 'sound/a.mp3'
});
  1. Use assets
// in content library

$.resources.sounds.a.play();

for instance

  1. Define assets
const test = new Test();

test.addSounds({
	b: 'sound/b.mp3'
});
  1. Use assets
// in content library

$.resources.sounds.b.play();

Task processing

If the library class inherits Pixim.Container, you can use tasks that are executed for each ticker process of the application.

// in content library

this.task.add([
	e => {
		this.x += e.delta;
		
		if (this.x > 100) {
			this.task.next();
		}
	},
	e => {
		this.y += e.delta;
		
		if (this.y > 100) {
			this.task.reset();
		}
	}
]);