qrencode
$ qrencode Community Low Riskqrencode wraps libqrencode in a tiny C binary to encode URLs, TOTP URIs, or binary payloads into QR or Micro QR codes. It can render directly to stdout in terminal UTF-8 blocks (-t ANSIUTF8) without disk writes or emit crisp SVG/PNG files (-o).
brew install qrencode Generating local QR PNGs/SVGs or terminal UTF-8 QR codes takes under 10 ms in shell with no MCP needed.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Simple non-interactive CLI supporting stdin (-r -), stdout (-o -), and clean -t UTF8 plain output, though no JSON output.
- Supports
-t UTF8,-t SVG,-o -, and stdin input
Terminal output modes (-t UTF8 / -t ANSIUTF8) perform zero disk writes, and stdin avoids shell-history secret leaks.
- Terminal formats write purely to stdout;
-rreads from file/stdin
Minimal C binary available across Homebrew, Linux distros, and Windows.
- Available via
brew install qrencodeand OS repositories
Fast, focused QR generator covering PNG, SVG, EPS, ASCII, and UTF-8 terminal output.
- Supports error-correction levels
L/M/Q/Hand--inlineSVG
Stable mature library (fukuchi/libqrencode) by Kentaro Fukuchi.
- Official
fukuchi/libqrencoderepository
Concise --help and man page clearly documenting -t formats and -l correction levels.
- Clear
qrencode --helpand man page reference
Security, Auth & Guardrails
None required; avoid passing sensitive secrets as CLI arguments on multi-user hosts (prefer -r <file> or stdin).
Free LGPL-2.1-or-later open-source C binary.
# qrencode Agent Rules - Use `-t UTF8` (plain blocks) or `-o <file>` rather than `-t ANSIUTF8` when capturing output in non-color logs. - Pass `-r -` via stdin instead of command-line arguments if encoding sensitive tokens or Wi-Fi/TOTP secrets.
Agent-Ready Command Recipes
Safe Read-Only Queries
qrencode -t UTF8 "https://followcli.com"
Prints a scannable monochrome UTF-8 QR code to stdout without ANSI colors or disk writes.
Controlled Writes & Previews
qrencode -t SVG -l M -o qr.svg "https://followcli.com"
Encodes the URL with medium (15%) error correction into scalable qr.svg.
Strengths for Agents
- + Generates scannable QR codes directly to stdout (
-t UTF8/-t ANSIUTF8) with zero disk writes. - + Instant C startup and crisp vector (
-t SVG) or PNG output.
Caveats & Pitfalls
- ! Defaults to PNG output requiring
-o <file>unless-t ANSIUTF8/-t UTF8is specified. - ! Only generates QR/Micro QR codes (no Data Matrix, Code 128, or barcode decoding).