What are Puppeteer & Headless Chrome. Puppeteer is a Node. js library that you can use to control headless Chrome. It can be used to automate things that normally performed manually in the browser, such as submitting forms, UI testing, keyboard input, or capturing a timeline trace to diagnose performance.