Back to directory

Security & Privacy · Application Security

Cap

Privacy-first CAPTCHA with invisible proof-of-work challenges

Cap is an Apache-2.0, self-hosted CAPTCHA alternative for teams replacing reCAPTCHA or hCaptcha. Released in 2025 and maintained by tiagozip with community contributions, it combines proof-of-work with browser instrumentation. Cap has 8,124 GitHub stars and a September 2026 Standalone release, while its documented deployment model runs on a $5 VPS for most sites.

Key facts

License
Apache-2.0
Main language
JavaScript, Rust, HTML, CSS
Maintainer
tiagozip and the open-source community
First released
2025
Latest release
standalone@3.1.13, September 23, 2026
GitHub stars
8,124, October 2026
Hosted option
None

What Cap is

Cap is an open-source CAPTCHA alternative for teams that want bot checks without routing visitor activity through a hosted provider. Tiagozip started the project, and tiagozip with the open-source community maintains it. The repository began in January 2025, establishing 2025 as its first public year. GitHub lists 8,124 stars and 627 forks, with tiagozip recorded as the leading contributor at 672 contributions. The README names bunny.net and AdGuard as production users, while the project site also displays Fraunhofer. Cap offers a self-hosted deployment model rather than a separately operated cloud service. That distinction makes infrastructure ownership part of the product: operators control the endpoint, logs, and verification path, while accepting responsibility for availability, updates, and administration.

How it works

Cap combines proof-of-work with browser instrumentation. A visitor's browser completes SHA-256 work and GPU-resistant time-lock challenges, then runs a freshly generated JavaScript program that checks browser behavior through DOM operations and related signals. In a typical deployment, an administrator starts Cap Standalone, opens its dashboard, creates a site key, and embeds the widget on a form or login page. The application receives a token after completion and sends that token with its secret to Cap's siteverify endpoint. Instrumentation challenges are enabled for new keys by default, and headless-browser detection can add another check. The widget avoids visual puzzles according to the project site, although proof-of-work still makes the browser perform computation before the request proceeds.

Architecture and recent releases

The repository includes JavaScript, Rust, HTML, and CSS, while Cap Standalone runs on Bun. Docker is the recommended deployment method, and the standalone service uses Redis or Valkey for state. Its dashboard supports multiple site keys, and its verification API follows a reCAPTCHA-compatible pattern. The core package provides a stateless route through Bun or npm, signed JWT challenge tokens, optional Redis-backed replay prevention, and AES-256-GCM encrypted instrumentation metadata. Recent release entries include standalone@3.1.13, which added health checks and graceful shutdown, and standalone@3.1.12, which made hashwx the default for new keys. The architecture therefore separates the browser widget, challenge service, storage layer, and application-side verification.

License and pricing

Apache-2.0 permits commercial use, modification, redistribution, and self-hosting, subject to its license conditions. Cap's project site describes the software as free at scale, with no per-request fees, quotas, or third-party egress charges. There is no separately priced hosted Cap service or enterprise tier described for operators who want the maintainers to run it. Instead, infrastructure is the main operating cost. The site says Cap Standalone fits on a $5 VPS for most sites, while the repository documents Docker, Workers, and Railway deployment paths. The project site also places the widget at about 20 kB and says it makes no third-party requests. Operators should distinguish those software costs from hosting, storage, bandwidth, and operational work.

Limitations and how it compares

Self-hosting removes vendor routing and visual puzzles, but it leaves operators responsible for the public backend, dashboard security, Redis or Valkey state, rate limits, logs, and upgrades. Proof-of-work consumes visitor resources, and the project does not publish an independent bot-blocking benchmark. Google reCAPTCHA and Cloudflare Turnstile outsource service operation through proprietary cloud endpoints, while Cap exposes source and infrastructure control. Friendly Captcha is another open-source alternative with a managed service and paid plans, whereas Cap has no separate hosted offering described here. Pick Cap when Apache licensing, local control, and a small widget matter more than delegated operations, usage analytics, or a vendor-managed availability target.

