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

cloak-r-brwoser

v1.0.0

Published

API-compatible browser connector like brave-real-browser, powered by cloak-real-puppeteer-core and CloakBrowser.

Readme

🦁 Brave Real Browser

Puppeteer with Brave Browser | Stealth Mode | Turnstile Auto-Solver

A production-ready library that combines Puppeteer with Brave Browser for undetectable web automation.

✨ Features

  • 🦁 Brave Browser - Uses Brave instead of Chromium
  • 🛡️ 50+ Stealth Features - Passes all major bot detectors
  • ☁️ Turnstile Auto-Solver - Cloudflare CAPTCHA bypass
  • 🖱️ Real Cursor - Ghost-cursor for human-like movements
  • 🔌 Plugin Support - Puppeteer-extra plugins compatible
  • 🌐 Proxy Support - Built-in proxy configuration
  • ⬇️ Auto-Install - Brave auto-installs if missing

🚀 Installation

npm install brave-real-browser

For Linux:

sudo apt-get install xvfb

💡 Quick Start

const { connect } = require('brave-real-browser');

const { browser, page } = await connect({
  headless: false,
  turnstile: true,  // Auto-solve Cloudflare
});

await page.goto('https://example.com');

// Use real cursor for human-like clicking
await page.realClick('#button');

await browser.close();

📋 Connect Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | headless | boolean\|'new' | false | Headless mode | | args | string[] | [] | Additional Chrome flags | | customConfig | object | {} | Brave launcher options | | proxy | object | {} | Proxy configuration | | turnstile | boolean | false | Auto-solve Cloudflare Turnstile | | connectOption | object | {} | Puppeteer connect options | | disableXvfb | boolean | false | Disable virtual display (Linux) | | plugins | array | [] | Puppeteer-extra plugins | | ignoreAllFlags | boolean | false | Override all default flags |

Proxy Configuration

const { browser, page } = await connect({
  proxy: {
    host: '127.0.0.1',
    port: 8080,
    username: 'user',     // Optional
    password: 'pass'      // Optional
  }
});

Custom Brave Path

const { browser, page } = await connect({
  customConfig: {
    bravePath: 'C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe',
    userDataDir: './my-profile'
  }
});

🖱️ Real Cursor (Ghost-Cursor)

Built-in ghost-cursor for human-like mouse movements:

const { browser, page } = await connect();

// Human-like click
await page.realClick('#submit-button');

// Full cursor control
await page.realCursor.move('#element');
await page.realCursor.click('#button');

☁️ Turnstile Auto-Solver

Automatically solves Cloudflare Turnstile challenges:

const { browser, page } = await connect({
  turnstile: true
});

await page.goto('https://site-with-turnstile.com');
// Turnstile is automatically solved!

🔌 Puppeteer-Extra Plugins

const clickAndWait = require('puppeteer-extra-plugin-click-and-wait')();

const { browser, page } = await connect({
  plugins: [clickAndWait]
});

🧪 Testing

# Run all 7 bot detector tests
npm run cjs_test
# or
node test/cjs/test.js

# ESM test
npm run esm_test
# or
node test/esm/test.js

Test Coverage

| Test | Description | Status | |------|-------------|--------| | DrissionPage Detector | Chinese bot detector | ✅ Pass | | Sannysoft WebDriver | WebDriver detection | ✅ Pass | | Cloudflare WAF | Full page challenge | ✅ Pass | | Cloudflare Turnstile | CAPTCHA widget | ✅ Pass | | FingerprintJS | Browser fingerprinting | ✅ Pass | | Datadome | Anti-bot detection | ✅ Pass | | reCAPTCHA v3 | Google score test | ✅ Pass |

🐳 Docker

docker build -t brave-real-browser .
docker run brave-real-browser

🆚 Re-exports

Access brave-real-launcher features directly:

const { 
  connect,
  launcher,      // brave-real-launcher module
  launch,        // Direct browser launch
  killAll,       // Kill all browsers
  getBravePath,  // Get Brave path
  DEFAULT_FLAGS  // Default browser flags
} = require('brave-real-browser');

❓ FAQ

Why can't I pass reCAPTCHA v3?

When there's no Google session, reCAPTCHA identifies you as a bot. This is a known limitation - log into a Google account first.

page.setViewport not working?

Set defaultViewport in connectOption:

const { browser, page } = await connect({
  connectOption: { defaultViewport: null }
});

Mouse positions don't match?

This is automatically patched. Use page.realClick() for best results.

📄 License

MIT - See LICENSE

🙏 Credits

  • rebrowser - Runtime patches
  • ghost-cursor - Human-like mouse movements
  • brave-real-launcher - Brave Browser launcher