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.9.0

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. One Rust core runs native in Node.js and on WebGPU in the browser.

PBR spur gear rendered to WebP by nanoraster

Try the live demo, then the docs — 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: a render can serve as evidence. format: 'raw' returns the RGBA frame for pixel diffs, video frames and textures (Work with raw pixels).

Spatial values are Cartesian, defaulting to glTF's +Y-up, +Z-forward, metre world; declare world when the caller uses another convention:

const image = await renderImage(glb, {
  format: 'webp',
  world: { up: '+z', forward: '-y', unit: 'millimeter' },
  camera: {
    framing: 'fit',
    direction: [1, 1, 1],
  },
  lineWidth: 3,
});

framing: 'fit' solves placement and clipping around the subject; framing: 'fixed' preserves an explicit Cartesian position/target/up pose and projection. Edge lines are a flat 3 output pixels. See Frame the model and Place the camera.

Reuse the renderer

One-shot calls share one renderer per process; create your own to control lifetime and power preference. Declaring all outputs in one renderImages call with per-view overrides is about three times faster:

import { createRenderer } from 'nanoraster';

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

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

See Reuse the renderer.

Compatibility

See compatibility.md; every check mark maps to a named job in .github/workflows/ci.yml.

Versioning and stability

Semantic Versioning; before 1.0 a minor release may break the API — see 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.