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

@jungvonmatt/qr-generator

v1.0.0

Published

Generate QR code images from URLs — CLI with JSON config and flags

Readme

@jungvonmatt/qr-generator

Generate QR code images from URLs via CLI.

  • npm: https://www.npmjs.com/package/@jungvonmatt/qr-generator
  • web tool: https://qr-generator-jade-five.vercel.app
  • agent SKILL: https://github.com/jungvonmatt/qr-generator/blob/main/.agents/SKILL.md

Quickstart

npx @jungvonmatt/qr-generator generate "https://example.com"
npx @jungvonmatt/qr-generator generate urls.txt
npx @jungvonmatt/qr-generator lookup "https://example.com"
npx @jungvonmatt/qr-generator validate:config
npx @jungvonmatt/qr-generator validate:input urls.txt
npx @jungvonmatt/qr-generator help

Commands

  • generate <url> [url...] | <input-file> [options]: Create files from one or many URLs, or from a TXT input file.
  • lookup <url> [options]: Compute the output filename for a URL without writing files.
  • validate:config [options]: Validate effective config (defaults + file + CLI flags).
  • validate:input <file> [options]: Validate TXT input file contents and filename collisions.
  • help: Show help for the CLI or a specific command.

Input format

generate accepts two modes:

  • URL mode: one or many positional HTTP(S) URLs.
  • File mode: one positional TXT file path.

TXT input rules:

  • One value per line.
  • URL validation is enabled by default (validateUrls: true).
  • Use --no-validate-urls to allow non-URL values.

Output files

Output files are written to output/{outputFolder}.

Filenames are derived from the slugged URL. Use filenameAddHash to avoid collisions and lookup to find out the generated filename. Per default, existing files are overwritten overwriteDuplicates.

Config

Config merge order (last one wins):

  1. Built-in defaults.
  2. qr-config.json in current directory, or --config <path>. Disable file loading with --no-config-file.
  3. CLI flags.

Config with defaults:

{
  "outputFolder": "",
  "format": "png",
  "size": 512,
  "color": "#000000",
  "background": "#ffffff",
  "overwriteDuplicates": true,
  "validateUrls": true,
  "filenameAddHash": false,
  "filenameToLowercase": false
}

Important flags:

  • --format <svg|png>
  • --size <integer>
  • --output-folder <name>
  • --color <color>
  • --background <color>
  • --overwrite-duplicates / --no-overwrite-duplicates
  • --validate-urls / --no-validate-urls
  • --filename-add-hash / --no-filename-add-hash
  • --filename-to-lowercase / --no-filename-to-lowercase

Color options:

  • Color: any #rgb or #rrggbb hex color or currentColor for SVGs
  • Background: any #rgb or #rrggbb hex color or transparent

Examples

npx @jungvonmatt/qr-generator generate "https://example.com"
npx @jungvonmatt/qr-generator generate urls.txt --format svg --color "currentColor" --background "transparent"
npx @jungvonmatt/qr-generator lookup "https://example.com" --filename-add-hash
npx @jungvonmatt/qr-generator validate:config --config ./qr-config.json
npx @jungvonmatt/qr-generator validate:input urls.txt

Development

npm install
npm run check

Local CLI (same router as the published package):

npm run qr:generate -- "https://example.com"
npm run qr:lookup -- "https://example.com"
npm run qr:validate:config
npm run qr:validate:input -- input/urls.txt

Use -- with npm run so flags and URLs are passed to the script, not npm. With npx, no -- is needed.

Release

npm run release

and push.