Hey there! We created this free, easy to use Captcha package so you can add additional Proof of Humanity (PoH) to your javascript apps to keep bots away.
- npm install freecaptcha
- have a canvas element on your HTML page where your want FreeCaptcha to place the Captcha
- in your index.js, import freecaptcha
- call its createCaptcha function which needs the HTMLCanvasElement from Step 2 as its sole argument
- var captcha_val = createCaptcha(canvas_el)
- check if the user entered value equates to captcha_val to qualify or disqualify them
For a direct look at how to embed FreeCaptcha, take a look at our test repository:
https://github.com/harshnambiar/freecaptcha_test
The NPM package can be found here:
https://www.npmjs.com/package/freecaptcha
Here is the repo: https://github.com/harshnambiar/freecaptcha