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

@agentproto/adapter-browser-chromium

v0.2.6

Published

Chromium browser provider for agentproto: a defineBrowser provider that launches Playwright's Chromium on a dedicated profile dir, with an idempotent launch, CDP access and a BrowserDriver.

Readme

@agentproto/adapter-browser-chromium

The chromium browser provider for @agentproto/driver-browser: Chromium driven by Playwright on its own dedicated profile directory, with CDP access, network capture (including response bodies), screenshots and cookie injection.

import { chromium } from "@agentproto/adapter-browser-chromium"

const instance = await chromium.launch({ profile: "work" }, { log: console.log })
const driver = await instance.attach({ initialUrl: "https://example.com" })
await driver.close()
await instance.stop()

Install the binary

playwright-core is loaded lazily, on the first launch(). Importing this package needs no browser and no Playwright download. To get a Chromium build:

npx playwright install chromium

Or point CHROMIUM_EXECUTABLE_PATH (or launch({ executablePath })) at any Chromium build. Without a binary, launch() fails with a message that names this command.

F11: never the default Chrome profile

Chrome 136+ refuses --remote-debugging-port on the default user-data-dir, so this provider never attaches to it or launches against it. Every launch uses a fresh dedicated dir under ~/.agentproto/browser/chromium/profiles/<name> (override the root with AGENTPROTO_HOME or dataDir) and receives granted cookies by injection through attach({ sessionPayload }).

These requests are refused with the typed error browser:profile-refused (BrowserProfileRefusedError, from @agentproto/driver-browser):

  • a userDataDir, or a profile given as a path, that is or sits inside the default dir of Chrome, Chromium, Brave or Edge on this OS (symlinks resolved);
  • a profile naming a real Chrome profile (Default, Profile 1, ...);
  • fullProfile: true, or a --full-profile argument, until the grant model lands;
  • extra args that set --user-data-dir or --remote-debugging-*.

The check runs in resolveDedicatedProfileDir, and once more on the exact argv before Chromium starts. Tests cover each refusal.

Behaviour

  • launch() is idempotent per dedicated dir: a second launch of the same profile returns the same instance id with wasAlreadyRunning: true and never starts a second browser. A dir held by a live process outside this one is refused instead of shared.
  • Chromium starts with --remote-debugging-port=0; the real port is read from DevToolsActivePort, and endpoints.cdp is the browser websocket URL.
  • Headless by default; pass headless: false for a window (needs a display).
  • downloads is not offered: the driver port has no download verb, so the download conformance level is skipped.
  • stealth is false. For a stealth browser use @agentproto/adapter-browser-camofox.
  • Cookie values are never written to logs.

Tests

runConformance (core, interaction, network) runs against a local fixture server when a Chromium binary is available, and skips with a printed reason when it is not.