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

@kritchoff/agent-browser

v1.0.7

Published

Headless browser automation CLI for AI agents

Readme

@kritchoff/agent-browser

This package provides a Real Android Browser (WootzApp) wrapped in a Docker container, controlled by a high-speed, Playwright-like TypeScript daemon.

It is specifically designed for AI Agents to navigate the mobile web, bypass bot detection, and generate LLM-friendly semantic trees (AXTree).


🌟 Key Features

  • Bundled CLI: Control the browser directly from your terminal (agent-browser start).
  • Zero-Config Setup: Automatically downloads and orchestrates the required Docker containers.
  • Hyper-Speed Warm Boots: Uses advanced VDI Volume Mounting to boot the Android environment in < 5 seconds after the first run.
  • Fast Resets: Cleans the browser state via Android userspace reboot in ~15 seconds.
  • Playwright Parity: Control the mobile browser using standard Playwright commands (click, type, waitForSelector).
  • Semantic AXTree: Built-in snapshot() method generates a clean, text-based UI tree optimized for LLM reasoning.

🛠️ Prerequisites

  1. Docker Engine: Must be installed and running.
    • Windows/Mac Users: Install Docker Desktop.
    • Linux Users: Ensure your user is in the docker group (sudo usermod -aG docker $USER).
  2. Node.js: v18+ is required.

💻 Global CLI Usage (Recommended for Testing)

The easiest way to use the Agent Browser is via the global Command Line Interface.

# 1. Install globally
npm install -g @kritchoff/agent-browser

# 2. Start the environment (Takes ~90s first time, ~5s after)
agent-browser start

# 3. Run commands interactively
agent-browser navigate https://news.ycombinator.com
agent-browser click ".titleline a"

# 4. Get the Semantic UI Tree printed to your terminal
agent-browser snapshot

# 5. Clean the browser state for a new session (~15s)
agent-browser reset

# 6. Completely stop and tear down containers
agent-browser stop

📦 Node.js SDK Usage (For your AI Agents)

Install the SDK locally in your project:

npm install @kritchoff/agent-browser

(Optional but recommended) Install tsx to run TypeScript files natively:

npm install -D tsx

Quick Start Code (agent.ts)

import { WootzAgent } from '@kritchoff/agent-browser';

async function main() {
  // 1. Initialize the controller
  const agent = new WootzAgent();

  console.log('🚀 Booting Environment...');
  // First run: Downloads 3GB image and cold boots (~90s).
  // Next run: Instant Hyper-Speed Warm Boot (~5s).
  await agent.start();

  console.log('🌐 Navigating to Google...');
  await agent.navigate('https://google.com');

  console.log('📸 Capturing Semantic Tree for LLM...');
  const uiTree = await agent.snapshot();
  console.log(uiTree); 

  console.log('⌨️ Typing and Searching...');
  await agent.type('textarea[name="q"]', 'WootzApp AI');
  await agent.press('Enter');

  console.log('🧹 Fast Reset for next task...');
  // Wipes all tabs, cookies, and cache in ~15s
  await agent.reset(); 

  console.log('🛑 Shutting down...');
  // Completely destroys containers and releases ports
  await agent.stop();
}

main().catch(console.error);

Run your agent:

npx tsx agent.ts

📖 Complete API Reference

For a complete list of all available commands (clicking, typing, tabbing, network interception, storage), please read the COMMANDS.md file.


❓ Troubleshooting

Error: Timed out waiting for Agent Daemon on port 32001

  • Cause: The Android container took too long to download or boot, or your machine is slow. (We wait 3 minutes by default).
  • Fix: Run agent-browser stop and try agent-browser start again. The Docker images might still be downloading in the background.

net::ERR_NAME_NOT_RESOLVED

  • Cause: The Android Emulator temporarily lost its internet connection after a Warm Boot.
  • Fix: The SDK automatically toggles Airplane Mode to fix this DHCP issue. If it persists, ensure your host machine has a stable internet connection and your VPN/Firewall isn't blocking Docker bridge networks.

Selector "..." matched X elements (Strict Mode Violation)

  • Cause: Playwright requires selectors to point to exactly one element.
  • Fix: Use more specific selectors, or use Playwright's >> nth=0 pseudo-selector to pick the first match (e.g., agent.click('a >> nth=0')).