Files
cap/docs/index.md
T

78 lines
2.7 KiB
Markdown
Raw Normal View History

2025-01-11 17:35:53 +00:00
---
# https://vitepress.dev/reference/default-theme-home-page
layout: home
hero:
name: "Cap"
text: "A modern, lightning-quick PoW captcha"
2025-04-13 09:58:38 +01:00
tagline: "Cap is a lightweight, modern open-source CAPTCHA alternative using SHA-256 proof-of-work"
2025-01-14 19:27:28 +00:00
image:
2025-01-14 19:32:07 +00:00
src: /logo.png
2025-01-14 19:27:28 +00:00
alt: VitePress
2025-01-11 17:35:53 +00:00
actions:
- theme: brand
2025-01-14 19:44:51 +00:00
text: Quickstart & docs
2025-01-11 17:35:53 +00:00
link: /guide
2025-01-11 18:31:39 +00:00
- theme: alt
text: Demo
link: https://cap-starter.glitch.me/
2025-01-14 19:32:07 +00:00
- theme: alt
text: GitHub
link: https://github.com/tiagorangel1/cap
2025-01-11 17:35:53 +00:00
features:
- icon: ⚡️
title: 250x smaller than hCaptcha
2025-04-11 19:36:05 +01:00
details: Cap's widget library is extremely small, only 12kb minified and brotli'd.
2025-01-11 17:35:53 +00:00
- icon: 🔒️
2025-04-11 19:36:05 +01:00
title: Private
details: Cap's usage of proof-of-work eliminates the need for any tracking, fingerprinting or data collection.
2025-01-15 16:46:07 +00:00
- icon: 🌈
title: Fully customizable
details: Cap is self-hostable so you can customize both the backend & frontend — or you can just use CSS variables
- icon: 🤖
title: PoW-based
2025-04-11 19:36:05 +01:00
details: Cap uses proof-of-work instead of complex puzzles, making it easier for humans and harder for bots
- icon: 🧩
title: Standalone mode
details: Cap offers a standalone mode with Docker, allowing you to use it with languages other than JS.
2025-01-15 16:46:07 +00:00
- icon: 💨
2025-04-11 19:36:05 +01:00
title: Invisible mode
details: Cap can run invisibly in the background using a simple JS API.
2025-01-11 17:35:53 +00:00
- icon: ☁️
title: Floating mode
2025-04-11 19:36:05 +01:00
details: Floating mode keeps your CAPTCHA hidden until it's needed
2025-01-15 16:46:07 +00:00
- icon: 🌳
2025-04-11 19:36:05 +01:00
title: Fully FOSS
2025-04-14 19:34:31 +01:00
details: Completely open source under the Apache license 2.0 license
---
2025-04-20 12:54:01 +01:00
## What is Cap?
Cap is a lightweight, open-source CAPTCHA alternative that uses SHA-256-based proof-of-work to verify real users and block bots — no cookies, no trackers.
- ✅ Privacy-friendly
- ⚡ Fast and lightweight
- 🔓 Fully open source (Apache 2.0)
- 🧩 Pluggable widget + solver + backend
It's ideal for:
- Protecting APIs from bots
- Preventing spam on forms
- Blocking automated login attempts
- Securing free-tier abuse
Cap is built with JavaScript, runs on any JS runtime (Bun, Node.js, Deno), and has no dependencies. If you're not using any JS runtime, you can also use the standalone mode with Docker, which relies entirely on a simple REST API to create and validate challenges.
Zero dependencies, developer-friendly, and effective against spam, DDoS, and automation.
## Alternatives
Cap.js is a modern alternative to:
- [reCAPTCHA](https://www.google.com/recaptcha/about/)
- [hCaptcha](https://www.hcaptcha.com/)
- [Cloudflare Turnstile](https://developers.cloudflare.com/turnstile/)
But unlike them, Cap is **computation-bound, not tracking-bound**.