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

qrsmith

v1.0.1

Published

Beautiful QR codes in your terminal — compact, colorful, and versatile

Readme

🔳 qrsmith

Beautiful QR codes in your terminal — compact, colorful, and versatile.

Install

npm install qrsmith

# Global CLI
npm install -g qrsmith

Quick Start

import { qr } from "qrsmith";

// Generate and print
qr("https://example.com").print();

// Compact (default) — half the height using ▀▄█
qr("Hello World", { style: "compact" }).print();

// Ultra-compact braille — 8x denser
qr("Hello World", { style: "braille" }).print();

// With colors
qr("https://github.com", {
  fgColor: "#ff6b35",
  bgColor: "#1a0a2e",
}).print();

// Inverted for light terminals
qr("data", { invert: true }).print();

Render Styles

| Style | Description | Density | | --------- | ------------------ | ------- | | default | ██ per module | 1x | | compact | ▀▄█ half-block | 2x | | braille | ⣿⠛⣤ braille dots | 8x | | dots | Dot pattern | 2x | | blocks | ⬛⬜ emoji | 1x | | rounded | circles | 1x |

Export Formats

const result = qr("data");

// SVG
const svg = result.toSVG({ size: 512, rounded: true });

// HTML
const html = result.toHTML({ pixelSize: 12, useTable: true });

// Braille string
const braille = result.toBraille();

// ANSI colored string
const ansi = result.toANSI("#ff0000", "#000000");

// Raw matrix
console.log(result.matrix); // boolean[][]
console.log(result.version); // 1-40
console.log(result.size); // module count

Themes

import { withTheme, listThemes } from "qrsmith";

withTheme("neon", "https://example.com").print();
withTheme("ocean", "data").print();
withTheme("matrix", "data").print();

console.log(listThemes());
// ['default', 'classic', 'minimal', 'braille', 'dots',
//  'blocks', 'inverted', 'neon', 'ocean', 'sunset', 'matrix', 'pink']

CLI

# Basic
qrsmith "https://example.com"

# Braille mode
qrsmith -s braille "Hello World"

# Inverted with color
qrsmith -i -c "#00ff00" "https://github.com"

# Use a theme
qrsmith -t neon "data"

# Export SVG
qrsmith --svg "data" > qrcode.svg

# Export HTML
qrsmith --html "data" > qrcode.html

# Pipe support
echo "https://example.com" | qrsmith
cat url.txt | qrsmith -s braille

# List themes
qrsmith --list-themes

API Reference

qr(data, options?): QRResult

| Option | Type | Default | Description | | ----------------- | -------------------------- | ----------- | ------------------------------ | | errorCorrection | 'L' \| 'M' \| 'Q' \| 'H' | 'M' | Error correction level | | style | RenderStyle | 'compact' | Terminal render style | | margin | number | 2 | Quiet zone margin | | invert | boolean | false | Invert dark/light | | fgColor | string | — | Foreground color (hex or ANSI) | | bgColor | string | — | Background color | | maxWidth | number | auto | Max width in columns |

QRResult

| Property/Method | Type | Description | | ------------------- | ------------- | ------------------------ | | .text | string | Rendered terminal string | | .matrix | boolean[][] | Raw QR matrix | | .size | number | Matrix size | | .version | number | QR version (1-40) | | .print() | void | Print to stdout | | .toSVG(opts?) | string | SVG output | | .toHTML(opts?) | string | HTML output | | .toBraille() | string | Braille output | | .toANSI(fg?, bg?) | string | ANSI colored output |


📄 License

Published under the MIT license. Made by Wallace Frota