CAPTCHA, but without the images, tracking, or 250x bloat

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Developers who need only basic bot deterrence can now replace Google's 400KB+ reCAPTCHA and its user tracking with a self-hosted library of a few hundred bytes.

Read this as

Cap is a small open-source CAPTCHA tool that replaces those puzzle images asking you to click traffic lights. Instead, it shows simple text questions like a maths sum or a word typed backwards. The whole library is a few hundred bytes, compared with the 400KB+ that Google's reCAPTCHA loads, and it sends nothing to third parties. It suits sites wanting to stop casual spam without the bloat, privacy cost, or inaccessibility of image puzzles, though it will not stop determined bots.

Cap is a free, open-source JavaScript CAPTCHA library of a few hundred bytes, a claimed 250x smaller than Google's reCAPTCHA at 400KB+. Unlike reCAPTCHA, it transmits no behavioural data to Google, avoiding privacy exposure and third-party dependency. It suits low-stakes use cases like stopping spam sign-ups on internal tools. It will not stop determined bot farms, so high-security sites still need stronger options.

Cap is a dependency-free JavaScript class usable in the browser or Node.js, installable via npm as 'cap-captcha' or as a single file. It generates randomised text challenges such as arithmetic or word reversals, computes expected answers server-side, and verifies responses with no external API calls, so it works offline. Challenge generators are pluggable, so developers can write custom question types. The author concedes it will not stop determined bot farms, and no security benchmark or evaluation is given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Cap reCAPTCHA Google GitHub npm Node.js

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.