
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
arcaptcha-vue
Advanced tools
ARCaptcha Component Library for Vue.js which is Compatible with Vue 2. (Vue3 support is under development)
If you use Vue version 3 please go to this link.
You can install this library via npm with:
npm install arcaptcha-vue --saveor via yarn:
yarn add arcaptcha-vueor via script tag (Vue must be globally available)
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/arcaptcha-vue"></script>
Basic:
<template>
<arcaptcha-vue site_key="YOUR_SITE_KEY"></arcaptcha-vue>
</template>
<script>
import ArcaptchaVue from 'arcaptcha-vue';
export default {
components: { ArcaptchaVue }
};
</script>
Invisible:
<template>
<div>
<arcaptcha-vue site_key="YOUR_SITE_KEY" :callback="onSuccess" :invisible="true" ref="widget"></arcaptcha-vue>
<button @click="execute">load invisible captcha</button>
<button @click="reset">reset captcha</button>
</div>
</template>
<script>
import ArcaptchaVue from "arcaptcha-vue";
export default {
components: { ArcaptchaVue },
methods: {
onSuccess(token) {
console.log("Captcha Solved! token:", token);
},
reset() {
this.$refs.widget.reset();
},
execute() {
this.$refs.widget.execute();
},
},
};
</script>
Invisible with promise:
<template>
<div>
<arcaptcha-vue site_key="YOUR_SITE_KEY" :invisible="true" ref="widget"></arcaptcha-vue>
<button @click="execute">load invisible captcha with promise</button>
<button @click="reset">reset captcha</button>
</div>
</template>
<script>
import ArcaptchaVue from "arcaptcha-vue";
export default {
components: { ArcaptchaVue },
methods: {
reset() {
this.$refs.widget.reset();
},
execute() {
this.$refs.widget.execute().then((token)=>{
console.log("Captcha Solved! token:", token);
})
},
},
};
</script>
| Name | Values/Type | Required | Default | Description |
|---|---|---|---|---|
| site_key | String | Yes | - | Your sitekey. Please visit ARCaptcha and sign up to get a sitekey. |
| invisible | Boolean | No | false | This specifies the visibility of the checkbox. To activate arcaptcha in invisible mode set this option to true |
| color | String | No | normal | Color of every colored element in widget and challenge. |
| theme | String | No | light | Theme of widget and challenge.(Available options: light/dark) |
| lang | String | No | fa | Language is used in widget and challenge contents.(Available options : en/fa) |
| callback | Function | NO | null | This function would be called after solving captcha |
| rendered_callback | Function | NO | null | This function would be called after rendering captcha |
| error_callback | Function | NO | null | This function would be called after error |
| reset_callback | Function | NO | null | This function would be called after reseting captcha |
| expired_callback | Function | NO | null | This function would be called after expiring |
| chlexpired_callback | Function | NO | null | This function would be called after challange expiration |
| closed_callback | Function | NO | null | This function would be called after a challenge is closed by user,programmatically or expiration |
| Method | Description |
|---|---|
execute() | Programmatically trigger a challenge request |
reset() | Reset the current challenge |
disableErrorPrint() | Disable errors printed below the captcha box(You should handle errors yourself by setting error_callback) |
Sign up at ARCaptcha to get your sitekey. Check documentation for more information.
To run the demo:
git clone https://github.com/arcaptcha/arcaptcha-vue.gitcd example/yarn && yarn serve
FAQs
ARCaptcha vue component
We found that arcaptcha-vue demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.