GoCaptcha creates interactive click, slide, drag-drop, and rotate CAPTCHA challenges with configurable images and validation.
Overview
GoCaptcha is a Go library for generating behavior-based CAPTCHA challenges instead of plain text entry. It supports click, slide, drag-drop, and rotate modes, each with distinct user interactions and server-side verification helpers.
Builders configure image sizes, fonts, colors, angles, backgrounds, thumbnails, and puzzle pieces through options and resource sets. Image generation produces master images, tiles, and thumbnails in JPEG or PNG forms suitable for web or mobile clients.
Click mode can use text or graphic targets; slide mode supports fixed-track or wider drag-drop movement; rotate mode asks users to align a cropped thumbnail angle. Validation functions compare submitted coordinates or angles against generated secrets with configurable padding.
The ecosystem includes documentation, an online demo, and related packages for JavaScript and popular front-end frameworks. Generated assets are intended to embed in web applications or other systems that need human verification.
Key features
- Click text and graphic CAPTCHA
- Slide and drag-drop puzzles
- Rotate alignment challenge
- Image and font customization
- Server-side validation helpers
- JPEG and PNG image output
- Modular builder API
Use cases
- Login and form protection
- Bot mitigation on APIs
- Custom themed verification
- Mobile and web sign-up flows