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

@memberjunction/remote-browser-browserless

v5.42.0

Published

MemberJunction: Browserless backend driver for the Remote Browser channel. Connects the shared CDP control kit to a browserless.io CDP-as-a-service session (raw CDP control, hosted live view, screen streaming, session recording, proxy egress, multi-tab, f

Readme

@memberjunction/remote-browser-browserless

The Browserless backend driver for MemberJunction's Remote Browser channel. Browserless (browserless.io) is a CDP-as-a-service: it hands back a Chrome DevTools Protocol connect endpoint and a hosted debug viewer URL, and the shared CDP control kit does all the actual page driving. This driver therefore answers only one backend-specific question — how do I obtain a CDP endpoint (and its live-view / release hooks) for Browserless? — behind an injectable service-client seam, so it builds and unit-tests with no network and no real Browserless account.

See the Realtime Bridges Guide and /plans/realtime/realtime-bridges-architecture.md (§4d-i, the Remote Browser channel) for the full architecture.

Install

npm install @memberjunction/remote-browser-browserless

What it provides

  • BrowserlessRemoteBrowser@RegisterClass(BaseRemoteBrowserProvider, 'BrowserlessRemoteBrowser'). A MJ: AI Remote Browser Providers row with DriverClass = 'BrowserlessRemoteBrowser' resolves to this driver via the ClassFactory. It extends BaseCdpRemoteBrowserProvider and implements only AcquireSession; everything else (action mapping, capability gating, screencast, Connect / Disconnect) is inherited from @memberjunction/remote-browser-cdp.
  • IBrowserlessClient — the injectable seam the driver depends on instead of the real service: CreateSession(options){ SessionId, CdpEndpoint, DebugViewerUrl } and CloseSession(sessionId).
  • BrowserlessSessionBackend — the ICdpSessionBackend for a live session: GetLiveViewUrl() returns the hosted debug viewer URL, InvokeNativeAIControl() throws (no native harness), and Release() ends the Browserless session (idempotently).

Capability coverage (the Browserless seed row)

Seed row name Browserless, DriverClass = 'BrowserlessRemoteBrowser', DefaultControlMode = 'ViewOnly'.

| Capability | Status | |---|---| | RawCdpControl | ✅ universal CDP substrate | | LiveView | ✅ hosted debug viewer URL | | ScreenStreaming | ✅ | | SessionRecording | ✅ | | ProxyEgress | ✅ | | MultiTab | ✅ | | FileDownloads | ✅ | | HumanTakeover | ➖ Browserless has no grab-the-wheel plane | | NativeAIControl | ➖ no first-party AI-control harness — InvokeNativeAIControl throws RemoteBrowserCapabilityNotSupportedError |

Because Browserless has no HumanTakeover, the provider default control mode is ViewOnly (the agent drives; humans watch the hosted live view).

Binding the real Browserless client (production)

This package ships without the real browserless.io adapter — that is a deployment concern, so no SDK / API key / connect URL is hard-wired here. At startup, bind a factory that builds an IBrowserlessClient over the real browserless.io CDP-as-a-service connect URL (wss://chrome.browserless.io/chromium?token=…):

import { BrowserlessRemoteBrowser, IBrowserlessClient } from '@memberjunction/remote-browser-browserless';

BrowserlessRemoteBrowser.SetClientFactory((options) => {
    // Build a thin adapter over the real browserless.io connect URL / REST surface.
    // Credentials/region arrive already resolved in `options`; never inline secrets.
    const client: IBrowserlessClient = {
        async CreateSession(opts) {
            // …provision/connect a Browserless browser, return its CDP connect URL + debug viewer URL
            return { SessionId, CdpEndpoint, DebugViewerUrl };
        },
        async CloseSession(sessionId) {
            // …end the Browserless session
        },
    };
    return client;
});

Until a factory is bound, AcquireSession throws an explicit "bind the real Browserless client" error.

Testing

Tests inject a FakeBrowserlessClient via BrowserlessRemoteBrowser.SetClientFactory(...) — no network, no real Browserless account. Run them with:

npm run test