Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Captcha
  3. captcha

captcha

MITGo

A Go package for generating and verifying image and audio CAPTCHAs with built-in storage and HTTP server support.

Visit WebsiteGitHubGitHub
2.1k stars305 forks0 contributors

What is captcha?

dchest/captcha is a Go package that implements generation and verification of CAPTCHA challenges. It creates image and audio representations of numeric sequences to distinguish human users from automated bots in web applications. The package includes built-in storage for captcha state and an HTTP server for easy integration.

Target Audience

Go developers building web applications that need to protect forms, logins, or other endpoints from automated abuse and bot submissions.

Value Proposition

It provides a fully self-contained solution with no external dependencies, supports both visual and auditory challenges for accessibility, and offers a simple API with built-in HTTP serving capabilities, making it easy to integrate into existing Go web services.

Overview

Go package captcha implements generation and verification of image and audio CAPTCHAs.

Use Cases

Best For

  • Adding bot protection to Go web application login forms
  • Securing public API endpoints from automated scraping
  • Implementing accessible CAPTCHA with audio alternatives
  • Protecting comment sections or contact forms from spam
  • Creating custom CAPTCHA workflows with database-backed storage
  • Serving CAPTCHA challenges via a dedicated HTTP handler

Not Ideal For

  • Applications requiring AI-powered bot detection beyond basic OCR challenges
  • Projects needing CAPTCHA solutions with alphanumeric or image-based puzzles instead of numeric digits
  • Teams wanting a fully managed, cloud-based CAPTCHA service without backend integration or maintenance
  • High-security environments where advanced OCR breaking is a critical threat

Pros & Cons

Pros

Self-contained Implementation

Requires no external dependencies or files, making it easy to integrate into Go projects without additional setup, as emphasized in the README.

Built-in HTTP Server

Provides a ready-to-use http.Handler for serving captcha images and audio directly from URLs, simplifying web integration without custom routing.

Audio Accessibility Support

Includes WAV audio captchas in multiple languages (English, Russian, Chinese, Japanese, Portuguese) with random speed and pitch for enhanced accessibility and security.

Flexible Storage Options

Supports pluggable storage backends via the Store interface, allowing integration with databases or distributed systems beyond the default memory store.

Cons

Acknowledged Security Limitations

The README explicitly warns it can be broken by advanced OCR algorithms, making it unsuitable for high-threat applications where robust bot detection is essential.

Numeric-Only Challenge Set

Captchas are limited to digits 0-9, which may be easier for bots to guess or solve compared to more complex alphanumeric or image-based alternatives.

Default Storage Scalability Issues

The built-in memory store uses garbage collection triggered after CollectNum captchas, which can be inefficient for high-traffic or distributed systems without custom implementation.

Frequently Asked Questions

Quick Stats

Stars2,065
Forks305
Contributors0
Open Issues2
Last commit1 year ago
CreatedSince 2011

Tags

#bot-protection#http-handler#web-security#authentication#audio-captcha#security#captcha#image-generation#self-contained#go#image-captcha

Built With

G
Go

Links & Resources

Website

Included in

Captcha1.4k
Auto-fetched 18 hours ago

Related Projects

base64Captchabase64Captcha

captcha of base64 image string

Stars2,367
Forks312
Last commit1 year ago
svg-captchasvg-captcha

generate svg captcha in node

Stars1,933
Forks178
Last commit2 years ago
captchacaptcha

A captcha library that generates audio and image CAPTCHAs.

Stars1,097
Forks189
Last commit1 year ago
SwipeCaptchaSwipeCaptcha

Swipe captcha of Android platform. Android 平台的滑动验证码。

Stars706
Forks141
Last commit7 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub