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

thoughtproof-sdk

v0.2.1

Published

SDK for ThoughtProof reasoning verification — verify AI agent decisions before they act

Readme

thoughtproof-sdk

SDK for ThoughtProof reasoning verification — verify AI agent decisions before they act.

Install

npm install thoughtproof-sdk

Quick start

import { check } from "thoughtproof-sdk";

const result = await check({
  claim: "Swap $2000 USDC to ETH. ETH at $2184, 6% below 30d MA, RSI 34.",
  stakeLevel: "medium",
  domain: "financial",
});

if (result.verdict === "ALLOW") {
  // execute trade
} else if (result.paymentRequired) {
  // pay $X USDC on Base, then retry
  console.log(result.paymentRequired.instructions);
}

API

check(params): Promise<CheckResult>

Verifies a claim or decision against ThoughtProof's reasoning integrity evaluators.

Params:

| Field | Type | Description | | ------------ | ----------------------------------------------------- | ------------------------------------ | | claim | string | The statement or decision to verify | | context | string? | Additional context for the evaluator | | domain | "financial" \| "medical" \| "legal" \| "code" \| "general" | Domain hint for evaluator routing | | stakeLevel | "low" \| "medium" \| "high" \| "critical" | Risk level of the decision | | speed | "standard" \| "deep" | Evaluation depth (default: standard) |

Result:

| Field | Description | | ----------------- | ---------------------------------------------------------------- | | verdict | "ALLOW" · "HOLD" · "UNCERTAIN" · "DISSENT" | | confidence | 0–1 confidence score | | attestation | Signed attestation (EdDSA) if payment was completed | | paymentRequired | x402 payment details when the API requires USDC payment on Base | | durationMs | Round-trip time in milliseconds |

configure(options)

Set a global API key or override the base URL:

import { configure } from "thoughtproof-sdk";

configure({
  apiKey: process.env.THOUGHTPROOF_API_KEY,
  baseUrl: "https://api.thoughtproof.ai", // optional
});

Operators with an API key bypass x402 payment on every call.

Verdicts

| Verdict | Meaning | | ------------- | ----------------------------------------------------------- | | ALLOW | Claim passed — proceed with the action | | HOLD | Payment required or flagged — do not proceed | | UNCERTAIN | Evaluators could not reach confidence — consider human review | | DISSENT | Claim failed verification — action blocked |

Requirements

  • Node.js 18+ (uses native fetch)
  • No runtime dependencies

License

MIT