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

@gibme/qrcode

v22.0.1

Published

A simple qrcode helper

Downloads

286

Readme

@gibme/qrcode

A lightweight QR code URL generator that builds requests against the QuickChart.io QR API. Rather than generating QR codes locally, it constructs a URL that returns the rendered QR code image when fetched.

Installation

yarn add @gibme/qrcode

or

npm install @gibme/qrcode

Requires Node.js >= 22

Usage

import QRCode from '@gibme/qrcode';

// Basic usage — returns a URL to a PNG QR code image
const url = QRCode('https://github.com');

// With custom options
const customUrl = QRCode('https://example.com', {
    format: 'svg',
    size: 300,
    dark: '1a1a1a',
    light: 'f0f0f0',
    ecLevel: 'H',
    caption: 'Scan me'
});

The returned URL can be used directly in <img> tags, fetched via HTTP, or embedded anywhere a URL is accepted.

Options

| Option | Type | Default | Description | |---|---|---|---| | format | 'png' \| 'svg' \| 'base64' | 'png' | Output image format | | size | number | 150 | QR code size in pixels | | margin | number | 4 | Quiet zone margin around the code | | dark | string | '000000' | Dark module color (3 or 6-digit hex) | | light | string | 'ffffff' | Light module color (3 or 6-digit hex) | | ecLevel | 'L' \| 'M' \| 'Q' \| 'H' | 'M' | Error correction level | | centerImageUrl | string | — | URL of a logo/image to place in the center | | centerImageSizeRatio | number | 0.3 | Size ratio of center image (0–1) | | centerImageWidth | number | — | Override center image width | | centerImageHeight | number | — | Override center image height | | caption | string | — | Text caption below the QR code | | captionFontFamily | string | 'sans-serif' | Font family for caption text | | captionFontSize | number | 10 | Font size for caption text |

Error Correction Levels

| Level | Recovery | |---|---| | L | ~7% | | M | ~15% | | Q | ~25% | | H | ~30% |

Higher levels allow more of the QR code to be damaged or obscured (e.g., by a center image) while remaining scannable.

Documentation

Full API documentation is available at https://gibme-npm.github.io/qrcode/.

License

MIT