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

powchallenge_client

v1.0.3

Published

POW Captcha client library using Argon2id (WASM)

Readme

powchallenge_client

The companion client-side library for the POW Captcha ecosystem. It handles the computationally expensive Argon2id puzzle resolution seamlessly inside a Background Web Worker, ensuring your main browser UI thread maintains a smooth experience for legitimate users.

Features

  • Zero-Interaction Security: No need for users to click crosswalks or fire hydrants. Everything happens silently.
  • Web Worker Orchestration: Automatically spawns and manages background threads to perform heavy cryptographic operations.
  • Pre-compiled WebAssembly: Utilizes hyper-optimized WASM Argon2id bindings internally to maximize solving speed.

Install via bun:

bun add powchallenge_client

How to Use

Integrating the client library is extremely simple. Fetch the challenge parameters from your backend, let the background worker mine the block, and submit the result back to your server.

import { minePOWWithWorker } from 'powchallenge_client';

async function performSecureAction() {
    // 1. Fetch challenge parameters from your custom backend API
    const response = await fetch('/api/challenge');
    const challengeData = await response.json();
    
    // The challenge payload is base64 encoded by the server
    const challengeBase64 = challengeData.challenge;
    
    // 2. Mine the PoW in a non-blocking background thread
    // This will return the valid nonce in base64 format once the puzzle is solved
    const validNonceB64 = await minePOWWithWorker(challengeBase64, challengeData.difficulty);
    
    // 3. Submit the proof of work back to the server to securely complete the action
    const verifyResponse = await fetch('/api/verify', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({
            req_id: challengeData.req_id,
            challenge: challengeData.challenge,
            nonce: validNonceB64,
            difficulty: challengeData.difficulty,
            timestamp: new Date().toISOString()
        })
    });
    
    if (verifyResponse.ok) {
        console.log("Action performed successfully!");
    } else {
        console.error("Proof of Work failed or expired.");
    }
}

For standard integrations, ensure your backend server utilizes the powchallenge_server package (available natively in Node.js, Python, and Rust).