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-browser-bridge

v0.1.0

Published

pi extension that lets a local pi agent see and operate Chrome through the Browser Agent extension (HTTP/SSE bridge, 20 browser tools)

Readme

pi-browser-bridge

A pi extension that lets a local pi agent see and operate your Chrome browser. It is the "brain side" of the Browser Agent project: it starts a small HTTP/SSE server on 127.0.0.1, registers 20 browser tools (computer, navigate, read_page, find, form_input, get_page_text, javascript_tool, browser_batch, tabs_*, …) and forwards their execution to the Browser Agent Chrome extension, which performs them with the Chrome DevTools Protocol.

You need both parts: this package and the Chrome extension (see "Chrome extension" below).

Install

pi install npm:pi-browser-bridge            # permanent
# or try it once:
pi -e npm:pi-browser-bridge

Pair the browser

  1. Start pi with the extension loaded and run /browser pair – pi shows a 6-digit code (valid 5 minutes).
  2. In Chrome click the Browser Agent icon on a tab to open the side panel and enter the code.
  3. Give the agent a task in the panel or in the pi terminal.

Commands: /browser (status), /browser pair, /browser revoke [id], /browser tools on|off, /browser new.

Chrome extension

Install the extension from the Chrome Web Store (link in the project README) or load the zip from the GitHub release: https://github.com/msoftware/pi.dev-chrome-extension/releases. The bridge only accepts requests from the extension's fixed ID, from 127.0.0.1, with a bearer token you obtained by pairing – web pages can never reach it.

Configuration

  • Flag --browser-port <port> (default 47823).
  • File ~/.pi/agent/browser-bridge.json:
{
  "port": 47823,
  "helperModel": "provider/model-id",
  "disabledTools": ["javascript_tool"],
  "uploadRoots": ["/home/me/uploads"],
  "extensionIds": ["<id of another build, e.g. the Chrome Web Store build>"],
  "debug": false
}

Debug log (only with "debug": true): ~/.pi/agent/logs/browser-bridge.log.

Security in one paragraph

Binds to loopback only, checks Origin and Host, requires a 256-bit bearer token (stored hashed), sends no CORS headers, has no telemetry. Page content is handed to the model wrapped in <page_content> markers and the system prompt tells the model it is data, not instructions. The extension asks the user before acting on a new domain, always asks for passwords and cards, and has a Stop button.

Links

Source, documentation, issues: https://github.com/msoftware/pi.dev-chrome-extension · License: MIT