An Erlang library that simplifies the process of verifying CAPTCHA responses for your web applications by providing easy-to-use functions for interacting with Cloudflare Turnstile, reCAPTCHA and hCaptcha.
Package can be installed by adding captcherl
to your list of dependencies:
{deps, [{captcherl, "0.1.1"}]}.
This library requires Erlang/OTP version 25 or later.
# Clone project
$ git clone https://github.com/bunopnu/captcherl.git
$ cd captcherl
# Build project
$ make build
# Run formatter
$ make format
# Run formatting check, dialyzer and xref
$ make check
# Run tests
$ make test
# Start an Erlang shell
$ make start
1> captcherl:verify(turnstile, {<<"1x0000000000000000000000000000000AA">>, <<"always true">>}).
true
Online documentation is available at HexDocs.
Alternatively, you can generate documentation locally by running the following command:
$ make doc
CaptchErl is licensed under the MIT license.