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 🙏

© 2025 – Pkg Stats / Ryan Hefner

pixellab-node

v2.0.1

Published

Node.js API for interacting with the [Pixel Lab Developer API](http://api.pixellab.ai/v1/docs)

Readme

pixellab-node

A simple client for interacting with the Pixel Lab Developer API, with full TypeScript support.

Overview

This client simplifies working with the Pixel Lab Developer API. For processing image data, you can use either the Node.js API (see examples below) or popular image processing libraries like JIMP or sharp.

Features

All features are powered by wrapping the official Pixel Lab API in an easy-to-use interface:

  • 🎨 Image Generation with Pixflux - Create characters, items, and environments from simple text descriptions
  • 🖌️ Style-Matched Images with Bitforge - Use reference images to match a specific art style
  • 🦴 Skeleton Animations - Bring biped and quadruped characters to life with skeleton-based animations
  • Text-Driven Animation - Transform concepts into movement using plain text descriptions
  • 🔧 Inpainting Tools - Seamlessly edit and enhance existing pixel art
  • 🔄 Rotation Tools - Generate different angle views of characters and objects with ease
  • 💰 Balance Checking - Monitor your API usage and remaining credits

Installation

Setting up authentication

  • Create a .env file in your project root and add your Pixel Lab API key:
    • Example: PIXELLAB_API_KEY=YOUR-API-KEY-GOES-HERE

Never share your API key with anyone or commit it to source control.

Consider using a .gitignore file to exclude your .env file from version control.

Example Usage

Here's a simple example demonstrating how to import and initialize the PixelLabClient in a Next.js app:

import PixelLabClient, {
  AnimateSkeletonResponse,
  Base64Image,
  SkeletonKeypoints,
} from "pixellab-node";
import Image from "next/image";
import fs from "fs/promises";
import path from "path";
import corgiJsonData from "../../public/skeleton_keypoints.json";

async function getImageAsBase64(imageName: string): Promise<string> {
  try {
    const imagePath = path.join(process.cwd(), "public", imageName);
    const imageBuffer = await fs.readFile(imagePath);
    const base64Image = imageBuffer.toString("base64");
    return base64Image;
  } catch (e) {
    console.error(e);
    throw e;
  }
}

export default async function Home() {
  const client = new PixelLabClient();
  const startingImage = await getImageAsBase64("corgi-test-dog.png");
  const skeletonResult: AnimateSkeletonResponse =
    await client.animateSkeletonFromSkeleton({
      skeleton_keypoints: corgiJsonData.pose_keypoints as SkeletonKeypoints,
      image_size: { width: 64, height: 64 },
      reference_image: { type: "base64", base64: startingImage },
    });

  return (
    <main className="flex flex-row items-center bg-slate-700 text-white">
      {skeletonResult.images.map((image: Base64Image, index: number) => {
        return (
          <Image
            alt={`Corgi Test Animation (${index})`}
            key={index}
            src={`data:image/png;base64,${image.base64}`}
            width={64}
            height={64}
          />
        );
      })}
    </main>
  );
}

corgo-test

Note: the above example uses skeleton keypoint data exported from Aesprite