Cap

Open source

Cap is a free, open-source, self-hosted CAPTCHA alternative that uses proof-of-work and instrumentation challenges instead of visual puzzles.

trycap.dev
Cap homepage screenshot
GitHub stars
8.5k
Last 30 days
+396(+5%)
Last commit
yesterday
Repository age
22 months
Version
capd@4.0.16
Licence
Custom
Self-hosted
Yes

About Cap

Cap is a self-hosted CAPTCHA system that replaces services like reCAPTCHA. It uses two independent layers: proof-of-work (SHA-256 via WASM or GPU-resistant time-lock challenges) and instrumentation challenges (server-generated JavaScript that verifies a real browser environment via DOM operations).

The widget is about 20 kB with no third-party scripts or telemetry. It is designed to be privacy-first, with no tracking and no data leaving the user's servers. It is licensed under Apache 2.0 and can be customized via CSS variables.

Key features

  • Proof-of-work challenges (SHA-256 via WASM or GPU-resistant time-lock challenges)
  • Instrumentation challenges that verify real browser environment via DOM operations
  • No telemetry or third-party network
  • Widget size of about 20 kB with zero dependencies
  • Fully customizable via CSS variables
  • Can block automated browsers used by AI agents

Good fit for

  • Adding abuse protection to websites without visual puzzles
  • Replacing reCAPTCHA or hCaptcha in a privacy-first manner
Tags
captcha
self-hosted
privacy
open-source
proof-of-work
instrumentation

Cap: questions and answers

What is Cap used for?
Cap is a free, open-source, self-hosted CAPTCHA alternative that uses proof-of-work and instrumentation challenges instead of visual puzzles. It is a good fit for adding abuse protection to websites without visual puzzles and replacing reCAPTCHA or hCaptcha in a privacy-first manner.
Is Cap open source?
Yes. Cap is open source under a custom licence. Its source code is on GitHub at tiagozip/cap and is written mainly in JavaScript.
Is Cap free?
Yes. Cap is open source, so the software itself is free to use under the terms of its own licence.
Can I self-host Cap?
Yes. Cap can be self-hosted on your own server or infrastructure.
Is Cap actively maintained?
Yes. The most recent commit to Cap was on 22 November 2026. The project has 8.5k stars on GitHub, with 396 added in the last 30 days.