npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-hcaptcha-component

v1.0.1

Published

A completely rewritten version of the hCaptcha component in Vue 3 using TypeScript and the Composition API. Works as a drop-in replacement for [hCaptcha's version](https://github.com/hCaptcha/vue-hcaptcha).

Readme

Vue hCaptcha Component

A completely rewritten version of the hCaptcha component in Vue 3 using TypeScript and the Composition API. Works as a drop-in replacement for hCaptcha's version.

  • Get the token using v-model automatically on verified
  • Get the responseId using v-model:response-id
  • Fully typed
  • Written in Composition API and compiled
  • No Options API dependency making it safe to treeshake
  • Compatible with Vue 3+
  • More new features coming soon

See demo at https://evo-mark.github.io/vue-hcaptcha-component/

Install

pnpm add vue-hcaptcha-component

Usage

<template>
	<VueHCaptcha v-model="token" sitekey="10000000-ffff-ffff-ffff-000000000001" />
</template>

<script setup>
	import { VueHCaptcha } from "vue-hcaptcha-component";
	import { ref } from "vue";

	const token = ref("");
</script>

Or if you need to control it manually in invisible mode (Enterprise Only):

<template>
	<VueHCaptcha ref="captcha" sitekey="10000000-ffff-ffff-ffff-000000000001" />
</template>

<script setup>
	import { VueHCaptcha } from "vue-hcaptcha-component";
	import { useTemplateRef } from "vue";

	const captchaRef = useTemplateRef("captcha");

	const onSubmit = async () => {
		const { response, key } = await captchaRef.value.executeAsync();

		const result = await axios.post("https://evomark.co.uk/fake-url", {
			token: key,
		});
	};
</script>

Exposed Functions (Access via template ref)

| Name | Description | | ------------ | --------------------------------------------------------------- | | execute | Execute the challenge and return the response | | executeAsync | Asynchronously execute challenge, returns promise with response | | reset | Reset the state of the captcha |

FAQs

  • Does this work with Vue 2?

No. Vue 2 is end-of-life now and this component is built using modern standards. Please use hCaptcha's version if you need this functionality.

  • Why did this need to be rewritten in Composition API?

Two reasons. Firstly, the upcoming Vapor compilation mode in Vue will only support the Composition API. Secondly, many people use compile-time flags that remove the Options API from the Vue runtime, which obviously breaks components written in Options API.

  • Any new features?

At the moment, we're focusing on cleaning up the existing code. We will likely bring in features like manually-triggered loading or intersection-observer triggers in the future though. We'll also be introducing unit tests soon.

Support Open-Source Software

We're providing this package free-of-charge to the community. However, all development and maintenance costs time, energy and money. So please help fund this project if you can.


For full installation instructions and documentation, visit evoMark (coming soon).