{"repo":"tinovyatkin/nest-puppeteer","free":true,"listed":false,"github":"https://github.com/tinovyatkin/nest-puppeteer","clone":"git clone https://github.com/tinovyatkin/nest-puppeteer.git","description":"Puppeteer (Headless Chrome) provider for Nest.js","language":"TypeScript","stars":106,"topics":["puppeteer","headless-chrome","nestjs","nestjs-library"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"nest-puppeteer Description A NestJS module that provides dependency injection for Puppeteer, with support for sync/async configuration and named instances. Installation puppeteer is a peer dependency, so install it alongside nest-puppeteer : Usage The API follows standard NestJS dynamic module patterns. If you’re new to Nest DI, see the custom providers docs. Quick start Register the module once (usually in AppModule ). Use isGlobal: true if you want to inject Puppeteer in feature modules without re-importing. Injecting Browser / Context / Page This module provides three injectable singletons per instance: Browser , BrowserContext (created via browser.createBrowserContext() ), and a single Page created from that context. Named instances If you need multiple browsers (e.g., different executablePath or profiles), pass an instanceName as the second argument to forRoot and to the @Inject () decorators: Launch arguments & defaults When you provide custom args in your launch options, they are merged with the default arguments rather than replacing them. This ensures you don't accidentally lose important defaults (e.g., --no-sandbox on Linux). Default arguments include: - --allow-insecure-localhost - --allow-http-screen-capture - --no-zygote - --no-sandbox (Linux only) - --disable-blink-features=AutomationControlled (removes automation detection flag) A note on --no-sandbox On Linux, we add --no-sandbox by default for compatibility with common environments. However, Puppeteer strong","default_branch":null,"files":null,"tree":[],"storefront":"/r/tinovyatkin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tinovyatkin/nest-puppeteer/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}