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

@qrcore/core

v0.4.7-beta.8.1

Published

Modern QR Code generator with typed ESM, CommonJS, and CLI support.

Readme

qrcore

Modern QR Code generator built on the proven soldair/node-qrcode core, with typed ESM, CommonJS, and a lighter CLI.

Install

npm install @qrcore/core

API

import { toString, toBuffer, create } from '@qrcore/core'

const svg = await toString('hello qrcore', { type: 'svg' })
const png = await toBuffer('hello qrcore', { type: 'png' })
const data = create('hello qrcore')

CommonJS is supported too:

const qrcode = require('@qrcore/core')

qrcode.toString('hello cjs', { type: 'terminal' }).then(console.log)

CLI

qrcode "some text"
qrcode -o out.png "some text"
qrcode -t svg -o out.svg "some text"

The CLI uses cleye instead of yargs, while keeping the familiar node-qrcode flags:

  • -v, --qversion: QR Code symbol version, 1-40
  • -e, --error: error correction level, L, M, Q, or H
  • -m, --mask: mask pattern, 0-7
  • -t, --type: output type, png, svg, or utf8
  • -o, --output: output file path
  • -w, --width, -s, --scale, -q, --qzone
  • -l, --lightcolor, -d, --darkcolor
  • --small, -i, --inverse

Development

npm ci
npm run ci

The local and CI quality gate runs linting, type checking, tests, build, smoke checks for ESM/CJS/CLI output, and npm pack --dry-run.

Release helpers:

npm run release -- patch
git push origin main --tags

The Auto Bump Version GitHub Actions workflow bumps patch versions on dev, bumps the next minor release line on main, refreshes package-lock.json, and prepends CHANGELOG.md.

Publishing is handled by the manual Publish Package GitHub Actions workflow. Its auto channel publishes dev as beta and main or version tags as latest, keeps the package name as the scoped @qrcore/core, computes beta prerelease versions such as 0.4.1-beta.<run>.<attempt>, then reruns the full gate before npm publish --provenance.

Upstream Lineage

The QR encoder and renderers are vendored from soldair/node-qrcode at commit 3848ed2 (1.5.4) under src/vendor/node-qrcode.

This package modernizes that baseline by:

  • publishing typed ESM and CommonJS entry points from one TypeScript facade
  • replacing the yargs CLI with cleye
  • updating runtime dependencies such as pngjs
  • retaining upstream fixes already present in 1.5.4, including duplicate callback protection in the PNG file renderer
  • porting the Kanji detection and segmentation fix from upstream PR #400

Relevant upstream PR ideas considered during this modernization:

  • ESM support: PRs #401, #241, #309
  • yargs replacement/update: PRs #408, #403, #255
  • browser bundle repair: PR #402
  • Kanji detection: PR #400 (ported)
  • dependency cleanup/update: PRs #410, #404, #405, #406, #353
  • flaky file tests and callback stability: PRs #409, #273