Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets up, repairs, or migrates Cloudflare Turnstile bot verification in existing frontends and backends, including server-side Siteverify.
48% 100%+52 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 11 of 23 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
For SvelteKit projects. The widget renders in the page; siteverify is called from a SvelteKit form action (or a +server.ts endpoint) server-side.
<script>
import { enhance } from "$app/forms";
import { onMount } from "svelte";
let turnstileContainer;
let signupWidgetId;
onMount(() => {
const render = () => {
signupWidgetId = window.turnstile.render(turnstileContainer, {
sitekey: "YOUR_SITEKEY",
action: "signup",
});
delete window.onSignupTurnstileLoad;
};
if (window.turnstile) {
render();
return;
}
window.onSignupTurnstileLoad = render;
const script = document.createElement("script");
script.src =
"https://challenges.cloudflare.com/turnstile/v0/api.js?onload=onSignupTurnstileLoad&render=explicit";
script.async = true;
document.head.appendChild(script);
return () => {
delete window.onSignupTurnstileLoad;
};
});
</script>
<form
Next to this one in the catalogue, plus more from the same author.