Main features

  • Proof Of Work. Browsers complete SHA-256 proof-of-work and GPU-resistant time-lock challenges without showing users visual puzzles or requiring manual interaction during verification.
  • Browser Instrumentation. Fresh JavaScript programs inspect DOM and browser behavior to distinguish ordinary browsers from automated clients.
  • Standalone Dashboard. The Bun-based standalone server includes a web dashboard for managing multiple site keys and challenge settings.
  • Compatible Verification. Cap provides a siteverify API compatible with server-side verification flows for both reCAPTCHA and hCaptcha, supporting established integration patterns across applications and services.
  • Lightweight Widget. The widget ships about 20 kB of JavaScript with no third-party scripts, according to the project site.
  • Stateless Core. The core package signs JWT challenge tokens and supports optional replay prevention through a caller-offered storage callback.
  • Custom Styling. CSS variables control widget colors, dimensions, position, and icons directly, eliminating the need for iframe embedding while preserving flexible visual customization options.

Self-hosting Cap

Cap Standalone is intended for Docker, with documentation recommending Docker Compose, the tiago2/cap image, and Valkey for Redis-compatible state. Configure ADMIN_KEY and REDIS_URL, start the stack, create site keys in the dashboard, and publish port 3000 through a domain or reverse proxy. The project says idle memory is around 50 MB and that a $5 VPS fits most sites. Documentation describes health probes, graceful shutdown, persistent Valkey data, and rate-limit settings behind a reverse proxy. It does not publish a formal backup or upgrade procedure, so operators must define those routines for their deployment.

Strengths

  • Apache-2.0 licensing permits commercial self-hosting and source modification.
  • Two independent challenge layers avoid relying on visual puzzles alone.
  • The widget is about 20 kB and uses no third-party scripts.
  • A compatible siteverify API can ease migration from reCAPTCHA or hCaptcha.

Drawbacks

  • Operators must run and secure the public backend and administration dashboard.
  • Proof-of-work consumes browser resources during challenge completion.
  • The project does not publish an independent benchmark for bot-blocking effectiveness.

What teams replace with it

Teams usually evaluate Cap when they want to move off Google reCAPTCHA, hCaptcha, Cloudflare Turnstile.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Cap

Frequently asked questions

Is Cap free to use?

Yes. Cap is published under Apache-2.0 and the project describes it as free at scale, with no per-request fees, quotas, or third-party egress charges. Operators still pay for infrastructure running Cap Standalone, such as a server or VPS. The project site says a $5 VPS fits most sites, although capacity depends on traffic, challenge settings, and surrounding services.

Can businesses use Cap commercially?

Yes. Apache-2.0 permits commercial use, modification, redistribution, and private operation, subject to its conditions. Cap is designed for self-hosted deployment, and the README names bunny.net and AdGuard as production users. The project does not describe a separate open-core division or paid enterprise license, so organizations can run the published software directly and modify it within the license terms.

How do I self-host Cap, and what does it require?

The recommended route is Docker Compose with the Cap Standalone image and Valkey, a Redis-compatible service. Configure ADMIN_KEY and REDIS_URL, publish port 3000, create site keys in the dashboard, and point the widget at the public endpoint. The documented setup uses around 50 MB of idle memory, and the site says a $5 VPS fits most sites.

How does Cap compare with Friendly Captcha?

Cap and Friendly Captcha both use proof-of-work and avoid conventional visual puzzles. Cap is Apache-2.0 software intended for self-hosting and has no separately priced hosted service described here. Friendly Captcha offers a hosted service with paid plans and also publishes open-source components. Cap suits operators prioritizing infrastructure control, while Friendly Captcha suits teams preferring managed delivery.

Does Cap send visitor data to a third party?

The project describes Cap as having zero telemetry, no cookies, and no third-party network requests. In a self-hosted deployment, the widget communicates with the operator's Cap instance, and verification occurs on that infrastructure. Privacy outcomes still depend on reverse-proxy configuration, logs, access controls, hosting arrangements, and the application's own data handling.

Similar projects to compare

Sources

Last updated 2026-10-22.