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

@humora-io/widget

v1.0.1

Published

Human verification widget — the CAPTCHA replacement developers actually enjoy building with.

Downloads

43

Readme

@humora-io/widget

The CAPTCHA replacement developers actually enjoy building with.

Humora is a human verification widget that replaces intrusive CAPTCHAs with a short, personality-driven question flow. It scores behavioral signals and returns a signed JWT you verify on your server.

npm version license


Installation

npm install @humora-io/widget

Peer dependencies: React 17+ and React DOM are required.


Quick Start

React

import { HumoraWidget } from '@humora-io/widget'

function ContactForm() {
  const [token, setToken] = useState(null)

  async function handleSubmit(e) {
    e.preventDefault()
    if (!token) return
    await fetch('/api/submit', {
      method: 'POST',
      body: JSON.stringify({ humora_token: token }),
    })
  }

  return (
    <form onSubmit={handleSubmit}>
      <HumoraWidget
        sitekey="sk_live_xxxxxxxx"
        onPass={(token) => setToken(token)}
      />
      <button type="submit" disabled={!token}>
        Submit
      </button>
    </form>
  )
}

Next.js (App Router)

'use client'

import { HumoraWidget } from '@humora-io/widget'
import { useState } from 'react'

export default function MyForm() {
  const [token, setToken] = useState(null)

  return (
    <form>
      <HumoraWidget
        sitekey="sk_live_xxxxxxxx"
        onPass={(token) => setToken(token)}
        onFail={() => console.log('Verification failed')}
      />
      <button disabled={!token}>Submit</button>
    </form>
  )
}

Props

| Prop | Type | Required | Description | |------|------|----------|-------------| | sitekey | string | ✅ | Your site's key from the Humora dashboard | | onPass | (token: string, result: object) => void | ✅ | Called when verification passes. Receives the signed JWT token. | | onFail | (result: object) => void | — | Called when verification fails or is blocked. | | apiUrl | string | — | Override the API base URL. Defaults to https://api.humora.io. |


Server-side Verification

After the user passes, send the token to your server and verify it:

// POST /api/verify
const response = await fetch('https://api.humora.io/api/verify', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    token: req.body.humora_token,
    sitekey: process.env.HUMORA_SITEKEY,
  }),
})

const { success } = await response.json()
if (!success) return res.status(403).json({ error: 'Human verification failed' })

Tokens are signed JWTs — valid for 5 minutes and single-use (replay attacks are blocked automatically).


Script Tag (no framework)

If you're not using React, include the widget as a script:

<script src="https://widget.humora.io/humora.min.js" async defer></script>

<div
  class="humora-widget"
  data-sitekey="sk_live_xxxxxxxx"
  data-callback="onHumoraPass"
></div>

<script>
  function onHumoraPass(token) {
    document.getElementById('humora-token').value = token
  }
</script>

Getting a Sitekey

  1. Sign up at humora.io
  2. Add your domain under My Sites
  3. Copy the sitekey from API Keys

License

MIT © Humora