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

worker-chrome

v0.3.0

Published

One always-on, real, logged-in Google Chrome on a headless Linux box for AI agents to drive. Real GPU, persistent profile, no headless or webdriver tells.

Readme

worker-chrome

One real Google Chrome that runs all the time on a headless Linux box, for AI agents to drive.

Agents on a server usually launch Playwright's bundled headless Chromium. Sites spot it at once: it says HeadlessChrome, sets navigator.webdriver, has no WebGL, and starts every run logged out. worker-chrome is a normal Chrome window on its own virtual screen instead. It renders on the box's real GPU, keeps one persistent profile you log into by hand, and exposes DevTools on 127.0.0.1 only. To a website it looks like a person at a Linux desktop.

npm i -g worker-chrome
worker-chrome setup      # systemd user units for Xvfb :90, openbox and Chrome; starts them
worker-chrome status     # endpoint, Chrome's user agent, the GPU sites see, webdriver=false
worker-chrome browsers   # every Chrome on the box, by label, with its screen, port and tabs
worker-chrome describe <name> "what it is for"   # shown by browsers

Its window is titled <host> · worker-chrome. Give any other Chrome on the box a label the same way, --window-name="<host> · <name>", and worker-chrome browsers lists it by that name.

Drive it

Connect over CDP with patchright-core, the Playwright API without the Runtime.enable call bot checks look for. It ships with this package:

// NODE_PATH=$(worker-chrome node-path) node drive.js
const { chromium } = require("patchright-core");
const b = await chromium.connectOverCDP("http://127.0.0.1:9230");
const p = await b.contexts()[0].newPage();   // your own tab in the shared, logged-in profile
await p.goto("https://example.com");
await p.close(); await b.close();            // close disconnects; Chrome keeps running

The chrome-devtools MCP works too: --browser-url=http://127.0.0.1:9230.

From your laptop

DevTools stays on 127.0.0.1. To drive this Chrome from another machine on a private network such as Tailscale, serve the port on that one address, to the machines you name:

worker-chrome expose 100.64.0.5 100.64.0.9      # bind address, then allowed source IPs or CIDRs
worker-chrome endpoint --remote                 # http://100.64.0.5:9230, for the allowed machines
worker-chrome expose off

A small relay unit (worker-chrome-expose.service) does it, so Chrome never restarts and never listens beyond loopback. It refuses 0.0.0.0 and ::, drops any source not on the list, and keeps its addresses in ~/.config/worker-chrome/expose. Connect with the IP, not a hostname: Chrome rejects DevTools requests whose Host is a name. Without expose, an SSH tunnel works: ssh -N -L 9230:127.0.0.1:9230 <box>.

skills/worker-chrome/SKILL.md is the agent skill: open your own tab, never a new context, never log out or clear data. Link it into your harness:

ln -s "$(npm root -g)/worker-chrome/skills/worker-chrome" ~/.claude/skills/

Logging in

The profile is only useful once you've signed in to the sites your agents need. From your laptop, screenshare opens this exact screen over RustDesk, already authenticated. Fallback on the box itself: worker-chrome view serves it over VNC on the Tailscale IP only.

Requirements

Linux with systemd user services (and lingering, so it starts at boot without a login), google-chrome-stable, Xvfb, openbox, Node 20+. A GPU at /dev/dri/renderD128 turns on WebGL through Vulkan; without one Chrome still runs, minus WebGL.

| setting | default | | | --- | --- | --- | | WORKER_CHROME_DISPLAY | 90 | X display number, read at setup | | WORKER_CHROME_PORT | 9230 | DevTools port, 127.0.0.1 only |

Profile: ~/.browser-profiles/worker-chrome. Update with npm i -g worker-chrome@latest, then worker-chrome restart.

License

MIT. Built by Aryan Saini as part of agent-fleet.