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

pngine

v1.0.11

Published

WebGPU bytecode engine - shader art that fits in a PNG

Readme

PNGine NPM Package

WebGPU bytecode engine for PNG payloads.

Runtime Profiles

PNGine now ships four browser-facing profiles:

| Profile | Import | Purpose | | --- | --- | --- | | Viewer (default) | pngine or pngine/viewer | Lean production player for PNG payloads with embedded executor | | Dev | pngine/dev | Full feature surface for iteration and debugging | | Core | pngine/core | Low-level runtime API (dispatcher-centric) | | Executor | pngine/executor | Advanced payload/executor helper API |

Viewer API (Default)

Usage scenario

Use viewer for normal playback of PNG payloads generated with the default embedded executor.

Input contract

pngine(
  source: string | Uint8Array | ArrayBuffer | Blob,
  options: {
    canvas: HTMLCanvasElement;
    debug?: boolean;
    onError?: (err: Error) => void;
  }
)

Notes:

  • canvas is required.
  • source can be URL or byte data.
  • wasmUrl, selector strings, and HTMLImageElement sources are dev-only features.
  • Viewer keeps wasm-in-wasm runtime support enabled by default.
  • Viewer supports runtime interactivity via draw(...uniforms), setUniform, setUniforms, and getUniforms.

Example

import { pngine, play } from 'pngine';

const canvas = document.getElementById('canvas');
const p = await pngine('/assets/triangle.png', { canvas });
play(p);

Dev API

Dev profile keeps the full feature set:

  • Selector and image-element initialization paths.
  • Shared executor fallback (wasmUrl) for payloads without embedded executor.
  • Executor helper exports on the same entrypoint.
import { pngine, parsePayload } from 'pngine/dev';

Core API

Core profile is for integrators who already manage device/context/lifecycle.

import { createCoreDispatcher, configureCanvas, getDevice } from 'pngine/core';

Executor API

Advanced helpers for payload parsing and manual executor loading.

import { parsePayload, createExecutor, getExecutorImports } from 'pngine/executor';

Bundle Sizes (Current)

Generated by npm run build on 2026-02-08:

| File | Raw | Gzip | | --- | --- | --- | | viewer.mjs | 27.1 KB | 9.4 KB | | dev.mjs | 29.5 KB | 10.2 KB | | core.mjs | 15.9 KB | 5.4 KB | | executor.mjs | 1.8 KB | 0.9 KB | | index.js (Node stub) | 1.1 KB | - |

Build Commands

# Production bundles
npm run build

# Debug bundles (source maps, DEBUG=true)
npm run build:debug

Dist Files

dist/
├── viewer.mjs
├── dev.mjs
├── core.mjs
├── executor.mjs
├── index.js          # Node CJS stubs
├── index.mjs         # Node ESM stubs
├── index.d.ts        # default (viewer) types
├── viewer.d.ts
├── dev.d.ts
├── core.d.ts
└── executor.d.ts

CLI and Native Binaries

The package also ships the pngine CLI via optional native binaries:

| Package | Platform | | --- | --- | | @pngine/darwin-arm64 | macOS Apple Silicon | | @pngine/darwin-x64 | macOS Intel | | @pngine/linux-x64 | Linux x64 | | @pngine/linux-arm64 | Linux ARM64 | | @pngine/win32-x64 | Windows x64 | | @pngine/win32-arm64 | Windows ARM64 |

License

MIT