<ribaunt-widget> is a standard Web Component that works in any modern browser without a framework. You load a single ES module script, drop the element into your markup, and wire up a couple of event listeners — no build step required.
The widget relies on the Web Crypto API, which is only available in a secure context. Use
https:// in production and http://localhost during local development. Plain local-network URLs such as http://192.168.x.x will not work.Complete example
The snippet below brings all four steps together into a single self-contained HTML page.Styling the widget
The widget’s internals are encapsulated inside a Shadow DOM, so standard descendant selectors cannot reach them. You can, however, override CSS custom properties scoped to the host element.Attribute reference
The most commonly used attributes are listed below. For the complete list of attributes, accepted values, and defaults, see Widget configuration.| Attribute | Description |
|---|---|
challenge-endpoint | URL the widget fetches challenges from. |
verify-endpoint | URL the widget posts solutions to. |
auto-verify | When present, the widget starts solving immediately after load without requiring a click. |
show-warning | When present, displays a warning banner above the widget. |
warning-message | Custom text for the warning banner shown when show-warning is set. |
solve-timeout | Maximum milliseconds allowed for solving before an error event fires. Omit to disable the timeout. |
disabled | Blocks all user interaction and programmatic startVerification() calls. |
A
disabled widget will not start verification from auto-verify either. Remove the disabled attribute before expecting the widget to run.