ARCaptcha Component Library for NodeJS
Arcaptcha is a drop-replacement for reCAPTCHA and hCaptcha that protects user privacy, rewards websites, and helps companies get their data labeled.
Sign up at Arcaptcha to get your sitekey today. You need a sitekey to use this library.
Install using npm:
npm i arcaptcha-nodejs
Before doing anything, please read the documentation.
const arcaptcha = require("arcaptcha-nodejs");
// Verify challenge
arcaptcha.verify(
secret_key = "YOUR SECRET_KEY",
site_key = "YOUR_SITE_KEY",
challenge_id = "YOUR_CHALLENGE_ID"
).then((data) => {
console.log(data);
});
// Display API script tag
arcaptcha.display_tag()
// Display captcha HTML tag
arcaptcha.displayCaptcha(YOUR_SITE_KEY)
You can use the following functions with captcha
:
Function | Parameters | Description |
---|---|---|
display_tag() | Display ARCaptcha javascript resource HTML code. | |
displayCaptcha() | site_key, size, callback(default: None), theme, color(default: None),lang | Display captcha HTML code with all parameter. |