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

adb-qr-cli

v0.1.0

Published

Connect Android devices to your PC wirelessly via ADB from the command line

Readme

adb-qr-cli

TypeScript Node.js ADB License

commander bonjour-service qrcode-terminal qrcode @inquirer/prompts chalk ora

Stars Forks Watchers Contributors Open issues

Connect an Android phone to your PC over Wi-Fi with ADB, straight from the terminal — no cable, no IDE, no GUI.

Scan a QR code printed in your shell, or pick a device the CLI discovered on the network, and it pairs and connects for you. CLI port of the ADB-QR VSCode extension.

🎖️ Features

  • QR pairing in the terminal — the QR code is rendered as ASCII in your shell, scanned straight from the phone's wireless debugging screen
  • Code pairing — lists the devices found on the network and asks for the 6-digit code when scanning a QR is not convenient
  • One-command reconnect — a phone already paired with this PC is found and reconnected without any input
  • Automatic device discovery — mDNS scan of the LAN for the adb-tls-pairing and adb-tls-connect services, so no IP address is ever typed by hand
  • Full handshake, not just pairing — pairing is followed by the connect handshake, and the device is reported by its real model name once online
  • ADB preflight — checks that adb is on the PATH and recent enough before doing anything, and says which of the two failed
  • Bounded waits — every scan times out after 30 seconds instead of hanging the terminal

📋 Requirements

  • Node.js >= 18
  • ADB version 32 or later, available in PATH (adb --version must work in the same shell)
  • An Android 11+ phone with Developer Options and Wireless Debugging enabled
  • Phone and PC on the same Wi-Fi network — not a guest or client-isolated SSID, and with mobile data turned off on the phone

📦 Installation

Install it globally to use the adb-qr command anywhere:

# npm
npm i -g adb-qr-cli

# yarn
yarn global add adb-qr-cli

# pnpm
pnpm add -g adb-qr-cli

Or run it without installing anything:

npx adb-qr-cli qr

From a clone:

git clone https://github.com/goddivor/adb-qr-cli.git
cd adb-qr-cli
npm install
npm run build
npm link        # exposes the `adb-qr` binary globally

⚙️ Usage

Three commands, one per pairing flow.

# The default flow: pair by scanning a QR code
adb-qr qr

# Pair with the 6-digit code instead
adb-qr pair

# Reconnect a phone already paired with this PC
adb-qr connect

# Command list and version
adb-qr --help
adb-qr --version

📱 adb-qr qr

Prints a QR code in the terminal, pairs with whichever phone scans it, then waits for the connect handshake and connects automatically.

On the phone:
  Settings > Developer Options > Wireless Debugging > Pair device with QR code

🔢 adb-qr pair

Scans the network, lists every device advertising a pairing service, and asks for the 6-digit code displayed on the phone. Pairing is followed by the same automatic connect step.

On the phone:
  Settings > Developer Options > Wireless Debugging > Pair device with pairing code

🔌 adb-qr connect

For a device already paired with this PC. Scans the LAN for adb-tls-connect services and connects to the first one that answers — nothing to type.

On the phone:
  Settings > Developer Options > Wireless Debugging   (just open the screen)

🛠️ Troubleshooting

Pairing succeeds but the connect handshake never comes. The phone has usually stopped advertising its adb-tls-connect service after an interrupted session. Reset both sides — toggle Wireless Debugging OFF then ON on the phone, restart the ADB server, then run adb-qr qr again:

adb kill-server && adb start-server

ADB is not installed or PATH is not configured. Check that adb --version works in the shell you are running the CLI from. On Linux and macOS, adb ships with the Android platform-tools.

ADB version XX is too old. Wireless debugging needs platform-tools 32 or later. Update through your package manager, or download the latest platform-tools.

Nothing is found during the scan. Confirm the phone and the PC really are on the same Wi-Fi network, that the network is not client-isolated, and that mobile data is off on the phone.

🤝 Contributing

Contributions of all kinds are welcome — bug reports, feature ideas, documentation fixes and pull requests. Open an issue to discuss a change first, and make sure npm run build passes with zero errors before sending a pull request.

📜 License

Licensed under MIT License and copyrights reserved.