Skip to content

Community libraries

Want to use Cap without the standalone server and with a different language? Here are some community-maintained libraries that might help. If you want to add a library, feel free to open a pull request!

Note: These libraries frequently do not support new features such as seeded challenges or instrumentation challenges.

Widgets

These are wrappers around Cap's widget. They're usually not required as the default widget should work everywhere but can result in a better development experience.

React

Angular

Vue

Other

  • better-captcha: A framework-agnostic widget that supports 6 different frameworks including React, SolidJS, Vue, Svelte and more

Hooks

These are React hook implementations of the Cap API, allowing full customization of the user experience.

Server

Warning: These libraries are community-maintained and not officially supported or actively monitored for security by Cap. We can't guarantee their quality, security, or compatibility. They also might not support newer features such as storage hooks or seeded challenges.

Cloudflare Workers (Serverless/JavaScript)

  • kaerez/CFCap: Serverless CAP CAPTCHA implementation on Cloudflare Workers with R2 Buckets (cheaper than Durable Objects), featuring customizable TTLs, optional use of hosted JS & WASM, global edge deployment and auto-scaling

Cloudflare Workers (Serverless/JavaScript/TypeScript)

  • xyTom/cap-worker: Serverless CAP CAPTCHA implementation on Cloudflare Workers with Durable Objects, featuring global edge deployment and auto-scaling

Java

Go

Python

  • capjs-server: Stateless Python server library for Cap token verification (no database required)
  • django-cap: Python implementation for Cap's server with Django

.NET

PHP

  • clysss/capito: Capito Cap PHP Server
  • trilbymedia/cap-php: PHP port of the Cap proof-of-work captcha server
  • oliweb-proof-of-work-for-cap: WordPress plugin integrating Cap into comments, login, registration and WooCommerce checkout — supports both visible widget and invisible (programmatic) mode
  • laravel-cap: Laravel integration for Cap — Blade directives, middleware, validation rules and facade for server-side token verification (composer require oliweb/laravel-cap)
  • statamic-cap: Statamic addon integrating Cap into forms — widget rendering, automatic token validation and flexible CP configuration (composer require oliweb/statamic-cap)

Client

Warning: These libraries are community-maintained and not officially supported or actively monitored for security by Cap. We can't guarantee their quality, security, or compatibility.

JavaScript

  • cap-client: Client library and express middleware for making verification requests, intended for NodeJS