Skip to content

Replace qrcode-terminal #10

Closed
Closed

Description

@neoromantic

tg auth login-qr renders the QR code with qrcode-terminal 0.12.0, which has not had a release in years. Replace it with a maintained library (or a small renderer on top of a maintained QR encoder) and keep the output readable in common terminals.

Activity

  1. neoromantic commented on Oct 21, 2026

    @neoromantic
    OwnerAuthor

    Checked on 2026-10-21: qrcode-terminal 0.12.0 was last released in March 2018. Candidates:

    • uqr (unjs, the same family as citty): about 79 KB, no dependencies, and it has a compact Unicode renderer. This is the one I'd pick.
    • lean-qr: about 69 KB, no dependencies, very active.
    • qrcode: avoid, it pulls in yargs, pngjs and dijkstrajs.

    While at it, print the QR code to stderr (see #2) and drop src/types/qrcode-terminal.d.ts.

  2. added
    enhancement
    on Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions