Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

A 150-Line Rust CLI That Renders QR Codes in Your Terminal — Half-Block Characters Pack Two Modules per Cell

DEV Community·SEN LLC·about 1 month ago
#8SFWjLSw
Reading 0:00
15s threshold

The "open this URL on your phone" problem: your laptop is showing a deploy preview, your phone is on the desk, and copying-pasting a long URL between them is awkward. ascii-qr "https://..." prints a QR code right in the terminal — your phone scans it from across the desk, you're done. 150 lines of Rust, single static binary, works over SSH and inside CI containers. Here's the trick that makes the rendered QR scannable: packing two QR modules into one terminal character with half-block Unicode. 🦀 Source on GitHub : https://github.com/sen-ltd/ascii-qr 📦 Build & run : see below Where the terminal beats a PNG "open this on my phone" — typing a URL on a phone is a pain, copy-paste between machines is awkward, and emailing yourself feels heavy. A terminal QR is one command and you scan it. SSH / CI boxes — no GUI, no clipboard, but you need to surface a one-time token URL or a deploy preview. Print the QR, read it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More