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

local-adb-bridge

v1.2.5

Published

Local WebSocket relay so browsers can pull The Tower saves via host ADB

Readme

local-adb-bridge

Tiny localhost HTTP + WebSocket relay so the published Tower Run Tracker website can pull playerInfo.dat through your machine’s adb binary (emulators cannot use in-browser TCP on normal websites).

Usage

# From this repo (uses the latest sources):
npx local-adb-bridge

# From npm (pin the version — older releases may lack Mac/Linux native paths or USB fixes):
npx [email protected]

On first run the bridge will:

  1. Look for adb on your PATH and in common Android SDK / WinGet / Homebrew locations.
  2. If adb exists but is not on PATH, add its folder to your current session and user PATH.
  3. If adb is missing, install Android Platform Tools automatically:
    • Windows: winget (Google.PlatformTools), then Google zip download if needed
    • macOS: Homebrew android-platform-tools, then zip fallback
    • Linux: apt (may prompt for sudo), then zip fallback

Leave the terminal open while importing from the tracker website.

Windows USB (phone) and Autoplay

USB import uses host adb in this terminal — not WebUSB in the browser. On Windows, Autoplay can briefly switch the phone to MTP and disconnect adb; bridge 1.2.5+ waits for the USB stack to settle (default 0.8s before/after pull on Windows)

macOS, Linux, and native installs

On Connect Emulator, the bridge tries adb first (BlueStacks, MuMu, Waydroid, USB phones, etc.). If nothing is connected, it also checks common on-disk save locations:

  • macOS: App Store / native app under ~/Library/Containers/com.TechTreeGames.TheTower/…
  • Linux: Waydroid and Anbox paths under your home directory
  • Windows: WSA / app package storage when present

Connect via USB always uses adb on the phone — not the Mac/Linux desktop install. and shows a progress bar in this window.

If you still see connect/disconnect loops:

  1. Windows → Autoplay settings → your phone → Take no action
  2. Optional: LOCAL_ADB_BRIDGE_USB_SETTLE_MS=2000 for a longer quiet period
  3. Phone USB mode: File transfer (not “Charge only”), USB debugging allowed

Published site (HTTPS) and browser permission

When you use the live tracker site (not the Vite dev server), Chrome or Edge must allow local / private network access so the page can reach http://127.0.0.1:43781 and the WebSocket on the same port.

  1. Run npx local-adb-bridge on the same PC as the emulator.
  2. On the import page, click Connect Emulator.
  3. When the browser shows a permission prompt, click Allow.
  4. If no prompt appears: site settings → Permissions → Local network access → Allow for this site.

The bridge answers GET /private-network-ping with CORS + Access-Control-Allow-Private-Network: true so the browser can complete the Private Network Access preflight before opening the WebSocket.

Environment variables

  • LOCAL_ADB_BRIDGE_PORT — default 43781
  • ADB_PATH or LOCAL_ADB_BRIDGE_ADB — full path to adb / adb.exe (skips auto-discovery)
  • LOCAL_ADB_BRIDGE_SKIP_AUTO_INSTALL=1 — do not install or modify PATH; fail if adb is missing

Bundled zip installs are stored under ~/.local-adb-bridge/platform-tools/.