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

@ntindle/agent-browser-plugin

v0.3.2

Published

OpenClaw plugin for agent-browser with R2 upload support

Readme

@ntindle/agent-browser-plugin

OpenClaw plugin that wraps agent-browser as native tools with automatic Cloudflare R2 upload for screenshots and video recordings.

Features

  • 14 native tools with intelligent grouping to minimize context usage
  • Automatic R2 upload for screenshots and recordings
  • GIF conversion via ffmpeg for GitHub embedding
  • Device emulation for mobile testing
  • Session management with idle cleanup
  • Escape hatch (ab_advanced) for 50+ raw actions

Installation

openclaw plugins install @ntindle/agent-browser-plugin

Tools

Core Tools

| Tool | Description | |------|-------------| | ab_open | Navigate to URL (creates session) | | ab_navigate | History: back, forward, reload | | ab_snapshot | Get accessibility tree with refs (@e1, @e2...) | | ab_click | Click element by ref or selector | | ab_fill | Fill input field | | ab_close | Close browser session |

Interaction & Query

| Tool | Description | |------|-------------| | ab_interact | hover, focus, drag, scroll, type, press, select, check/uncheck, dblclick | | ab_query | gettext, isvisible, isenabled, ischecked, title, url, count |

Media

| Tool | Description | |------|-------------| | ab_screenshot | Screenshot with optional device emulation, R2 upload | | ab_record_start | Start video recording | | ab_record_stop | Stop recording, convert to GIF (optional), upload to R2 |

Settings & Tabs

| Tool | Description | |------|-------------| | ab_tabs | Tab management: list, new, switch, close | | ab_settings | viewport size, device emulation |

Escape Hatch

| Tool | Description | |------|-------------| | ab_advanced | Run any of 50+ actions. Call with no action param to see the list. |

Configuration

{
  plugins: {
    entries: {
      "agent-browser": {
        enabled: true,
        config: {
          // R2 upload (optional - if not set, returns local paths only)
          r2: {
            accountId: "your-account-id",
            bucket: "your-bucket",
            publicDomain: "cdn.example.com"  // Optional
          },

          // Browser defaults
          headless: true,
          viewport: { width: 1280, height: 720 },

          // GIF conversion (optional)
          gif: {
            enabled: false  // Convert WebM → GIF before upload
          },

          // Video handling
          video: {
            speedUpAfter: 60,  // Speed up recordings longer than 60s
            maxSpeedup: 4      // Max 4x speedup
          },

          // Session management
          maxConcurrent: 3,
          idleTimeoutMs: 300000  // 5 min idle → auto-close
        }
      }
    }
  }
}

Environment Variables

  • R2_ACCESS_KEY_ID - Cloudflare R2 access key
  • R2_SECRET_ACCESS_KEY - Cloudflare R2 secret key

Usage Examples

# Basic browsing
ab_open(session: "qa", url: "https://example.com")
ab_snapshot(session: "qa")
ab_click(session: "qa", selector: "@e2")
ab_fill(session: "qa", selector: "@e3", value: "[email protected]")

# Mobile testing
ab_screenshot(session: "qa", label: "mobile-view", device: "iPhone 14")

# Advanced interactions
ab_interact(session: "qa", action: "scroll", value: "down", amount: 500)
ab_interact(session: "qa", action: "hover", selector: "@e5")
ab_interact(session: "qa", action: "press", value: "Enter")

# Query page state
ab_query(session: "qa", action: "gettext", selector: "@e1")
ab_query(session: "qa", action: "isvisible", selector: "#modal")
ab_query(session: "qa", action: "title")

# Tabs
ab_tabs(session: "qa", action: "new", url: "https://google.com")
ab_tabs(session: "qa", action: "list")
ab_tabs(session: "qa", action: "switch", index: 0)

# Recording
ab_record_start(session: "qa", label: "walkthrough")
# ... do stuff ...
ab_record_stop(session: "qa")
  → { localPath: "/tmp/...", remoteUrl: "https://cdn.../...", markdown: "![recording](...)" }

# Escape hatch for advanced actions
ab_advanced(session: "qa")  # Lists all 50+ available actions
ab_advanced(session: "qa", action: "wait", params: { selector: "#loading" })
ab_advanced(session: "qa", action: "cookies_get", params: {})
ab_advanced(session: "qa", action: "evaluate", params: { expression: "document.title" })

# Cleanup
ab_close(session: "qa")

Why This Plugin?

Built for QA agents that need to:

  • Embed visual evidence in GitHub PR reviews (GIFs embed inline, videos don't)
  • Test mobile viewports without manual setup
  • Reduce tool call overhead vs CLI (native tools are faster)
  • Have an escape hatch for advanced automation

Development

bun install
bun test

License

MIT