pw

puppeteer-web

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

Showing:

Popularity

Downloads/wk

16

GitHub Stars

29

Maintenance

Last Commit

1yr ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

91.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100