Socket
Book a DemoInstallSign in
Socket

@molin.ai/rebrowser-cloudflare-puppeteer-core

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@molin.ai/rebrowser-cloudflare-puppeteer-core

A high-level API to control headless Chrome over the DevTools Protocol

1.0.10
latest
Source
npmnpm
Version published
Weekly downloads
587
88.14%
Maintainers
2
Weekly downloads
 
Created
Source

Puppeteer fork

Forked from @cloudflare/puppeteer with rebrowser patches applied.

Development

npm install
npm run build
npm install # run again after build to install browser binaries

Testing

npm run test:chrome:shell # no need to run all tests

Publishing

npm install
npm run build
npm install # run again after build to install browser binaries
./rebrowser/apply_patch.sh ./rebrowser/patches/lib-v22.8.2.patch
cd packages/puppeteer-core
npm version patch
npm run build # update version in .ts
git add . && git commit -m 'v1.0.9'
npm publish

Updating from upstream

Check against original repo at https://github.com/cloudflare/puppeteer/

Debugging

Set __PUPPETEER_DEBUG (WIP: not working yet)

Updating Patches

When patches fail to apply due to codebase changes:

  • Identify failing hunks - look for .rej files after failed patch application
  • Update split patches - edit individual patches in rebrowser/patches/lib-v22.8.2.patch-split/
  • Regenerate main patch - run ./rebrowser/unsplit_patch.sh ./rebrowser/patches/lib-v22.8.2.patch-split
  • Test application - run ./rebrowser/apply_patch.sh ./rebrowser/lib-v22.8.2.patch

Custom Changes Made to puppeteer-core

To resolve merge conflicts correctly during upstream updates, keep in mind these modifications we've made:

  • Removed Herebyfile
  • Removed api-extractor
  • Removed unused packages (vitest, mocha, sinon@root, tsd, @actions/core)
  • Direct imports: Moved rxjs, mitt, parsel-js to production dependencies and import directly instead of through third_party re-exports
  • Removed third_party re-export layer: Deleted third_party/*.ts files and updated all imports to use libraries directly

Upstreams

Keywords

puppeteer

FAQs

Package last updated on 03 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.