Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-capmonster

alperensert4.3kMIT0.4.5TypeScript support: included

Capmonster.cloud module for NodeJS

capmonster, recaptcha v2 solver, recaptcha v2 enterprise solver, funcaptcha, hcaptcha, image-to-text, geetest, capmonster.cloud

readme

Capmonster.cloud for NodeJS

GitHub release (release name instead of tag name) License npm bundle size GitHub Repo stars GitHub package.json dependency version (prod) npm

At least 2x cheaper, up to 30x faster than manual recognition services.

If you have any problem with usage, read the documentation or create an issue

Installation

with yarn:

yarn add node-capmonster

with npm:

npm node-capmonster

with pnpm:

pnpm add node-capmonster

Supported captcha types

  • FunCaptcha
  • GeeTest
  • HCaptcha
  • Image to Text
  • ReCAPTCHA v2 / v2 Enterprise / v3
  • Turnstile
  • TenDI
  • AWS WAF

Usage examples

Recaptcha V2

import { RecaptchaV2Task } from "node-capmonster"

const client = new RecaptchaV2Task("<api_key>")
const task = client.task({
    websiteKey: "<website_key>",
    websiteURL: "<url>",
})
const taskId = await client.createWithTask(task)
const result = await client.joinTaskResult(taskId)

FuncaptchaTask

import { FuncaptchaTask } from "node-capmonster"

const client = new FuncaptchaTask("<api_key>")
const task = client.task({
    websitePublicKey: "<website_pubkey>",
    websiteURL: "<url>",
})
const taskId = await client.createWithTask(task)
const result = await client.joinTaskResult(taskId)

More examples can be found at documentation.

changelog

Changelog

0.4.5 (2024-04-28)

Features

  • added data dome task class for handling Data Dome captchas (5e340f3)
  • added geetest v4 task support (0332067)

Bug Fixes

  • export aws waf task from root of the package (da4822f)

0.4.4 (2024-04-27)

Features

0.4.3 (2024-04-17)

Features

Bug Fixes

  • gatsby docs lock file (7fa84c0)
  • gatsby-config & test workflow (26d2154)