Package Exports
- last-capmonster
- last-capmonster/dist/index.cjs.js
- last-capmonster/dist/index.esm.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (last-capmonster) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
CapMonster provider for puppeteer-extra-plugin-recaptcha!
This is a plugin for puppeteer-extra-plugin-recaptcha that implements CapMonster provider to the solver.

Install
npm i last-capmonsterUsage
const puppeteer = require('puppeteer-extra')
const { default: RecaptchaPlugin, BuiltinSolutionProviders } = require('puppeteer-extra-plugin-recaptcha')
const CapMonsterProvider = require('last-capmonster')
CapMonsterProvider.use(BuiltinSolutionProviders)
puppeteer.use(
RecaptchaPlugin({
provider: {
id: 'capmonster',
token: 'XXXXXXX', // REPLACE THIS WITH YOUR OWN CAPMONSTER API KEY ⚡
},
visualFeedback: true, // colorize reCAPTCHAs (violet = detected, green = solved)
})
)
// puppeteer usage as normal
puppeteer.launch({ headless: true }).then(async (browser) => {
const page = await browser.newPage()
await page.goto('https://www.google.com/recaptcha/api2/demo')
// That's it, a single line of code to solve reCAPTCHAs 🎉
await page.solveRecaptchas()
await Promise.all([page.waitForNavigation(), page.click(`#recaptcha-demo-submit`)])
await page.screenshot({ path: 'response.png', fullPage: true })
await browser.close()
})Credits
- Thanks to notsapinho for the original plugin