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

@raptorqr/fast-qr-wasm

v0.1.1

Published

Generated fast_qr WASM renderer artifacts for RaptorQR

Readme

@raptorqr/fast-qr-wasm

Generated fast_qr wasm-bindgen artifacts used by RaptorQR for QR rendering.

Most application code should use @raptorqr/core instead of importing this package directly. This package exposes the raw renderer module for low-level integration, tests, and core wrappers.

Exports

import init, {
  initSync,
  QrRenderer,
  type InitOutput,
} from '@raptorqr/fast-qr-wasm';
default init(module_or_path?) -> Promise<InitOutput>
initSync(module) -> InitOutput
QrRenderer
InitOutput

QrRenderer methods:

new QrRenderer()
render(data, version, ecc, scale) -> sidePx
render_rgba(data, version, ecc, scale) -> sidePx
render_matrix(data, version, ecc) -> sideModules
rgba_ptr() / rgba_len()
buf_ptr() / buf_len()
matrix_ptr() / matrix_len()
last_matrix_size()
free()

ECC numeric mapping:

0 = L
1 = M
2 = Q
3 = H

Render RGBA

import init, { QrRenderer } from '@raptorqr/fast-qr-wasm';

const wasm = await init();
const renderer = new QrRenderer();

const sidePx = renderer.render_rgba(packetBytes, 10, 1, 4);
const byteLength = sidePx * sidePx * 4;

const rgba = new Uint8ClampedArray(
  wasm.memory.buffer,
  renderer.rgba_ptr(),
  byteLength,
);

const copy = new Uint8ClampedArray(rgba);

Copy the view before another render call if you need to keep the pixels.

Render Matrix

const sideModules = renderer.render_matrix(packetBytes, 10, 1);
const modules = new Uint8Array(
  wasm.memory.buffer,
  renderer.matrix_ptr(),
  sideModules * sideModules,
);

modules[row * sideModules + col] is 0 for light and 1 for dark.

WASM Asset Subpath

The generated files are exported for bundlers and Node loaders:

@raptorqr/fast-qr-wasm/wasm/*

The binary sidecar is:

src/wasm/raptorqr_fast_qr_wasm_bg.wasm

Regeneration

The Colab build script is:

src/build_fast_qr_wasm_colab.py

After regenerating artifacts, run:

pnpm --filter @raptorqr/fast-qr-wasm test
pnpm --filter @raptorqr/core test