puppeteer is a headless browser, you can’t load it inside a web browser . For other packages that can be run in the browser take a look at: stackoverflow.com/questions/19059580/… You can translate Puppeteer commands to respective browser API but some likely won’t work.