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

@h33/botshield

v1.0.0

Published

H33-BotShield — Proof-of-work bot prevention without CAPTCHA. No tracking. No images. Just math.

Readme

H33-BotShield

Proof-of-work bot prevention. No CAPTCHAs. No tracking. Just math.

Replace reCAPTCHA, hCaptcha, and Turnstile with a single script tag. Your visitor's browser solves a cryptographic challenge invisibly — no images, no checkboxes, no Google.

Free for 10,000 challenges per month.

Quick Start

Script Tag (zero code)

<script src="https://api.h33.ai/v1/botshield/script.js"></script>

Done. The script auto-solves on page load and stores the session token.

npm

npm install @h33/botshield
import { protect, getToken, createProtectedFetch } from '@h33/botshield';

// Auto-challenge + solve + store token
await protect();

// Get the token for your own requests
const token = getToken();

// Or wrap fetch to auto-include the token
const safeFetch = createProtectedFetch();
const response = await safeFetch('/api/submit', { method: 'POST', body: data });

Server-Side Verification

import requests

token = request.headers.get('X-H33-BotShield-Token')
result = requests.post('https://api.h33.ai/v1/botshield/verify',
    json={"session_token": token})

if result.json()["valid"]:
    # Human — process request
else:
    # No valid proof — reject

How It Works

  1. Challenge — Server issues a random nonce + difficulty level
  2. Prove — Browser solves SHA-256 proof of work using Web Crypto API (non-blocking)
  3. Verify — Server checks solution in microseconds, issues session token
  4. Protected — Every subsequent request carries the token

Why Not CAPTCHA?

| | reCAPTCHA | hCaptcha | Turnstile | BotShield | |---|---|---|---|---| | Tracks users | Yes (Google) | Yes | Proprietary | No | | User friction | High | High | Low | Zero | | Accessible | No | No | Partial | Yes | | Third-party | Google | hCaptcha | Cloudflare | None | | GDPR compliant | No | Partial | Partial | Yes |

Configuration

import { protect } from '@h33/botshield';

await protect({
  baseUrl: 'https://api.h33.ai',  // API endpoint
  badge: true,                      // Show "Secured by H33.ai" (free tier)
  onVerified: (token) => {          // Callback on success
    console.log('Verified:', token);
  },
  onError: (err) => {               // Callback on failure
    console.error('BotShield error:', err);
  }
});

API

protect(options?)Promise<string>

Full protection flow. Returns the session token.

solve(nonce, difficulty)Promise<number>

Solve a PoW challenge. Returns the solution.

requestChallenge(baseUrl?, options?)Promise<object>

Request a challenge from the server.

submitSolution(baseUrl?, solution)Promise<object>

Submit a solved challenge.

verifyToken(baseUrl?, token)Promise<object>

Verify a session token.

getToken()string | null

Get the current session token.

createProtectedFetch(originalFetch?)function

Wrap fetch to auto-include the BotShield token header.

Pricing

  • Free: 10,000 challenges/month. Badge displayed.
  • Pro ($49/mo): Unlimited challenges. Badge removed.

License

MIT


Built by H33.ai — Post-Quantum Encryption Platform