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

phone-use

v0.5.5

Published

Natural-language phone control for AI agents — CLI, MCP server, and agent SDK

Readme

phone-use

The phone-use harness: an agent that operates an iPhone end to end — MCP server, CLI, and an embeddable agent loop — built on @phone-use/sdk. It adds what raw device control doesn't have: an un-overridable destructive-action permission floor, the App Cartographer (autonomous app mapping + deterministic goto/ask/toggle navigation with zero model calls), replayable skills, a live browser viewer, and portable trace artifacts.

Requires Bun (>= 1.3). The CLI and MCP server run from TypeScript source via Bun — this package is not a Node CLI. (The . export, createSession, is buildable for Node, but the supported path is Bun.) iOS execution requires macOS with Xcode and an iOS Simulator runtime; Android runs over adb on macOS, Linux, or Windows (phone-use connect android).

Teach your agent the CLI

One command makes Claude Code, Cursor, or any skills-compatible agent fluent with phone-use — provisioning, parallel fleets, and honest verification:

npx skills add Rajmeet/phone-use-skills

MCP server

claude mcp add --scope project phone-use -- bunx phone-use mcp

or from a checkout:

claude mcp add --scope project phone-use -- bun /path/to/phone-use/packages/phone-use/src/index.ts mcp

The server also hosts the live viewer at localhost:4936 — watch the agent drive the phone in real time.

Device selection

By default the harness attaches to whatever simulator is booted. Make it explicit with --device (or PHONE_USE_DEVICE):

phone-use mcp --device launch        # dedicated simulator, deleted on exit
phone-use mcp --device connect       # first booted simulator
phone-use mcp --device <udid>        # a specific simulator

Embedded agent sessions

import { createSession } from 'phone-use';
import { ios } from '@phone-use/sdk';

const device = await ios.launch();
const session = createSession({
  device, // caller-owned: the session never closes it
  onConfirm: (req) => {
    console.log(`confirm? ${req.summary}`);
    return false; // deny-by-default: omit onConfirm and every ask is refused
  },
});
const result = await session.prompt('open Settings and read the iOS version');
console.log(result.status, result.summary);
await device.close();

Needs ANTHROPIC_API_KEY. The permission floor holds here too: destructive targets always require a live confirmation, and no mode, flag, or env var can disable that tier.

CLI

phone-use task "open Settings and go to Accessibility"   # one-off goal (needs API key)
phone-use bench                                          # self-verifying benchmark suite
phone-use atlas                                          # what the phone has learned

Device verbs — drive the phone from any shell

Every registry tool is also a one-shot CLI command (the agent-first-CLI pattern: point any coding agent at phone-use --help and it can operate the phone with its shell — no MCP wiring, no API key). The Phone Use runtime keeps the device session warm, so a verb costs ~300ms, not a cold attach:

phone-use observe                        # frontmost app + visible elements
phone-use open Settings
phone-use goto Settings About            # map-powered navigation, zero model calls
phone-use ask "iOS Version"              # → iOS Version = 26.1
phone-use tap "General"
phone-use toggle Settings "Full-Screen Previews" --on
phone-use search Maps coffee --open
phone-use skill run add-contact --args '{"name":"Alan"}'

Target elements by label — @refs do not survive across invocations. Exit codes: 0 ok · 1 failed · 2 blocked · 3 confirmation required. The permission floor holds: destructive targets (delete/pay/send/2FA) refuse on first run and require re-running the same command with --yes; deny-tier blocks cannot be overridden by any flag. Output is styled for humans at a TTY and automatically plain when piped (or under NO_COLOR).

Cloud phones

Provision iOS simulators in the cloud and hand them to any agent:

phone-use login          # browser sign-in; key saved to ~/.phone-use/config.json
phone-use create ios     # running phone in ~2s (warm pool)
eval "$(phone-use env sbx_…)"
phone-use task "open Settings and report the iOS version"
phone-use install ./build/MyApp.app   # put your own build on it
phone-use close sbx_…

Attach any MCP client by setting PHONE_USE_SANDBOX_URL / PHONE_USE_SANDBOX_TOKEN in its phone-use mcp server env (the console's Connect panel prints the block). Console: https://app.phoneuse.dev · Docs: https://www.phoneuse.dev/docs/cloud/overview

Stability

Pre-1.0: minor versions may break APIs. Pin exact versions.

License

Apache-2.0