Overview of Cap features and architecture
mainCap is an open-source, self-hosted CAPTCHA alternative designed to replace visual puzzles with proof-of-work and instrumentation challenges. It consists of four main components:
- Widget: A ~20 KB client-side component that renders a single checkbox.
- Standalone Server: A single Docker container that includes a dashboard and supports multi-site-key configurations.
- Server Libraries: Packages like
@cap.js/server(and community ports) used to verify challenges within your backend. - siteverify API: A verification API that is compatible with reCAPTCHA and hCaptcha, allowing for migration via a simple URL swap.