Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
/ puppeteer-web Public archive

πŸ”₯πŸ”₯ puppeteer-web bundle created using browserify πŸ”₯πŸ”₯

Notifications You must be signed in to change notification settings

entrptaher/puppeteer-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

puppeteer-web bundle created using browserify

Why?

  • The bundlers fails to bundle puppeteer, and downloading puppeteer repo just to build puppeteer-web version seems like a hassle for quick development.
  • Puppeteer team removed puppeteer-web from their repo in this PR
  • The previous puppeteer could be found here on this commit, but it's a pain to build that as well.
  • Lots of questions in stackoverflow like this shows the demand of such library.

Usage

yarn add puppeteer-web
import puppeteer from 'puppeteer-web';

async function run(){

  const browser = await puppeteer.connect({
    browserWSEndpoint: `ws://0.0.0.0:8080`, // <-- connect to a server running somewhere
    ignoreHTTPSErrors: true
  });

  const pagesCount = (await browser.pages()).length;
  const browserWSEndpoint = await browser.wsEndpoint();
  console.log({ browserWSEndpoint, pagesCount });

}

Roadmap

  • Auto build new minorversion on new puppeteer-core release
  • Update document about pitfall
  • Add server and client example along with a explanation post

About

πŸ”₯πŸ”₯ puppeteer-web bundle created using browserify πŸ”₯πŸ”₯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published