A captcha generation tool built with Node.js and Canvas.
Want to check online? 🚀Live Link
Easy Captcha showcases the ability of Node.js to create captcha images, providing a straightforward and effective method to implement captcha functionality in web applications. Utilizing the Canvas library, this tool generates customizable captcha images to help prevent automated abuse and ensure security.
To install the project, follow these steps:
git clone https://github.com/MHNahib/easy-captcha-server.git
cd easy-captcha-server
npm installClone the project:
git clone https://github.com/MHNahib/easy-captcha-server.gitNavigate to the project directory:
cd easy-captcha-serverInstall dependencies:
npm installStart the server:
npm startBy hitting the root endpoint (/), the API returns a PNG image containing a captcha.
GET /You can provide your own text using a query parameter.
GET /?text=<YOUR_TEXT>For example, using c5Uop:
GET /?text=c5UopNote: The text cannot be more than 5 characters long. If it exceeds 5 characters, an error response is returned:
{
"status": false,
"data": {
"captcha": "c5Uop55",
"image": null
},
"message": "Text is too long!"
}You can get a JSON response with the text and image base64 string using a query parameter:
GET /?type=base64

