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

@nixia/2d

v0.0.3

Published

> A lightning-fast, lightweight 2D game engine written entirely in TypeScript, engineered from the ground up to run seamlessly on low-power machines and resource-constrained devices.

Readme

🎮 NIXIA 2D Game Engine

A lightning-fast, lightweight 2D game engine written entirely in TypeScript, engineered from the ground up to run seamlessly on low-power machines and resource-constrained devices.


🚀 Getting Started

Getting your first Nixia project up and running takes less than a minute. Follow these simple steps:

1. Initialize your workspace

Create a new directory for your game and step into it:

mkdir my-game
cd my-game

2. Install the core package

Install the NIXIA package as a development dependency (this automatically pulls in Vite and all other required toolchain dependencies):

npm install -D @nixia/2d

3. Initialize your project structure

Run the built-in CLI tool to scaffold your configuration files and entry point:

nixia init

Once initialization is complete, you are ready to write code! Your application's main entry point is located at src/main.ts

🏗️ Creating Your First Level

Levels represent the scenes or stages of your game. To create a new level, generate a new TypeScript file inside src/levels/MyLevel.ts, extend the core Nixia.Level class, and configure it:

// src/levels/MyLevel.ts
import * as Nixia from '@nixia/2d';

export class MyLevel extends Nixia.Level {
  constructor() {
    super("MyLevel");
  }
}

Then in your src/main.ts, you can make this your default level by using the following code:

// src/main.ts
import * as Nixia from '@nixia/2d';
import { MyLevel } from './levels/MyLevel';

// Preload your level
const myLevel = new MyLevel();

// Create a new Application
const app = new Nixia.Application();

// Set the default level to our custom level
app.setDefaultLevel(myLevel);

// Start the application
app.start();

👾 Creating Your First Actor

Actors represent game objects—or more specifically, active entities living inside a level. They handle components, custom game logic, rendering, physics, and more. You can create one like this:

// src/actors/MyActor.ts
import * as Nixia from '@nixia/2d';

export class MyActor extends Nixai.Actor {
  constructor() {
    super("MyActor");
  }
}

You can add your Actor to your Level like this:

// src/levels/MyLevel.ts
import * as Nixia from '@nixia/2d';
import { MyActor } from './actors/MyActor';

export class MyLevel extends Nixia.Level {
  constructor() {
    super("MyLevel");

    // This both adds the actor to the scene and registers it with
    // the game lifecycle.
    this.root.add(new MyActor(this, this.app));
  }
}