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

@skrillex1224/android-toolkit

v1.0.34

Published

Native Android automation toolkit for Apify-compatible actors.

Downloads

760

Readme

Android Toolkit

@skrillex1224/android-toolkit is the native Android counterpart to @skrillex1224/playwright-toolkit.

Actor code should import only useAndroidToolKit() and then use the returned modules. The public API is intentionally small and destructive from v1 onward.

import { useAndroidToolKit } from '@skrillex1224/android-toolkit';

const { Launch } = useAndroidToolKit();

await Launch.run(async ({ ctx, kit }) => {
  const { ApifyKit, DeviceInput, Mutation, Share } = kit;
  await ApifyKit.runStep('输入并发送', ctx, async () => {
    await DeviceInput.click(ctx, { id: 'input_text' });
    await DeviceInput.fill(ctx, { id: 'input_text' }, ctx.query);
    await DeviceInput.click(ctx, { id: 'action_send' });
  });
  await Mutation.waitForStable(ctx, { id: 'message_list' });
  const screenshotBase64 = await Share.captureScreen(ctx);
  await ApifyKit.pushArtifact({ screenshotBase64 });
});

Public Modules

| Module | Responsibility | | --- | --- | | Launch | Native actor entrypoint with fixed /apify_storage/input.json and /apify_storage/output.json paths plus lifecycle hooks. | | ApifyKit | runStep, runStepLoose, pushSuccess, pushFailed, pushArtifact. | | Device | Low-level ADB primitives only. | | DeviceView | Native View-tree snapshot and selector lookup over uiautomator dump. | | DeviceInput | View-tree-backed click/fill/press/scroll APIs using ADB input. | | Mutation | Playwright-like stable wait semantics over matched ViewNode subtrees. | | Share | Sprite screenshot and clipboard share-link polling. | | DeviceSQLite | Root ADB-backed private SQLite snapshot queries. | | Constants | Native-useful actor metadata and codes. | | Errors | CrawlerError and error serialization. |

Runtime Contract

The toolkit does not install or discover runtime tools.

Required environment:

  • ANDROID_TOOLKIT_ADB_PATH

Device initialization, Appium Settings, UnicodeIME, and root ADB access belong to manager/cluster runtime. Runtime checks fail clearly when prerequisites are missing.

Boundaries

Included:

  • ADB command execution, app launch, key input, screenshot, activity checks.
  • View-tree parsing with a real XML parser.
  • View selector operations: id, text, textContains, contentDesc, className.
  • Root ADB-backed SQLite queries through DeviceSQLite.query() only.

Excluded:

  • Public generic process injection or app hook execution.
  • App hook clipboard helpers.
  • WebView event recorder.
  • App hook UI traversal/click helpers.
  • Package name and activity truth. Backend/runtime input owns those values.
  • Actor-specific DB schemas, message parsing, product parsing, and success criteria.

Android Actor Rules

  • Do not use hardcoded absolute coordinates, screen-ratio coordinates, or naked point taps in actor code.
  • Do not add fallback clicks. If the expected selector, DOM element, activity, or key-driven flow is unavailable, fail with a typed error and useful context.
  • UI actions must be driven by one of: native DeviceView selectors, WebView DOM actions, Android activity/intents, or deterministic key events with activity/state verification.
  • If an app renders custom UI that is invisible to uiautomator, use a stable app/runtime capability instead of guessing screen positions.
  • Bounds-based taps are allowed only when the bounds come from a located native view; WebView clicks must stay in WebView.click/WebView.evaluate.

Browser Entry

@skrillex1224/android-toolkit/browser exports only Constants and Errors.