Cap

Lightweight open-source CAPTCHA solution using SHA-256 proof-of-work.

  • Security
Lightweight open-source CAPTCHA solution using SHA-256 proof-of-work. 250x smaller than hCaptcha, fully customizable, and privacy-focused with zero telemetry.

Platform availability

Available on 1 of 10 platforms

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

76/100 Good

Maintained
100last commit 5 days ago
Popular
798,574 GitHub stars
Easy to install
251 install platform, install notes
Light to run
No data
Security check
76no serious findings, 4 minor, CI, tests

Based on 4 of 5 factors.

Availability: platform listings confirmed today

GitHub stars
8,574
Open issues
5
Last commit
2026-11-27
Latest release
[email protected]
Activity
rising

Checked 5 days ago - source: GitHub (tiagozip/cap)

Resources & Compatibility

Requirements not published yet.

Checked 5 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Set your CAP_SECRET before you start Pick a secret of 32+ random bytes (hex or base64) and put it in your environment as CAP_SECRET. It signs the challenge tokens and must never be shared with the browser — if it leaks, anyone can forge valid challenges. source
  • You must add the challenge and redeem routes Create a POST /cap/challenge route that calls generateChallenge and a POST /cap/redeem route that calls validateChallenge. Without these two endpoints, the CAPTCHA can't issue or verify puzzles, so signups will fail. source
  • Pin the widget version if using the CDN If you load cap-widget from a CDN instead of npm, lock it to a specific version — otherwise future updates can break your site. Also note cdn.jsdelivr.net is blocked in some regions (like parts of China), so npm is the safer choice if visitors come from there. source

Fetched yesterday - each note links to its source

Alternatives

No alternatives collected yet.

Common questions

Where are Cap's keys, settings, and analytics stored?

Keys and settings are stored in Valkey, while analytics can go to either DuckDB (lightweight, best for small sites) or ClickHouse (more scalable), both built-in options in the compose setup.

Can Cap run somewhere other than a Docker server?

Yes. Besides running capd on your own server with Docker, you can deploy it on Railway or on a serverless platform like Cloudflare Workers.

Does Cap only use proof-of-work to detect bots?

No. It runs two independent layers: proof-of-work (SHA-256 via WASM or GPU-resistant time-lock challenges) plus instrumentation challenges, which are server-generated JS that verifies a real browser environment through DOM operations.

What are the two components I need to integrate?

Cap consists of a widget that runs and solves challenges in the visitor's browser and returns a token, and the server (capd) that issues challenges and verifies those tokens. Since the widget talks to the server directly from visitors' browsers, the server needs to be publicly reachable in production.

Is there a way to stop AI agents from consuming my resources?

Yes, the challenges (proof-of-work and instrumentation) can be configured to stop autonomous AI agents from using up your resources.

Answers sourced from github.com, trycap.dev, trycap.dev

Community

Collected 5 days ago - public community threads