loader
Docs Sentinel Embedding the Sentinel Widget
Sentinel

Embedding the Sentinel Widget

Load the script once and drop a captcha element into any form you want to protect.

Embedding the Sentinel Widget

The Sentinel widget is a self-contained, vanilla-JS captcha — no build step required. Load the script once, then place a .sentinel-captcha element with your site key inside any form. The widget auto-mounts, runs the challenge, and injects a hidden sentinel-token input on success.

Embed

<!-- Load once, anywhere on the page -->
<script src="https://redeyed.com/sentinel.js" async></script>

<!-- Place inside the form you want to protect -->
<form method="POST" action="/signup">
  <!-- ...your fields... -->
  <div class="sentinel-captcha" data-sitekey="site_xxxxxxxxxxxx"></div>
  <button type="submit">Create account</button>
</form>

After a solve

On success the widget appends <input type="hidden" name="sentinel-token"> to the enclosing form and fires a sentinel:solved event. Submit that token to your backend and confirm it with POST /sentinel/siteverify (your Secret Key + the token).

You can also drive the widget programmatically with window.Sentinel.render() and window.Sentinel.reset().

All docs Updated Jul 16, 2026