Browser Pool is a small, but powerful and extensible library, that allows you to seamlessly control multiple headless browsers at the same time with only a little configuration, and a single function call. Currently it supports Puppeteer, Playwright and it can be easily extended with plugins. We created Browser Pool because we regularly needed to execute tasks concurrently in many headless browsers and their pages, but we did not want to worry about launching browsers, closing browsers, restarting them after crashes and so on. We also wanted to easily and reliably manage the whole browser/page lifecycle. You can use Browser Pool for scraping the internet at scale, testing your website in multiple browsers at the same time or launching web automation robots.
Features
- Proxy management
- Launch multiple browsers
- Browser Pool includes other helpful features that make browser management more convenient
- Simple configuration
- You can easily set the maximum number of pages that can be open in a given browser and also the maximum number of pages to process before a browser is retired
- Lifecycle management with hooks
- Proxy management