Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/healeycodes/captcha-api
🔒 An API for generating CAPTCHAs from scratch (Node.js)
https://github.com/healeycodes/captcha-api
canvas captcha captcha-generator jest nodejs
Last synced: 13 days ago
JSON representation
🔒 An API for generating CAPTCHAs from scratch (Node.js)
- Host: GitHub
- URL: https://github.com/healeycodes/captcha-api
- Owner: healeycodes
- License: mit
- Created: 2019-11-10T13:13:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:45:06.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T17:43:19.561Z (about 1 month ago)
- Topics: canvas, captcha, captcha-generator, jest, nodejs
- Language: JavaScript
- Homepage: https://healeycodes.com/javascript/webdev/node/tutorial/2019/11/11/lets-generate-captchas.html
- Size: 341 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CAPTCHA API ![](https://github.com/healeycodes/captcha-api/workflows/Node%20CI/badge.svg)
> My blog post: [Let's Build a CAPTCHA Generator with Node.js](https://healeycodes.com/javascript/webdev/node/tutorial/2019/11/11/lets-generate-captchas.html)
🔒 Keep those nasty bots out with a home-grown CAPTCHA!
![](https://github.com/healeycodes/captcha-api/blob/master/preview.jpg)
### Install
`npm i`
### Run
`npm start`
### API
All routes default to 200x100 size unless specified.
- `/test/:width?/:height?/`
- Get a web page with an image element to manually test the API.- `/captcha/:width?/:height?/`
- Get a CAPTCHA object for proper usage.
- `{ "image": , "text": }`### Test
Uses Jest to run integration tests.
`npm test`
n.b. CAPTCHAs are [not accessible](https://www.w3.org/TR/turingtest/) and in some cases not even effective.