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

@spotterjs/plugin-android-adb

v1.0.1

Published

Android ADB automation plugin for spotterjs

Downloads

64

Readme

@spotterjs/plugin-android-adb

中文文档

Android automation plugin for spotterjs using ADB only. It supports device discovery, USB and wireless connections, capture, touch input, text input, app control, UIAutomator element queries, template matching, and multi-device helpers.

Install

npm install @spotterjs/plugin-android-adb @spotterjs/core

Quick Start

import { android } from "@spotterjs/plugin-android-adb";

const phone = await android.connectDefault();

await phone.tap(320, 900);
await phone.swipe({ x: 500, y: 1600 }, { x: 500, y: 500 });
await phone.text("hello");
await phone.keyevent("BACK");

const match = await phone.find("./button.png", { confidence: 0.9 });
await phone.tap(match.center.x, match.center.y);

ADB must be available on PATH, installed in a common Android SDK platform-tools location, configured with SPOTTERJS_ADB_PATH, or passed as adbPath.

UIAutomator Elements

const login = await phone.findElement({
  resourceId: "com.example:id/login",
  clickable: true,
});

await phone.tapElement(login);
await phone.typeElement({ classNameContains: "EditText" }, "hello");

Element bounds and template matches use Android device screen coordinates.

API

  • android.discover(options?): discover devices from adb devices -l.
  • android.connect({ serial, adbPath?, timeoutMs? }): create an AndroidDevice.
  • android.connectDefault(options?): connect the only authorized device.
  • android.connectAll(options?): connect all authorized devices.
  • android.pairTcp({ host, port, code, adbPath?, timeoutMs? }): run adb pair.
  • android.connectNetwork({ host, port, adbPath?, timeoutMs? }): run adb connect.
  • AndroidDevice: capture, tap, swipe, text, keyevent, app, UIAutomator, shell, display, template matching, and wait helpers.
  • AndroidDeviceGroup: batch tap, swipe, and capture.
  • AdbError: ADB failure with a stable code and optional stderr.

Complex connection flows, multi-device usage, wireless debugging, and troubleshooting are covered in Android ADB automation.

Limits

Text input uses adb shell input text, which is limited by Android's input command. Complex IME text, emoji, and some non-ASCII input may require a dedicated IME or clipboard strategy in a later version.

License

Learning and non-commercial use are free. Commercial use requires authorization. See LICENSE.