Skip to content

Vue Client RecaptchaSimple captcha for Vue.js

Build client-side captcha without server. Lightweight, customizable, accessible.

Vue Client Recaptcha

Quick Install ​

bash
npm install vue-client-recaptcha --save
bash
pnpm add vue-client-recaptcha
bash
yarn add vue-client-recaptcha

Quick Example ​

vue
<script setup>
import { ref } from 'vue'
import { VueClientRecaptcha } from 'vue-client-recaptcha'
import 'vue-client-recaptcha/dist/vue-client-recaptcha.css'

const inputValue = ref('')
const isValid = ref(false)
</script>

<template>
  <input v-model="inputValue" placeholder="Enter captcha" />
  <VueClientRecaptcha
    v-model="inputValue"
    v-model:valid="isValid"
  />
  <p>{{ isValid ? '✓ Valid' : 'Enter captcha' }}</p>
</template>

Security Note ​

This is a client-side captcha. It provides light protection against casual bots but is not a substitute for server-side validation. Do not rely on it for high-security use cases.