Cap: Lightweight, modern open-source CAPTCHA alternative using proof-of-work
Published on: 2025-06-12 19:36:10
What is Cap?
Cap is a lightweight, modern open-source CAPTCHA alternative using SHA-256 proof-of-work. It's fast, private, and extremely simple to integrate. Learn more about proof-of-work here.
Cap is built into 2 main parts:
@cap.js/widget : A small JavaScript library that renders the CAPTCHA and handles solving it using Web Workers and WASM.
@cap.js/server: An extremely simple, zero-dependencies library that handles creating and validating challenges.
There are also some other helpful packages:
@cap.js/solver : Server-side solver for the CAPTCHA in case you want to use machine-to-machine.
@cap.js/cli : Command-line interface for solving CAPTCHAs made with Cap. It's mainly designed for testing and when you need to solve these CAPTCHAs in a browser without JavaScript support.
Standalone mode : Docker image that helps you use Cap with any language or framework. It runs a simple REST API that can be used to create and validate challenges and an interactive UI to manage your ke
... Read full article.