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

@zxkit/qrix

v1.0.1

Published

A React library for generating and rendering QR codes

Readme


Features

  • 🎨 SVG-based - Crisp rendering at any size
  • 🖼️ Logo support - Embed logos in the center of your QR codes
  • 🎯 Error correction - Multiple levels (L, M, Q, H)
  • 📦 Lightweight - Minimal dependencies
  • Fast - Optimized rendering
  • 🔧 Utilities - Download as PNG, copy to clipboard
  • 📱 React 18/19 - Full compatibility

Installation

npm install @zxkit/qrix
# or
yarn add @zxkit/qrix
# or
pnpm add @zxkit/qrix
# or
bun add @zxkit/qrix

Usage

Basic Example

import { QRCodeSVG } from '@zxkit/qrix'

function App() {
  return <QRCodeSVG value='https://example.com' size={256} />
}

With Logo

import { QRCodeSVG } from '@zxkit/qrix'

function App() {
  return (
    <QRCodeSVG
      value='https://example.com'
      size={256}
      logoUrl='/logo.png'
      logoSize={20}
      logoPadding={4}
      logoBackgroundColor='#ffffff'
    />
  )
}

Custom Colors

import { QRCodeSVG } from '@zxkit/qrix'

function App() {
  return <QRCodeSVG value='https://example.com' size={256} fgColor='#4F46E5' bgColor='#F9FAFB' />
}

Download & Copy Utilities

import { QRCodeSVG, downloadQRCodePNG, copyQRCodeToClipboard } from '@zxkit/qrix'

function App() {
  const qrOptions = {
    value: 'https://example.com',
    size: 256,
    fgColor: '#000000',
    bgColor: '#ffffff',
  }

  const handleDownload = async () => {
    await downloadQRCodePNG(qrOptions, 'my-qrcode.png')
  }

  const handleCopy = async () => {
    await copyQRCodeToClipboard(qrOptions)
  }

  return (
    <div>
      <QRCodeSVG {...qrOptions} />
      <button onClick={handleDownload}>Download PNG</button>
      <button onClick={handleCopy}>Copy to Clipboard</button>
    </div>
  )
}

API Reference

<QRCodeSVG />

| Prop | Type | Default | Description | | ---------------------- | -------------------------- | ------------ | -------------------------------- | | value | string | required | Content to encode in the QR code | | size | number | 200 | Size in pixels | | fgColor | string | #000000 | Foreground color | | bgColor | string | #ffffff | Background color | | logoUrl | string | - | URL of the logo image | | logoSize | number | 20 | Logo size as percentage (0-100) | | logoPadding | number | 4 | Logo padding in pixels | | logoBackgroundColor | string | #ffffff | Logo background color | | errorCorrectionLevel | 'L' \| 'M' \| 'Q' \| 'H' | H | Error correction level | | quietZone | number | 4 | Quiet zone size in modules | | className | string | - | Additional CSS class | | style | CSSProperties | - | Inline styles |

Utility Functions

generateQRCodeSVG(options: QRCodeOptions): Promise<string>

Generates a QR code as an SVG string.

generateQRCodeDataURL(options: QRCodeOptions): Promise<string>

Generates a QR code as a data URL.

downloadQRCodePNG(options: QRCodeOptions, filename?: string, scale?: number): Promise<void>

Downloads the QR code as a PNG file.

copyQRCodeToClipboard(options: QRCodeOptions, scale?: number): Promise<void>

Copies the QR code to the clipboard as a PNG image.

Error Correction Levels

| Level | Recovery Capacity | Best For | | ----- | ----------------- | ------------------------ | | L | ~7% | Clean environments | | M | ~15% | General use | | Q | ~25% | Industrial | | H | ~30% | With logos (recommended) |

Note: When using a logo, use H (High) error correction to ensure the QR code remains scannable.

License

MIT © nxtvoid