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

human-proof

v0.1.1

Published

Privacy-first protocol for hardware-verified human presence

Downloads

23

Readme

⬡ Human-Proof

CI npm version License: MIT

Privacy-First Protocol for Hardware-Verified Human Liveness

Human-Proof is an open-source protocol and SDK designed to solve the problem of automated bot abuse (sybil attacks, spam, voting manipulation) by shifting the security perimeter from Identity to Physical Presence.

By leveraging native WebAuthn (FIDO2) capabilities, Human-Proof generates cryptographic proofs that an action was performed by a human physically interacting with a hardware Root of Trust (Secure Enclave, TPM), without ever collecting biometrics or PII.


⚡ Key Features

  • Privacy-Preserving: Zero-knowledge liveness. No fingerprints, facial data, or IDs leave the user's device.
  • Bot-Resistant: Neutralizes AI agents and headless browsers by requiring hardware-backed assertions.
  • Pluggable Storage: Use the default MemoryStore or implement the IHumanStore for Redis, SQL, or MongoDB.
  • Hardware Trust Tiers: Distinguish between high-security smartphones (Secure Enclave) and standard authenticators.
  • Zero-Dependency SDK: Lightweight browser SDK with no external dependencies.
  • Developer-Centric: Simple Express middleware and React-friendly hooks.

🏗️ Architecture

Human-Proof operates as a stateless challenge-response protocol:

  1. Enrollment: User registers a "Human-Key" on their device's secure hardware.
  2. Challenge: Server issues an action-scoped, short-lived (60s) challenge.
  3. Assertion: User provides a biometric/PIN-unlocked signature from the hardware module.
  4. Verification: Server validates the signature and hardware attestation to confirm liveness.

Explore the Architecture Docs for sequence diagrams and deep dives.

🚀 Getting Started

Installation

npm install human-proof

Server-Side Configuration (Express)

import { HumanProof, createHumanProofMiddleware } from "human-proof/server";

const humanProof = new HumanProof({
  rpId: "example.com",
  rpName: "My Application"
});

const requireHuman = createHumanProofMiddleware(humanProof);

// Protect sensitive endpoints
app.post("/api/vote", requireHuman("vote:submit"), (req, res) => {
  const { result } = req.humanProof!;
  res.json({ success: true, trustTier: result.trustTier });
});

Automated Human Verification

import { HumanProofSDK } from "human-proof";

const sdk = new HumanProofSDK({ rpId: "example.com" });

// Automatically attaches human liveness proof to the request
await sdk.protectedFetch("/api/secure-action", {
  method: "POST",
  body: JSON.stringify({ data: "..." }),
  action: "secure:execute"
});

React Hook integration

import { useHumanProof } from "human-proof";

function VoteButton() {
  const { execute, isBusy } = useHumanProof({ rpId: "example.com" });
  
  const handleVote = async () => {
    await execute("vote:submit", async () => {
      // Your protected API call here
    });
  };

  return <button onClick={handleVote} disabled={isBusy}>Vote</button>;
}

Client-Side (Browser SDK)

import { HumanProofSDK } from "human-proof/sdk";

const sdk = new HumanProofSDK({ rpId: "example.com" });

// Enrollment (once per device)
await sdk.enroll({ userId: "[email protected]" });

// Protected Action
await sdk.protectedFetch("/api/vote", {
  method: "POST",
  body: JSON.stringify({ choice: "A" }),
  action: "vote:submit"
});

📖 Documentation

🧪 Development & Testing

We use Vitest for testing and tsup for high-performance builds.

npm install     # Install dev dependencies
npm test        # Run unit tests
npm run dev     # Launch the premium demo server (http://localhost:3000)
npm run build   # Generate dual-mode (ESM/CJS) bundles

⚖️ License

MIT © Human-Proof Team