LuggaPugga/better-captcha
LuggaPugga/better-captcha has 81 GitHub stars and 4 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-25 02:37 UTC. Last push 2026-11-25.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Framework-agnostic wrappers for a bunch of captcha providers
웹 및 앱README.md
Originalbetter-captcha
Framework-agnostic wrappers for CAPTCHA providers that share the same lifecycle, render flow, and control handle so you can swap vendors without touching your UI.
[!WARNING] This library is in early development and is not production ready yet. Expect breaking API changes while the provider surface stabilises.
Installation
Install the package for your framework:
| Framework | bun | npm |
|---|---|---|
| React | bun install @better-captcha/react |
npm install @better-captcha/react |
| Preact | bun install @better-captcha/preact |
npm install @better-captcha/preact |
| Qwik | bun install @better-captcha/qwik |
npm install @better-captcha/qwik |
| SolidJS | bun install @better-captcha/solidjs |
npm install @better-captcha/solidjs |
| Vue | bun install @better-captcha/vue |
npm install @better-captcha/vue |
| Svelte | bun install @better-captcha/svelte |
npm install @better-captcha/svelte |
| Lit | bun install @better-captcha/lit |
npm install @better-captcha/lit |
Basic usage
import { ReCaptcha } from "@better-captcha/react/provider/recaptcha";
export function ContactCaptcha() {
return <ReCaptcha sitekey="your-site-key" />;
}
import { component$ } from "@builder.io/qwik";
import { ReCaptcha } from "@better-captcha/qwik/provider/recaptcha";
export const ContactCaptcha = component$(() => {
return <ReCaptcha sitekey="your-site-key" />;
});
<template>
<ReCaptcha sitekey="your-site-key" />
</template>
<script setup lang="ts">
import { ReCaptcha } from "@better-captcha/vue/provider/recaptcha";
</script>
<script lang="ts">
import ReCaptcha from "@better-captcha/svelte/provider/recaptcha";
</script>
<ReCaptcha sitekey="your-site-key" />
Keep the component inside a client-only boundary, access the ref to call execute, and forward the response token to your backend alongside the form submission.
Key ideas
- Unified hook-driven lifecycle that loads provider scripts on demand.
- Shared handle API (
execute,reset,destroy,getResponse) across providers. - Provider-specific bundles such as reCAPTCHA, hCaptcha, Turnstile, and Friendly Captcha.
관련 프로젝트 살펴보기
불러오는 중…