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

pixelpanda

v0.1.1

Published

Official JavaScript/TypeScript SDK for the PixelPanda API — AI background removal, upscaling, enhancement, product photography, ad packs and UGC video

Readme

PixelPanda JavaScript SDK

Official JavaScript/TypeScript client for the PixelPanda API — AI image processing from code: background removal, print-resolution upscaling, photo enhancement, prompt-based editing, reverse-prompting, AI product photography, complete ad packs and UGC video.

Zero dependencies. Node 18+. Full TypeScript types. ESM + CommonJS.

Install

npm install pixelpanda

Quickstart

import PixelPanda from "pixelpanda";

const pp = new PixelPanda("pk_live_...");   // or set PIXELPANDA_API_KEY

// Upscale AI art to print resolution (2x/4x = 1 credit, 8x = 2)
const up = await pp.upscale("midjourney_art.png", { scale: 4 });
console.log(up.result_url);

// Remove a background → transparent PNG (1 credit)
const cut = await pp.removeBackground("product.jpg");

// Edit with a prompt — FLUX Kontext (2 credits)
const edited = await pp.edit("photo.jpg", "make the background pure white");

// Reverse-engineer an image into AI-art prompts (1 credit)
const prompts = await pp.imageToPrompt("https://example.com/reference.jpg");
console.log(prompts.prompts.midjourney);

// Zero-setup product photography: 1 image in, 4 scene photos out (1 credit each)
const job = await pp.generateProductPhotos("product.jpg", { numPhotos: 4 });
console.log(job.results);

// Full ad pack from a product page URL (9 credits, +50 with UGC video)
const pack = await pp.createAdPack("https://mystore.com/products/mug");
const done = await pp.getAdPack(pack.job_id);   // poll until complete

Every image argument accepts a local path, Uint8Array/ArrayBuffer, or a public URL.

API surface

| Method | Credits | |---|---| | upscale(image, { scale, quality }) | 1 (2x/4x), 2 (8x) | | removeBackground(image) | 1 | | enhance(image) | 1 | | edit(image, prompt) | 2 | | imageToPrompt(image) | 1 | | generateProductPhotos(image, { numPhotos }) | 1/photo | | uploadProduct(image) / generateScenes(uuid) | free / 1 per scene | | createAdPack(url, { includeVideo }) / getAdPack(id) | 9 (+50 video) | | generateVideo(image, { script }) / getVideoJob(id) | 50 | | getJob(id) / waitForJob(id) | free |

Async generation methods (generateProductPhotos, generateScenes) wait for completion by default; pass { wait: false } to get a job_id and poll yourself.

Errors

API failures throw PixelPandaError with statusCode and detail (401 bad key, 402 insufficient credits).

Get an API key

Sign up free at pixelpanda.ai and copy the key from your profile. Docs: pixelpanda.ai/developers · More integrations: pixelpanda.ai/integrations

License

MIT © DynamicDuo LLC