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

@codexo/exojs-aseprite

v0.15.3

Published

Aseprite sprite sheet asset extension for ExoJS.

Readme

@codexo/exojs-aseprite

Official ExoJS extension for loading Aseprite JSON sprite-sheet exports into a ready-to-animate sprite, with one animation clip per Aseprite frame tag.

Installation

npm install @codexo/exojs @codexo/exojs-aseprite

@codexo/exojs is a peer dependency. This package has no other runtime dependencies.

Export your sprite sheet from Aseprite as a JSON + PNG pair (File → Export Sprite Sheet, Output → JSON Data). Either array or hash frame mode works; frame tags become animation clips.

What this package provides

  • AsepriteSheet — parsed sprite sheet; the result of loader.load(AsepriteSheet, url). Exposes the underlying spritesheet, a clips map (one AnimatedSpriteClipDefinition per frame tag), and createAnimatedSprite() for a ready-to-play AnimatedSprite
  • asepriteExtension — extension descriptor registering the Aseprite asset binding
  • asepriteBinding — the underlying AssetBinding (advanced/custom wiring)
  • AsepriteFormatError — typed error thrown on malformed Aseprite JSON
  • AsepriteData and related types (AsepriteFrameData, AsepriteFrameTag, AsepriteMeta, AsepriteSlice, …) plus the isAsepriteArrayData guard

Usage

Register the extension, load an Aseprite JSON export, and create an animated sprite. The extension fetches the JSON, resolves and loads the packed texture, and builds one clip per frame tag:

import { Application } from '@codexo/exojs';
import { AsepriteSheet, asepriteExtension } from '@codexo/exojs-aseprite';

const app = new Application({ extensions: [asepriteExtension] });

const sheet = await app.loader.load(AsepriteSheet, 'sprites/hero.aseprite.json');

const sprite = sheet.createAnimatedSprite();
sprite.play('run'); // 'run' is an Aseprite frame-tag name
app.scene.root.addChild(sprite);

Clip frame rate is derived from each frame's Aseprite duration (falling back to 12 fps). Frame indices in a tag are resolved against the ordered frame array; out-of-range indices are skipped.

/register convenience entry

Importing /register registers asepriteExtension in the global ExtensionRegistry, so subsequently created Applications that use global defaults pick it up automatically:

// Side effect: registers asepriteExtension in the global ExtensionRegistry.
import '@codexo/exojs-aseprite/register';

// All named exports are also re-exported from /register:
import { AsepriteSheet, asepriteExtension } from '@codexo/exojs-aseprite/register';

This is the only side-effectful entry — importing the package root (@codexo/exojs-aseprite) does not register anything.

Texture ownership

The packed texture is loaded via the Loader and stays in the Loader cache. AsepriteSheet.destroy() releases the parsed sprite sheet; the Loader handles texture lifecycle and deduplication.

Core compatibility

| @codexo/exojs-aseprite | @codexo/exojs | |---|---| | 0.14.x | 0.14.x |

Links

License

MIT © Codexo