The browser part of mCaptcha is divided into three components.
- Glue code
- Widget program
This is the code that links mCaptcha with your website’s frontend code.
It creates an
iframe containing the mCaptcha widget and injects the
received verification proof token into a hidden input field.
Support is available for various frameworks, see
mCaptcha/glue for the full list.
For frameworks without official support, a low-level library,
can be used to implement support.
This part is served by the mCaptcha backend. It fetches PoW config from
the backend, generates proof and submits it for verification. If
verification is successful, it sends a message containing the
verification proof token to the parent window, assuming it’s loaded as
- Source code:
WebAssembly library which generates Proofs of Work for mCaptcha systems.
For browsers without support WebAssembly, a