Menu
Libraries |
Category

svelte-turnstile

  • A Svelte library for integrating Cloudflare's Turnstile (CAPTCHA alternative) into Svelte projects (compatible with Svelte 3, 4, and 5)
  • Primary purpose: Provides an easy-to-use component for adding Turnstile verification to forms and user interactions
  • Key features:
    • Configurable widget with multiple themes, sizes, and languages
    • Server-side validation support
    • Event handling for various verification states
    • Form integration capabilities
  • Target audience: Svelte developers needing CAPTCHA-like verification with Cloudflare Turnstile
  • Notable framework support: Designed specifically for Svelte (not framework-agnostic)
  • Includes comprehensive props for customization:
    • Visual options (theme, size, appearance)
    • Behavior controls (retry logic, execution timing)
    • Form integration settings
  • Provides multiple event handlers for verification lifecycle
  • Includes server-side validation examples for different scenarios:
    • Basic token validation
    • SvelteKit form actions
    • Superforms integration
  • Supports manual widget reset functionality
  • Documentation links to Cloudflare's official Turnstile documentation fa-solid fa-up-right-from-square

hacktoberfestsvelte

Comments