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

@hostily/captcha-vue

v0.2.0

Published

Vue 3 component and Nuxt 3/4 module for hostily Captcha (captcha.hostily.de): thin wrapper around the <hostily-captcha> web component. SSR-safe.

Readme

@hostily/captcha-vue

Deutsch

Vue-3-Komponente und Nuxt-3/4-Modul für hostily Captcha: eine dünne Hülle um das Web Component <hostily-captcha>. Vue ab 3.3, SSR-sicher, TypeScript-Typen inklusive. Die Komponente liefert nur das Token; das Secret gehört nie in den Browser – das Token prüft Ihr Server (z. B. mit @hostily/captcha).

npm install @hostily/captcha-vue

Vue 3

<script setup>
import { ref } from "vue";
import { HostilyCaptcha } from "@hostily/captcha-vue";
const captcha = ref(null);
const token = ref("");
</script>

<template>
  <form method="post" action="/kontakt">
    <HostilyCaptcha ref="captcha" site-key="IHR_SITE_KEY" @verify="(t) => (token = t)" @expire="token = ''" />
    <button>Senden</button>
  </form>
</template>

Nuxt 3 und 4

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ["@hostily/captcha-vue/nuxt"],
  hostilyCaptcha: { sprache: "de" },   // optionale Vorgaben für alle Komponenten (nur Öffentliches, nie das Secret)
});

<HostilyCaptcha> steht dann ohne Import in allen Seiten zur Verfügung. Das Modul benötigt @nuxt/kit (kommt mit Nuxt).

Im Formular steht das Token im Feld hostily-captcha-token; @verify bekommt es zusätzlich.

| Prop | Bedeutung | Vorgabe | |---|---|---| | site-key | Site-Key des Projekts (Pflicht) | – | | api | Basisadresse des Dienstes | https://captcha.hostily.de/api/ | | modus | sichtbar (Haken) / unsichtbar / halten (Taste gedrückt halten) / schieben (Schieberegler). „Halten“ und „Schieben“ bieten die Alternative „Lieber per Klick bestätigen“. Nicht gesetzt: der Modus des Projekts im Kundenportal | nicht gesetzt (Portal) | | haltezeit | Millisekunden (800 bis 3000), nur für modus="halten" | 1500 | | id, aria-*, data-* | Attribute der Komponente fallen auf das Element durch (Vue) | – | | sprache | de / en | aus <html lang> | | theme | hell / dunkel | System | | feld | Name des Token-Feldes | hostily-captcha-token | | recaptcha-kompatibel | zusätzlich g-recaptcha-response | aus | | widget-url | Adresse des Widget-Skripts (selbst gehostet) | <api>/../widget/hostily-captcha.js |

Ereignisse: @verify(token), @error(meldung, code) (code: netz, gesperrt, abgelehnt, challenge, rechnen, verfahren, skript), @expire (Token abgelaufen oder vom Widget zurückgesetzt; nicht nach eigenem reset()). Per Template-Ref: reset() (nach Absenden per Ajax; ein Token gilt nur einmal), loesen() (Promise mit dem Token), token(). Das Widget-Skript wird einmal je Seite geladen, erst im Browser. CSP: script-src und connect-src für captcha.hostily.de, worker-src blob:, script-src 'wasm-unsafe-eval'.

Geprüft (Produktionsbuild, Browsertest gegen den echten Dienst): Nuxt 3.21 und Nuxt 4.6 (Vue 3.5); Server-Rendering mit reinem Vue 3.3.0. Beispielprojekt: beispiel/, Test: test/lauf.sh.

English

Vue 3 component and Nuxt 3/4 module for hostily Captcha: a thin wrapper around the <hostily-captcha> web component. Vue 3.3+, SSR-safe, types included. It only delivers the token; verify it on your server with the secret.

Install and use as above. Nuxt: add "@hostily/captcha-vue/nuxt" to modules; <HostilyCaptcha> is auto-imported; optional public defaults under hostilyCaptcha in the config. Props: site-key (required), api, modus (sichtbar/unsichtbar/halten/schieben = checkbox/invisible/press-and-hold/slider; hold and slide offer a "confirm by click instead" button; unset = the mode of the project in the customer portal), haltezeit (ms, 800 to 3000, only for halten), sprache (de/en), theme (hell/dunkel = light/dark), feld, recaptcha-kompatibel, widget-url. Events: verify(token), error(message, code), expire (not fired by your own reset()). Template-ref methods: reset(), loesen(), token(). Tested: Nuxt 3.21 and 4.6 production builds with a browser test against the live service; server rendering with plain Vue 3.3.0.

MIT