
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
The NopeCHA Node.js library provides convenient access to the NopeCHA API from applications written in the Node.js language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.
Important note: this library is meant for server-side usage only, as using it in client-side browser code will expose your secret API key. See here for more details.
See the NopeCHA API docs.
$ npm install nopecha
The library needs to be configured with your account's secret key which is available on the website. Either set it as the NOPECHA_API_KEY environment variable before using the library:
export NOPECHA_API_KEY='...'
Or set nopecha.api_key to its value:
const { Configuration, NopeCHAApi } = require("nopecha");
const configuration = new Configuration({
apiKey: process.env.NOPECHA_API_KEY,
});
const nopecha = new NopeCHAApi(configuration);
// solve a recognition challenge
const clicks = await nopecha.solveRecognition({
type: 'hcaptcha',
task: 'Please click each image containing a cat-shaped cookie.',
image_urls: Array.from({length: 9}, (_, i) => `https://nopecha.com/image/demo/hcaptcha/${i}.png`),
});
// print the grids to click
console.log(clicks);
// solve a token
const token = await nopecha.solveToken({
type: 'hcaptcha',
sitekey: 'ab803303-ac41-41aa-9be1-7b4e01b91e2c',
url: 'https://nopecha.com/demo/hcaptcha',
});
// print the token
console.log(token);
// get the current balance
const balance = await nopecha.getBalance();
// print the current balance
console.log(balance);
FAQs
NopeCHA Node.js Library
The npm package nopecha receives a total of 386 weekly downloads. As such, nopecha popularity was classified as not popular.
We found that nopecha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.