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

rednoise

v0.2.1

Published

WebAssembly build of the RedNoise CPU software renderer (wireframe, rasteriser, ray tracer, path tracer).

Readme

rednoise (WebAssembly)

A WebAssembly build of the RedNoise CPU software renderer. It compiles the C++23 engine to WASM with Emscripten and exposes a small JavaScript API that renders a Wavefront OBJ into an RGBA pixel buffer.

Four render modes are available: wireframe, rasterised, raytraced, and pathtraced.

Install

npm install rednoise

Usage (Node)

import { readFileSync } from "node:fs";
import { createRenderer } from "rednoise";

const obj = readFileSync("model.obj", "utf8");
const renderer = await createRenderer();

const width = 640;
const height = 480;
const rgba = renderer.render({ obj, mode: "raytraced", width, height });
// rgba is a Uint8ClampedArray of width * height * 4 bytes (RGBA).

console.log("rednoise version:", renderer.version());

Usage (browser)

import { createRenderer } from "rednoise";

const renderer = await createRenderer();
const rgba = renderer.render({ obj: objText, mode: "raytraced", width: 640, height: 480 });

const canvas = document.querySelector("canvas");
canvas.width = 640;
canvas.height = 480;
const ctx = canvas.getContext("2d");
ctx.putImageData(new ImageData(rgba, 640, 480), 0, 0);

render options

| option | default | meaning | | --------- | ------------- | --------------------------------------------------------- | | obj | (required) | OBJ file contents as a string | | mode | "raytraced" | wireframe, rasterised, raytraced, or pathtraced | | width | 640 | output width in pixels | | height | 480 | output height in pixels | | samples | 64 | per-pixel samples (path tracer only) | | camZ | 4.0 | camera z position; the camera looks at the origin |

How OBJ loading works

The engine's loadOBJ reads a file by path. Under WebAssembly there is no host filesystem, so the wrapper writes the OBJ text you pass into Emscripten's MEMFS (an in-memory filesystem) and loads it from there. Because a companion .mtl file is not written alongside it, materials are not resolved and faces use their default colour, matching the headless native behaviour.

Building locally

The dist/ folder is produced by Emscripten and is not checked into git; it is built in CI before publishing. To build it yourself you need the Emscripten SDK (emsdk) installed and activated so that emcc is on your PATH:

bash build.sh

This produces dist/rednoise.mjs and dist/rednoise.wasm.

License

MIT