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

qclite

v0.1.0

Published

A QR code generator

Downloads

10

Readme

qclite

A QR code generator:

  • Supports QR code versions 1 - 40.
  • Generate QR code from binary data.

Installation

yarn add qclite

Getting started

import the dependency first:

import { QRCode } from "qclite";

build your QR code:

const qrcode = QRCode.fromString("hello");
const canvasElement = qrcode.renderToCanvas();
document.body.appendChild(canvasElement);

from hex string:

document.body.appendChild(
  QRCode.fromHex("636465666768696a6b6c6d6e6f70").renderToCanvas()
);

from bytes:

const bytes = new Uint8Array([0x63, 0x64, 0x65, 0x66]);
document.body.appendChild(QRCode.fromBytes(bytes).renderToCanvas());

you can specify the canvas which you want to render the QR code:

const canvas = document.createElement("canvas");
[canvas.width, canvas.height] = [350, 350];
document.body.appendChild(canvas);
const qr2 = QRCode.fromString("hello");
qr2.renderToCanvas(canvas);

display QR code in terminal:

const qr = QRCode.fromString("hello");
qr.renderToTerminal();

or if you want to draw custom graphics, you should do so as such:

const qr = QRCode.fromString("hello");
const bmpd = qr.bitmap;
const table = document.createElement("table");
table.style.borderSpacing = "0";
document.body.appendChild(table);

for (let y = 0; y < bmpd.moduleCount; y++) {
  const row = document.createElement("tr");
  table.appendChild(row);
  for (let x = 0; x < bmpd.moduleCount; x++) {
    const td = document.createElement("td");
    td.style.width = td.style.height = "5px";
    if (bmpd.isDark(y, x)) td.style.backgroundColor = "#000";
    else td.style.backgroundColor = "#fff";
    row.appendChild(td);
  }
}

⚠️⚠️⚠️ Please note:

The QR Code version range from 1 to 40, Higher version means more data can be stored, The default is 4, which can store up to 78 bytes of data.

// This may throw an error
QRcode.fromString(largeString, 1);