{"_id":"@captcha-libs/capguru","_rev":"2-c05aeb35670e4ba081aaeb6e65137727","name":"@captcha-libs/capguru","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@captcha-libs/capguru","version":"1.0.0","keywords":["CapGuru","Captcha recognition","Captcha solving","Puzzle solving","TikTok captcha","Amazon captcha","AWS WAF captcha","Geetest captcha","Binance captcha","Buxmoney captcha","HCaptcha","Worldcash captcha","SeoFast captcha","Linkvertise captcha","ReCaptcha","FunCaptcha"],"author":{"name":"Max Shy"},"license":"ISC","_id":"@captcha-libs/capguru@1.0.0","maintainers":[{"name":"blackravenx","email":"maxshy1337@icloud.com"}],"homepage":"https://github.com/blackravenx/captcha-libs#readme","bugs":{"url":"https://github.com/blackravenx/captcha-libs/issues"},"dist":{"shasum":"c7dab457eb947077b4728f46166fc7aac48b896d","tarball":"https://registry.npmjs.org/@captcha-libs/capguru/-/capguru-1.0.0.tgz","fileCount":66,"integrity":"sha512-r1YsSOY98z3zt+ojCU6IugxSx9d9fwVXhpKXticLuEhqWHvH1tM9pDk2nDxE3Knh+z/gvAHOs19CTx859rkYJQ==","signatures":[{"sig":"MEUCIQDZw4tsDddZUfLRpNzt3Kpk6nI+K9iiR3+XBb4NsIlXrwIgFLXOe1I6O/af7dLSRpLQpNsmy7NEb8s3DcZUXdkbNss=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":91898},"main":"./index.js","type":"commonjs","types":"./index.d.ts","gitHead":"aea60d1637328d5cac73cc0db2701dc19b97e3d3","_npmUser":{"name":"blackravenx","email":"maxshy1337@icloud.com"},"repository":{"url":"git+https://github.com/blackravenx/captcha-libs.git","type":"git","directory":"capguru"},"_npmVersion":"8.19.2","description":"CapGuru NodeJS client, captcha recognition service","directories":{},"_nodeVersion":"19.0.1","dependencies":{"ofetch":"^1.3.3","@captcha-libs/captcha-client":"latest"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/capguru_1.0.0_1707568143176_0.7885557735472044","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@captcha-libs/capguru","version":"2.0.0","keywords":["CapGuru","Captcha recognition","Captcha solving","Puzzle solving","TikTok captcha","Amazon captcha","AWS WAF captcha","Geetest captcha","Binance captcha","Buxmoney captcha","HCaptcha","Worldcash captcha","SeoFast captcha","Linkvertise captcha","ReCaptcha","FunCaptcha"],"author":{"name":"Max Shy"},"license":"ISC","_id":"@captcha-libs/capguru@2.0.0","maintainers":[{"name":"blackravenx","email":"maxshy1337@icloud.com"}],"homepage":"https://github.com/blackravenx/captcha-libs#readme","bugs":{"url":"https://github.com/blackravenx/captcha-libs/issues"},"dist":{"shasum":"b3fd048ccadedfa0f8cabaadfcfad0cfa4f6fb61","tarball":"https://registry.npmjs.org/@captcha-libs/capguru/-/capguru-2.0.0.tgz","fileCount":8,"integrity":"sha512-AHAXGDAMK+P2mP8Y44EGaT/EDKiyi/wRSoSIIRKInAecg+ZthiXuEVC7lrOz/5tDN0CqLef0uZ+8t8m4iJSF9w==","signatures":[{"sig":"MEUCIQD74jpjTZCREXhluwCJF9oThnII0kiuwazC4vyH1kuB+AIgAy55K/jj7/ey8H5DcjB9lvWMDKMNyPlkhvXNyAAOJEA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":260333},"main":"dist/index.cjs","type":"module","_from":"file:captcha-libs-capguru-2.0.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"lint":"eslint --config ./eslint.config.js --fix  --ignore-pattern '**/node_modules/**'  --ignore-pattern '**/dist/**'  --ignore-pattern '**/*.json/**' .","test":"vitest run .","build":"tsup"},"_npmUser":{"name":"blackravenx","email":"maxshy1337@icloud.com"},"_resolved":"/tmp/2da8ddd0ccd2e5d0d73577a36b8484c1/captcha-libs-capguru-2.0.0.tgz","_integrity":"sha512-AHAXGDAMK+P2mP8Y44EGaT/EDKiyi/wRSoSIIRKInAecg+ZthiXuEVC7lrOz/5tDN0CqLef0uZ+8t8m4iJSF9w==","repository":{"url":"git+https://github.com/blackravenx/captcha-libs.git","type":"git","directory":"capguru"},"_npmVersion":"10.8.2","description":"CapGuru NodeJS client, captcha recognition service","directories":{},"_nodeVersion":"20.18.2","dependencies":{"node-fetch":"^3.3.2","@captcha-libs/captcha-client":""},"_hasShrinkwrap":false,"devDependencies":{"@captcha-libs/eslint-config":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capguru_2.0.0_1739711665825_0.8843286909941321","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@captcha-libs/capguru","version":"2.0.1","keywords":["CapGuru","Captcha recognition","Captcha solving","Puzzle solving","TikTok captcha","Amazon captcha","AWS WAF captcha","Geetest captcha","Binance captcha","Buxmoney captcha","HCaptcha","Worldcash captcha","SeoFast captcha","Linkvertise captcha","ReCaptcha","FunCaptcha"],"license":"ISC","author":{"name":"Max Shy"},"repository":{"type":"git","url":"git+https://github.com/blackravenx/captcha-libs.git","directory":"capguru"},"dependencies":{"@captcha-libs/captcha-client":"","node-fetch":"^3.3.2"},"devDependencies":{"@captcha-libs/eslint-config":"^2.0.0"},"description":"CapGuru NodeJS client, captcha recognition service","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"lint":"eslint --config ./eslint.config.js --fix  --ignore-pattern '**/node_modules/**'  --ignore-pattern '**/dist/**'  --ignore-pattern '**/*.json/**' .","test":"vitest run .","build":"tsup"},"_id":"@captcha-libs/capguru@2.0.1","bugs":{"url":"https://github.com/blackravenx/captcha-libs/issues"},"homepage":"https://github.com/blackravenx/captcha-libs#readme","_integrity":"sha512-dDlKj9LXxjeqN8O7tfGbMGLoU4IczlAzHtcMG09Vugm0XsPhkUxv0bsW9HSh49yuEGSob71GTgu9fafSWGcY8A==","_resolved":"/tmp/c7de966c2f60827cc7859ee0f4d6e4b6/captcha-libs-capguru-2.0.1.tgz","_from":"file:captcha-libs-capguru-2.0.1.tgz","_nodeVersion":"20.18.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-dDlKj9LXxjeqN8O7tfGbMGLoU4IczlAzHtcMG09Vugm0XsPhkUxv0bsW9HSh49yuEGSob71GTgu9fafSWGcY8A==","shasum":"40c738acbf774a4e34cdcce357b3efbe2948f64f","tarball":"https://registry.npmjs.org/@captcha-libs/capguru/-/capguru-2.0.1.tgz","fileCount":8,"unpackedSize":263066,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDb1KoV5dLhpEzigSDY4FpQixZGFRncA6TQagv6DAnoCQIhAMO/l3Y6zJ7I8BxG09PTZ/5z4FtZO/WUuDQ3F9EIEQ0L"}]},"_npmUser":{"name":"blackravenx","email":"maxshy1337@icloud.com"},"directories":{},"maintainers":[{"name":"blackravenx","email":"maxshy1337@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capguru_2.0.1_1739902041318_0.9622653935530887"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-10T12:29:03.109Z","modified":"2025-02-18T18:07:21.732Z","1.0.0":"2024-02-10T12:29:03.338Z","2.0.0":"2025-02-16T13:14:26.010Z","2.0.1":"2025-02-18T18:07:21.503Z"},"bugs":{"url":"https://github.com/blackravenx/captcha-libs/issues"},"author":{"name":"Max Shy"},"license":"ISC","homepage":"https://github.com/blackravenx/captcha-libs#readme","keywords":["CapGuru","Captcha recognition","Captcha solving","Puzzle solving","TikTok captcha","Amazon captcha","AWS WAF captcha","Geetest captcha","Binance captcha","Buxmoney captcha","HCaptcha","Worldcash captcha","SeoFast captcha","Linkvertise captcha","ReCaptcha","FunCaptcha"],"repository":{"type":"git","url":"git+https://github.com/blackravenx/captcha-libs.git","directory":"capguru"},"description":"CapGuru NodeJS client, captcha recognition service","maintainers":[{"name":"blackravenx","email":"maxshy1337@icloud.com"}],"readme":"# CapGuru NodeJS captcha client - use CapGuru with ease \n![CapGuru logo](capguru-logo.png)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-blue.svg)](https://www.paypal.com/paypalme/maxshydev)\n[![GitHub stars](https://img.shields.io/github/stars/blackravenx/captcha-libs.svg?style=social&label=Star)](https://github.com/blackravenx/captcha-libs)\nDocs: https://docs.cap.guru/en/\n## Register via this [link](https://cap.guru/en/regen/?ref=140559)\n## Installation\nVia [npm](https://www.npmjs.com/package/@captcha-libs/capguru)\n    ```npm i @captcha-libs/capguru```\n\nUsage\n```javascript\nimport { CapGuru, GenericPuzzleTask } from \"@captcha-libs/capguru\";\n\nconst capguruClient = new CapGuru({\n  baseUrl: \"https://api3.cap.guru/\", // base url for capguru, default = \"https://api3.cap.guru/\"\n  clientKey: \"<YOUR_CLIENT_KEY>\",\n  pollingInterval: 5000, // optional. Delay in milliseconds to fetch task result, default: 5000ms\n  timeout: 120_000 // optional. Max time in milliseconds to wait for settled task result, default: 120000ms,\n});\n\nconst puzzleRequest = new GenericPuzzleTask({ body: \"puzzle-image-in-base64\" });\n\nconst puzzleSolution = await capguruClient.solve(puzzleRequest);\n\nconst {\n  request, // as-is solution from api, example: \"coordinates:x=247,y=0\"\n  solution // parsed solution added by this library, example: { x: 247, y: 0}\n} = puzzleSolution;\n\n//to get balance\nconst balance = await capguruClient.getBalance()\n```\n\n### Parsed solution examples\n* #### Single coordinate\n```\n\"coordinate:x=44,y=32\" -> { x: 44, y: 32}\n```\n* #### Multiple coordinates\n```\n\"coordinates:x=99,y=196;x=197,y=148;x=144,y=47\" -> [{x:99,y:196},{x:197,y:148},{x:144,y:47}]\n```\n* #### Images \n```\n\"5,8,4,1\" -> [5, 8, 4, 1]\n```\n* ### Token (parsed as-is)\n```\n\"token\" -> \"token\"\n```\n### Currently supported task payloads\n\n1. Classification\n    * [AmazonCarPathTask](https://docs.cap.guru/en/apiclick/aws.html)\n    * [AmazonPuzzleTask](https://docs.cap.guru/en/apiclick/aws.html)\n    * [BinanceGridTask](https://docs.cap.guru/en/apiclick/binance.html#examples-2)\n    * [BinancePuzzleTask](https://docs.cap.guru/en/apiclick/binance.html#examples)\n    * [BuxMoneyCoordinatesTask](https://docs.cap.guru/en/apiclick/other/bux.html)\n    * [FunCaptchaGridTask](https://docs.cap.guru/en/apiclick/funcap.html)\n    * [GeeTestPuzzleTask](https://docs.cap.guru/en/apiclick/geetest.html#examples)\n    * [GenericPuzzleTask - task for any puzzle](https://docs.cap.guru/en/api/slider.html)\n    * [HCaptchaCoordinatesTask](docs.cap.guru/en/apiclick/hcap.html)\n    * [HCaptchaGridTask](docs.cap.guru/en/apiclick/hcap.html)\n    * [ImageToTextTask](https://docs.cap.guru/en/apiclick/text.html)\n    * [LinkvertiseCoordinatesTask](https://docs.cap.guru/en/apiclick/other/linkvertise.html)\n    * [ReCaptchaGridTask](https://docs.cap.guru/en/apiclick/recap.html)\n    * [SeoFastCoordinatesTask](https://docs.cap.guru/en/apiclick/other/seofast.html)\n    * [TikTokABCTask](https://docs.cap.guru/en/apiclick/tiktok.html#versions)\n    * [TikTokKolesoTask](https://docs.cap.guru/en/apiclick/tiktok.html#versions)\n    * [TikTokPuzzleTask](https://docs.cap.guru/en/apiclick/tiktok.html#versions)\n    * [WorldCashCoordinatesTask](https://docs.cap.guru/en/apiclick/other/worldcash.html)\n2. Token\n    * [HCaptchaTask](https://docs.cap.guru/en/apitoken/hcap.html)\n    * [ReCaptchaV2Task](https://docs.cap.guru/en/apitoken/recap2.html)\n    * [ReCaptchaV3Task](https://docs.cap.guru/en/apitoken/recap3.html)\n    * [TurnstileTask](https://docs.cap.guru/en/apitoken/turnstile.html)\n    ","readmeFilename":"README.md"}