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

@zamery/pi-browser

v0.2.0

Published

Generic typed Pi browser tools backed by a BrowserProvider implementation.

Readme

@zamery/pi-browser

Typed browser tools for Pi, backed by a pluggable BrowserProvider.

@zamery/pi-browser exposes a small, explicit browser tool surface without hard-coding Firefox or another concrete browser implementation into the agent layer.

Install

npm install @zamery/pi-browser @zamery/browser-provider

For the Firefox provider:

npm install @zamery/browser-firefox

Stable tools

  • browser_status
  • browser_contexts
  • browser_snapshot
  • browser_assets
  • browser_act

The tools preserve provider capability and mutation semantics. browser_assets discovers opaque browser-backed media refs plus safe semantic metadata; it does not expose source URLs, cookies, authorization headers, or storage tokens. An unknown or partial action outcome is not converted into success or blindly retried.

Configuration

{
  "provider_module": "@zamery/browser-firefox",
  "browser_instance_id": "optional-explicit-instance-id"
}

provider_module must resolve to a module exporting createBrowserProvider(options) for the current stable V1 tool path.

Direct Pi usage

import { createPiBrowserExtension } from "@zamery/pi-browser";

const extension = createPiBrowserExtension({
  workspaceRoot: process.cwd(),
  config: {
    provider_module: "@zamery/browser-firefox",
  },
});

void extension;

Direct Pi hosts own cleanup through Pi's session_shutdown lifecycle. Hosts that manage resources separately can use the exported Zamery-compatible adapter/resources rather than importing Zamery Workbench.

V2 helpers

Advanced consumers can use loadBrowserProviderV2Factory() and createBrowserProviderV2Binding() with provider modules that export createBrowserProviderV2(options).

The stable browser tool surface remains V1-based until an explicit migration is designed and documented; V2 support is additive rather than a silent behavior change. Asset discovery is a separate optional V1 capability rather than an implicit upgrade of every provider.

Compatibility

  • Node.js >=22.19.0 <25.
  • Pi peer: @earendil-works/[email protected].
  • Provider contract: @zamery/browser-provider at the matching package release.

The Pi peer is intentionally exact until compatibility with another version is proven.

Related packages

License

Apache-2.0.