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

nanoraster

v0.4.1

Published

Tiny headless WebGPU glTF renderer for deterministic PNG, WebP, JPEG, and raw RGBA output.

Readme

Tiny headless WebGPU glTF renderer for deterministic PNG, WebP, JPEG, and raw RGBA output. Runs on a native binary in Node.js and on WebGPU in the browser, from one Rust render core.

PBR spur gear rendered to WebP by nanoraster

Try the live demo, then read the docs: quick start, guides and the API reference, also served as Markdown for agents at nanoraster.xyz/llms.txt.

Install

npm install nanoraster

Quick start

import { renderImage } from 'nanoraster';

import { readFile, writeFile } from 'node:fs/promises';

const glb = Uint8Array.from(await readFile('model.glb'));
const image = await renderImage(glb, {
  format: 'webp',
  width: 512,
  height: 512,
});
await writeFile(image.name, image.bytes);

Same request, same pixels: the camera, lighting and encoder are fixed for a given request, so a render can serve as evidence. format: 'raw' returns the RGBA frame instead of a file, for pixel diffs, video frames and textures (Work with raw pixels). Continue with the tutorial and guides.

Reuse the renderer

The one-shot calls share one renderer per process, so only the first call pays the GPU bring-up; create your own to control its lifetime or power preference. When you know the full set of outputs, declare them in one renderImages call with per-view overrides, about three times faster than separate renders:

import { createRenderer } from 'nanoraster';

using renderer = await createRenderer({ powerPreference: 'low-power' });

const [card, og] = await renderer.renderImages(glb, {
  format: 'webp',
  views: [
    { id: 'card', phi: 60, theta: -45, width: 768, height: 576 },
    { id: 'og', phi: 60, theta: -45, width: 1536, height: 804, format: 'png' },
  ],
});

See Reuse the renderer.

Compatibility

See compatibility.md. Every check mark in that table maps to a named job in .github/workflows/ci.yml.

Versioning and stability

Versions follow Semantic Versioning. Before 1.0, a minor release may contain a breaking API change; each major line records those changes in BREAKING_CHANGES.md.

Security and provenance

Report vulnerabilities through GitHub private vulnerability reporting. Verify registry signatures with npm audit signatures.

Links

Changelog · Issues · Contributing · Maintaining

License

Apache-2.0. See license and NOTICE for bundled materials.

Part of the Tau ecosystem.