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

@mobileaidev/ai-app-bridge

v0.2.6

Published

Desktop CLI and MCP server for AI App Bridge.

Downloads

886

Readme

AI App Bridge CLI

npm install -g @mobileaidev/ai-app-bridge

ai-app-bridge status --package-name io.github.mobileaidev.aiappbridge.sample
ai-app-bridge tree --package-name io.github.mobileaidev.aiappbridge.sample
ai-app-bridge install-apk --package-name io.github.mobileaidev.aiappbridge.sample --apk-path app-debug.apk
ai-app-bridge clear-app-data --package-name io.github.mobileaidev.aiappbridge.sample
ai-app-bridge launch-app --package-name io.github.mobileaidev.aiappbridge.sample
ai-app-bridge launch-activity --package-name io.github.mobileaidev.aiappbridge.sample --activity .MainActivity --extra route=/home
ai-app-bridge screenshot --package-name io.github.mobileaidev.aiappbridge.sample
ai-app-bridge input-text --package-name io.github.mobileaidev.aiappbridge.sample --text "中文输入" --hide-keyboard
ai-app-bridge network --package-name io.github.mobileaidev.aiappbridge.sample --compact --url-filter /api/
ai-app-bridge webview-network --package-name io.github.mobileaidev.aiappbridge.sample --duration-ms 3000
ai-app-bridge-mcp

MCP defaults to a compact tool surface to avoid loading every command schema into the model context:

  • capabilities lists the bridge domains and command names.
  • run executes a selected command with command-specific arguments.

This keeps install, data reset, launch, UI, Flutter, WebView, logcat, network, and permission capabilities discoverable without exposing dozens of full schemas at session start. Set AI_APP_BRIDGE_MCP_SURFACE=full before launching ai-app-bridge-mcp only when a client needs the legacy one-tool-per-command surface.

The MCP server accepts both standard Content-Length framed JSON-RPC messages and single-line JSON messages. Responses use the format of the first request on that connection, so standard MCP clients keep framed responses while local Node REPL scripts can send and read one JSON object per line.

For multi-step app automation, call run with command: "batch". Batch steps run serially in one MCP call, so a failed step can stop and mark the remaining steps as skipped without mixing results from different commands:

{
  "command": "batch",
  "arguments": {
    "defaults": {
      "packageName": "io.github.mobileaidev.aiappbridge.sample"
    },
    "steps": [
      { "id": "launch", "command": "launch-app" },
      { "id": "wait-home", "command": "wait-text", "arguments": { "targetText": "Home" } },
      { "id": "capture-logs", "command": "logs", "arguments": { "limit": 20 } }
    ],
    "stopOnError": true
  }
}

WebView network and console capture use Android WebView DevTools/CDP when the target app is debuggable and WebView debugging is enabled.

input-text first uses the app bridge native text endpoint. This is required for Chinese and other Unicode text because adb shell input text is ASCII-only on many Android 16 devices; ASCII text can still fall back to ADB when an older bridge runtime is running.

When screenshot or smoke runs without --out-file, the CLI writes a unique PNG under build/ai_app_bridge_artifacts instead of reusing a stable filename or creating files in the project root. It keeps the newest 20 generated screenshots for each command prefix. Use --artifact-dir to choose that directory, or --out-file when a fixed path is intentional.

launch-app queries Android LAUNCHER activities before starting the app. If a debug dependency exposes multiple launcher entries, it returns launcher_ambiguous with the candidates instead of guessing. Use launch-activity or launch-app --activity/--component to choose the intended entry point explicitly.