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

@vibecontrols/vibe-plugin-desk-browser

v2026.1203.1

Published

Browser desk provider for BotManor Stewards: a dedicated Chromium profile driven with Playwright behind the common desk API (screenshot, snapshot refs, click, type, keys, scroll, guarded navigation, origin-bound secret fill).

Downloads

1,452

Readme

@vibecontrols/vibe-plugin-desk-browser

The browser provider for BotManor Stewards desks. It gives a Steward a dedicated Chromium profile and drives it with Playwright behind the common desk API of @vibecontrols/vibe-plugin-desk.

Install it next to the desk meta plugin. The meta routes actions here and enforces fencing, idempotency, timeouts, local consent and the kill switch. This plugin does the browsing.

Actions

| Action | What it does | | ------------- | --------------------------------------------------------------------------------------------------------------------------- | | screenshot | PNG of the page. Password fields are masked. | | snapshot | The actionable elements of the page, each with a ref (e1, e2, ...), plus the page text. Password values are never read. | | click | Clicks a ref or a point. Takes button and a double-click count. | | type | Types text, after focusing a ref or point if one is given. | | secret_fill | Fills a field from the secret store, only when the page origin equals expectedOrigin. The value is never returned. | | key | Presses keys in Playwright syntax, for example Enter or Control+A. | | scroll | Scrolls by dx/dy, over a ref or point if one is given. | | navigate | Opens an http(s) URL that passes the URL guard (below). |

Window, shell and file actions are not browser actions. The meta refuses them for this provider.

Refs come from the last snapshot and are written into the page under an attribute name that is random per snapshot, so a page cannot forge them. A ref that no longer matches exactly one visible element returns TARGET_NOT_FOUND: take a new snapshot.

Where the browser may go

The URL guard is the same as the FluidGrids remote browser node's:

  • Allowed: http and https only, with no user name or password in the URL.
  • Refused:
    • localhost, *.local, *.internal and single-label names;
    • every address that is not globally routable: private, loopback, CGNAT, link-local (which includes the cloud metadata address), multicast and reserved, plus IPv4-mapped and NAT64 forms of them.
  • When the guard runs:
    • before every navigation;
    • on the final URL after redirects; a blocked final URL clears the page and returns URL_BLOCKED;
    • on every request the page makes, without a DNS lookup.
  • Always off: service workers and downloads.

Limits:

  • Chrome resolves names itself, so DNS rebinding is not caught here. A redirect is followed before its target is checked.
  • On a cloud desk, the egress proxy covers both cases: it checks the address it actually connects to.
  • On a user's own machine, there is no proxy. That machine's network is the user's, and the consent screen says so.

Configuration

Set with vibe config --set <key>=<value>:

| Key | Default | Meaning | | ---------------------------------- | ------------------------- | ---------------------------------------------------------------------------------- | | desk-browser.executable-path | Playwright's Chromium | Chrome or Chromium binary | | desk-browser.channel | none | chrome, msedge, ... instead of a path | | desk-browser.headless | off when a display exists | on or off | | desk-browser.proxy | none | http(s) proxy URL without credentials. Cloud desks use http://172.20.0.200:3128. | | desk-browser.proxy-username | none | Proxy sign-in user name. A cloud desk uses its desk id. | | desk-browser.proxy-password-file | none | File holding the proxy password. A cloud desk uses its egress token. | | desk-browser.allowed-hosts | any public host | Comma-separated allow-list. *.example.com matches subdomains. | | desk-browser.sandbox | on | Chromium's sandbox. Only off turns it off; see below. | | desk-browser.resolve-hosts | on | Resolve each navigation host here. Only off, and only with a proxy; see below. |

Host resolution behind the egress proxy

Before each navigation the URL guard resolves the host and refuses it when any address is not public. A cloud desk has no DNS of its own: only its egress proxy resolves names, and the proxy refuses non-public addresses on the connection it makes. On such a desk the lookup could only fail, so every named site was refused with "does not resolve" (BOFF-16574).

  • Set desk-browser.resolve-hosts to off on a desk whose every request goes through an egress proxy that checks addresses itself. The guard then skips the lookup and still refuses private names and literal addresses (localhost, *.internal, 10.0.0.1, 169.254.169.254, ...), other schemes and hosts outside the allow-list.
  • Without desk-browser.proxy the setting is ignored with a warning, because nothing else would check the address.

Chromium sandbox

Chromium runs with its sandbox on (BOFF-17996). Playwright turns it off by default, but a browser that an AI agent drives across arbitrary sites on a person's machine keeps it.

  • Set desk-browser.sandbox to off only on a host that cannot run the sandbox, such as a container without user namespaces or the setuid helper. The agent logs a warning at start when it is off.
  • When Chromium cannot start its sandbox, actions fail with DESK_OFFLINE "Chromium could not start its sandbox on this machine; set desk-browser.sandbox to off only where the platform cannot run it".

"Steward in control" indicator

While a Steward is in control (BOFF-16567), the browser shows a bar at the top of the page, "Steward in control: ", and a frame around the page. The bar has a Stop Steward button.

  • Stop presses the desk kill switch at once, through the desk/kill service of vibe-plugin-desk. Every action in flight is refused KILL_SWITCH, a page that is loading stops loading, and the session ends. Releasing the kill switch stays with the person (vibe desk resume).
  • The bar is drawn in a closed shadow root outside <body>. It is not part of a desk snapshot or the page text, and the website's scripts cannot read the Steward's name or press Stop.
  • The page is untrusted, so a hostile site can still hide the bar. The authoritative state is vibe desk status, and the kill switch is also available as vibe desk kill and from the local API.

When an action is aborted (the kill switch, or the caller gave up), the page stops loading, so a navigation in flight does not complete.

Cloud desk egress sign-in

The cloud desk egress proxy refuses a desk that does not sign in (BOFF-16574). Each desk signs in with its desk id and an egress token from wspace-sandbox-svc. The token sets the desk's egress mode: any public site, an allow-list of hosts, or nothing.

  • The password is read from a file, not from config, so the token never sits in the agent's config store.
  • The file is read when the browser starts and checked before each action. When wspace-sandbox-svc writes a renewed token, the browser restarts with it and each desk's page is reopened at its last address. The profile, and with it every sign-in, is kept.
  • Both settings are needed, and they apply only together with desk-browser.proxy. If the file cannot be read, actions fail with DESK_OFFLINE "the egress proxy credentials are unavailable" and the browser does not start.

The browser starts on the first action and closes when the agent stops. The profile lives in <dataDir>/desk-browser-profile with mode 0700.

On a cloud desk, that folder is part of the home snapshot taken at hibernation. Sign-ins that use persistent cookies survive a restore; session-only cookies do not, just as when a browser is closed.

Secret fill

secret_fill needs a secret store that registers a resolver under the desk-secret provider type:

import type { DeskSecretResolver } from "@vibecontrols/vibe-plugin-desk-browser";

const store: DeskSecretResolver = {
  async resolve(secretRef, { origin, deskId }) {
    // Return the value only if this secret may be used on `origin`, else null.
    return null;
  },
};
host.serviceRegistry?.registerProvider?.(
  "desk-secret",
  store,
  "my-secret-store",
);

Without a store, secret_fill is refused and every other action works.

Development

bun install
bun run sanity   # format, lint, type check, build, tests

The browser tests need Chrome or Chromium: /usr/bin/google-chrome, or set DESK_BROWSER_TEST_EXECUTABLE. Without one they are skipped, and the test run says so.

License

MIT