https://github.com/tiagorangel1/cap
A modern, lightning-quick PoW captcha
https://github.com/tiagorangel1/cap
bun captcha javascript proof-of-work
Last synced: 6 months ago
JSON representation
A modern, lightning-quick PoW captcha
- Host: GitHub
- URL: https://github.com/tiagorangel1/cap
- Owner: tiagorangel1
- License: other
- Created: 2025-01-11T17:35:52.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-09T17:01:44.000Z (6 months ago)
- Last Synced: 2025-04-09T18:21:46.721Z (6 months ago)
- Topics: bun, captcha, javascript, proof-of-work
- Language: JavaScript
- Homepage: https://cap.tiagorangel.com/
- Size: 1.52 MB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- StarryDivineSky - tiagorangel1/cap - 256工作量证明机制实现,无需依赖第三方库。项目核心原理是用户生成随机字符串并计算其SHA-256哈希值,通过调整随机数直到哈希结果满足预设条件(如前导零数量),验证过程通过检查哈希值是否符合要求完成。其优势在于可自定义难度、资源消耗低且支持高并发场景,适用于Web应用和API接口的反爬虫保护。项目提供简单易用的API接口,开发者可通过调整参数控制验证强度,同时支持多种编程语言集成,无需额外配置即可快速部署。由于采用纯算法实现,避免了传统CAPTCHA的图像识别复杂度和用户交互负担,同时保持了安全性与效率的平衡,适合需要轻量化验证机制的现代Web开发需求。 (前端开发框架及项目 / 多工具库支持或纯JS)
- awesome-starred - tiagorangel1/cap - Cap is a lightweight, modern open-source CAPTCHA alternative using SHA-256 proof-of-work (JavaScript)
README
# cap — modern, lightning-quick PoW captcha
Cap is a lightweight, modern open-source CAPTCHA alternative designed using SHA-256 PoW.
| [Learn more](https://capjs.js.org)
|----------|[](https://www.npmjs.com/package/@cap.js/server) [](https://www.npmjs.com/package/@cap.js/widget) [](https://www.bestpractices.dev/projects/9920)
## Why Cap?
- ⚡️ **250x smaller than hCaptcha**
Cap's widget library is extremely small, only 12kb minified and brotli'd.
- 🔒️ **Private**
Cap's usage of proof-of-work eliminates the need for any tracking, fingerprinting or data collection.
- 🌈 **Fully customizable**
Cap is self-hostable so you can customize both the backend & frontend — or you can just use CSS variables
- 🤖 **PoW-based**
Cap uses proof-of-work instead of complex puzzles, making it easier for humans and harder for bots
- 🧩 **Standalone mode**
Cap offers a standalone mode with Docker, allowing you to use it with languages other than JS.
- 💨 **Invisible mode**
Cap can run invisibly in the background using a simple JS API.
- ☁️ **Floating mode**
Floating mode keeps your CAPTCHA hidden until it's needed
- 🌳 **Fully FOSS**
Completely open source under AGPL-3.0, with no premium versions.## Star History
[](https://www.star-history.com/#tiagorangel1/cap&Date)