
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
fast-captcha
Advanced tools
By using 'Fast Captcha' you can enhance the security and user experience of your web application by adding CAPTCHA protection to your forms. This npm package simplifies the process of CAPTCHA generation and validation, helping you guard against automated

By using "Fast Captcha," you can enhance the security and user experience of your web application by adding CAPTCHA protection to your forms. This npm package simplifies the process of CAPTCHA generation and validation, helping you guard against automated spam and fraudulent submissions.
To install the Fast Captcha package, you can use npm:
npm install fast-captcha
Generate a new CAPTCHA:
const { getNewCaptcha } = require('fast-captcha');
const newCaptcha = getNewCaptcha();
console.log('CAPTCHA ID:', newCaptcha.id); // unique image id
console.log('CAPTCHA Data URL:', newCaptcha.imageData); // base64 image
Verify a new CAPTCHA:
const { verifyCaptcha} = require('fast-captcha');
const userAnswer = '1aOMC';
const captchaId = 34;// enter you captcha id
const isVerified = verifyCaptcha(captchaId, userAnswer);
console.log('CAPTCHA Verification Result:', isVerified); // true or false
if(isVerified){
console.log("okkkkkk");
}
else{
console.log("Wrong Captcha");
}
captchaId: repalce with your uniqe captcha id.userAnswer: Enter answer of captcha.It Return True Or False Boolean Value.
Show Captcha Image:
const express = require('express')
const app = express()
const { getNewCaptcha } = require('fast-captcha');
app.get('/', function (req, res) {
let Captcha = getNewCaptcha();
let uniqId = Captcha.id; // store it in you database to cross check captcha
res.send(`<img src="${Captcha.imageData}">`);
})
app.listen(3000, () => console.log("app running on port http://localhost:3000"))
$ npm install
Start the server:
$ npm start
View the website at: http://localhost:3000
This project is released under the MIT License.
Free Package, Hell Yeah!
卐🕉 Avinash Tare 🕉 卐
FAQs
By using 'Fast Captcha' you can enhance the security and user experience of your web application by adding CAPTCHA protection to your forms. This npm package simplifies the process of CAPTCHA generation and validation, helping you guard against automated
We found that fast-captcha 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.