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

@poh_network/sdk

v0.2.0

Published

Proof of Human SDK — scan wallets for human identity

Downloads

216

Readme

poh-sdk

JavaScript / TypeScript SDK for the Proof of Human API.
Works in Node.js, browsers, React Native, and anywhere fetch is available.

Installation

npm install poh-sdk

Quick start

import { POHClient } from 'poh-sdk'

const poh = new POHClient({
  baseUrl: 'https://your-poh-instance.com',
  apiKey:  'your-api-key',           // or use walletAddress for free tier
})

// Single scan
const { result, brainKey } = await poh.scan('0xabc...')
// result: true = human  |  false = not human  |  null = inconclusive

// AI verdict (richer explanation)
const verdict = await poh.getBrainVerdict(brainKey!)
console.log(verdict.reasoning)

Bulk scans with job polling

// Submit — returns a job ID immediately
const { jobId } = await poh.scanBulk([
  '0xaaa...',
  '0xbbb...',
  '0xccc...',
])

// Option A — wait for completion
const final = await poh.pollJob(jobId, {
  interval:   2_000,           // poll every 2 s (default: 1.5 s)
  timeout:    120_000,         // give up after 2 min (default)
  onProgress: j => console.log(`${j.percent}% complete`),
})
console.log(final.results)

// Option B — stream progress with an async generator
for await (const snap of poh.watchJob(jobId)) {
  process.stdout.write(`\r${snap.percent}% (${snap.done}/${snap.total})`)
}

// Option C — one-liner convenience
const { results } = await poh.scanAndWait(['0xaaa...', '0xbbb...'])

Signal methods

// List all human-identity signal methods (sorted by vote score)
const methods = await poh.getMethods()

// Single method
const method = await poh.getMethod('methodId')

API reference

new POHClient(options)

| Option | Type | Default | Description | |--------|------|---------|-------------| | baseUrl | string | required | Base URL of the POH API | | apiKey | string | — | API key (paid tier) | | walletAddress | string | — | Solana wallet for free-tier tracking | | fetch | FetchFn | globalThis.fetch | Custom fetch (Node < 18, React Native) | | timeout | number | 30000 | Per-request timeout in ms |

Methods

| Method | Returns | Description | |--------|---------|-------------| | scan(input, opts?) | Promise<ScanResult> | Single-address synchronous scan | | scanBulk(inputs, opts?) | Promise<BulkScanResult> | Submit bulk job | | getJob(jobId) | Promise<JobStatus> | Fetch current job snapshot | | pollJob(jobId, opts?) | Promise<JobStatus> | Poll until done/error | | watchJob(jobId, opts?) | AsyncGenerator<JobStatus> | Stream updates | | scanAndWait(inputs, opts?) | Promise<JobStatus> | Bulk + poll in one call | | getBrainVerdict(brainKey) | Promise<BrainVerdict> | AI verdict for a scan | | getMethods(walletAddress?) | Promise<Method[]> | List signal methods | | getMethod(methodId) | Promise<Method> | Single method by ID |

Node.js < 18

Pass a fetch implementation via options.fetch:

import fetch from 'node-fetch'
const poh = new POHClient({ baseUrl: '...', fetch })

Error handling

All network errors throw POHError with a .status (HTTP status code) property.

import { POHClient, POHError } from 'poh-sdk'

try {
  await poh.scan('0xabc...')
} catch (err) {
  if (err instanceof POHError) {
    console.error(`API error ${err.status}: ${err.message}`)
  }
}

TypeScript

The package ships full .d.ts declarations. All request and response types are exported:

import type { ScanResult, JobStatus, BrainVerdict, Method } from 'poh-sdk'

License

MIT