250x smaller than hCaptcha
~20kb, zero dependencies, loads in milliseconds
Lightweight, self-hosted, privacy-friendly, and designed to put you first. Switch from reCAPTCHA in minutes.

Cap is the modern, open-source alternative to traditional CAPTCHAs that uses proof-of-work instead of annoying visual puzzles.
It's built with JavaScript and Rust and has no dependencies. You can either run it on any JavaScript runtime (Bun, Node.js, Deno), or use the standalone mode with Docker.
Cap is built into 2 main parts. The widget is a small client-side JavaScript library using custom components and WASM that renders the CAPTCHA and solves the challenge.
The Standalone Server is a Docker image that helps you use Cap with any language or framework. As an alternative, if your server-side uses JavaScript, you can use the lighter server library.
Cap also has a M2M library that implements a custom proof-of-work solver for protecting API endpoints that you still want public.
It's ideal for protecting APIs from bots, preventing spam on forms, blocking automated signup attempts and securing free-tier abuse.
Cap is a great alternative to reCAPTCHA, hCaptcha and Cloudflare Turnstile. Check out the feature comparison to see how Cap compares to other CAPTCHAs.
Apache 2.0
Copyright (c) 2025–present tiago