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

pi-chrome-dev-tools

v0.1.0

Published

Pi extension — lazy-launch Chrome with Playwright, persistent profile, stealth patches, simple browser tools

Readme

pi-chrome-dev-tools

Lazy-launch browser control for pi agents. Uses your system Chrome with a persistent profile — logins, cookies, and extensions carry across sessions. Stealth-patched to avoid bot detection out of the box.


Why chrome-dev-tools?

| | chrome-dev-tools | pi-browser-harness | Playwright MCP | |---|:---:|:---:|:---:| | Zero setup — no remote debugging, no flags | ✅ | ❌ manual Chrome config | ❌ | | Instant startup — browser launches on first tool call | ✅ | ❌ connects at pi start | ❌ | | Persistent login — cookies survive across sessions | ✅ | ✅ | ❌ | | Bot detection avoidance — stealth patches built in | ✅ | ❌ | ❌ | | System Chrome — no Chromium download | ✅ | ✅ | ❌ 150MB+ download | | AX tree + click coordinates | ✅ | ✅ | partial | | Pi-native — no MCP overhead | ✅ | ✅ | ❌ |


Quick Start

pi install npm:pi-chrome-dev-tools

That's it. No Chrome flags, no remote debugging setup. The first chrome_navigate call launches Chrome automatically.

Requirements

  • pi (latest)
  • Node.js ≥ 22
  • Google Chrome installed

Tools

Page Inspection

| Tool | Purpose | |------|---------| | chrome_snapshot | DEFAULT — accessibility tree with @(x,y) click coordinates | | chrome_execute_js | Evaluate JS in page context — surgical DOM reads | | chrome_page_info | URL, title, viewport size, scroll position | | chrome_screenshot | Capture PNG (visual verification only) |

Navigation

| Tool | Purpose | |------|---------| | chrome_navigate | Navigate to a URL (launches Chrome on first call) | | chrome_go_back / chrome_go_forward | History navigation | | chrome_reload | Reload current page | | chrome_wait / chrome_wait_for_load | Wait N seconds or for page load |

Interaction

| Tool | Purpose | |------|---------| | chrome_click | Click at viewport coordinates from chrome_snapshot | | chrome_type | Type text into focused element | | chrome_press_key | Press a key (Enter, Tab, Escape, arrows, etc.) | | chrome_scroll | Scroll the page |

Tabs

| Tool | Purpose | |------|---------| | chrome_list_tabs | List open tabs with URLs | | chrome_switch_tab | Switch to tab by index | | chrome_new_tab | Open a new tab | | chrome_close_tab | Close a tab |

Lifecycle

| Tool | Purpose | |------|---------| | chrome_close | Close browser (relaunches on next tool call) |


Patterns

Page inspection (default workflow)

chrome_snapshot()           → AX tree with @(x,y) per interactive element
chrome_execute_js(expr)     → surgical reads for specific values
chrome_screenshot()         → ONLY for visual verification

Form filling

chrome_snapshot()                        # find the input @(x,y)
chrome_click({ x, y })                   # focus it
chrome_type({ text: "hello" })           # type
chrome_press_key({ key: "Tab" })         # next field

Data extraction

chrome_execute_js({ expression: "document.querySelector('.price').innerText" })

Multi-tab research

chrome_new_tab({ url: "https://..." })
chrome_list_tabs()
chrome_switch_tab({ index: 0 })

How it works

  • Playwright drives a dedicated Chrome instance via CDP
  • Persistent profile at ~/.chrome-dev-tools/profile preserves logins
  • System Chrome via channel: "chrome" — no Chromium download
  • Stealth via @mr_ozio/playwright-stealth — patches navigator.webdriver, plugin arrays, permissions API, and more
  • Lazy launch — Chrome only starts when a tool is first called
  • Auto-cleanup — browser closes when the pi session ends

License

MIT