Swetrix CAPTCHA is a privacy-oriented, simple and opensource CAPTCHA service.
See the full documentation at https://docs.swetrix.com/captcha/introduction
- Privacy-focused: No tracking, no cookies
- Accessible: Full keyboard navigation, ARIA support, screen reader announcements, respects
prefers-reduced-motion - Progress indicator: Visual progress bar during verification
- Auto theme detection: Automatically matches browser's light/dark mode preference
- Lightweight: Minimal footprint, fast loading
<div class="swecaptcha"
data-project-id="YOUR_PROJECT_ID"
data-theme="auto">
</div>
<script src="https://cdn.swetrixcaptcha.com/captcha-loader.js" defer></script>| Attribute | Description | Values | Default |
|---|---|---|---|
data-project-id |
Your project ID | Valid project ID | Required |
data-theme |
Color theme | auto, light, dark |
auto |
data-response-input-name |
Hidden input name | Any string | swetrix-captcha-response |
auto: Automatically detects user's browser theme preference usingprefers-color-schemelight: Forces light themedark: Forces dark theme
To build the captcha run:
npm run buildAfter you build it, a new folder dist will appear. You can run test.html file via an extension like Live server to test it (don't forget to set up a valid project ID or one of our dummy project IDs).
Swetrix CAPTCHA client is released under the MIT licence, see LICENSE.
Swetrix is open to pull-requests. Feel free to propose new features or submit bug requests via pull reuqests.
For severe security issues, please contact us at security@swetrix.com
You can contact us via email at contact@swetrix.com
