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

@kashscript/whiffin

v0.1.0

Published

The Settlement Protocol — rail-agnostic, purpose-bound mandates (W3C Verifiable Credentials with AP2 semantics) + signed receipts + reconciliation reports on @kashscript/attest. Payment rails (Raast/EMVCo/Safepay/SoftPOS) as adapters; chain is one optiona

Readme

@kashscript/whiffin — the Settlement Protocol (rail-agnostic)

Crypto is one optional rail, never a requirement. Commercial (SSLA Schedule B). Where money moves, ventures consume Whiffin and never reach for raw trade-sdk.

Built in phase M4 of the protocol Manifestation (ADR-0016). Purpose-bound mandates + signed receipts + reconciliation reports on @kashscript/attest; payment rails (Raast/EMVCo/Safepay/SoftPOS) as adapters. The generic machinery is derived from the Duedale grant/report/rails seeds; SegmentPolicy content, DD_* mapping, funder/vendor UI, and the demo's SIMULATION posture stay venture-side. Full contract: specs/whiffin.md.

Mandate core — W3C VCs with AP2 semantics

A purpose-bound grant is an AP2 Intent Mandate: a fixed max amount, a purpose lock, an allowed-vendor set (Merkle root), an expiry/TTL, and a single-use nonce — pre-authorizing redemption.

import { issueGrant, markDelivered, redeemGrant, InMemoryGrantLedger, InMemoryNonceStore } from "@kashscript/whiffin/mandate";
import { toMandateCredential, verifyMandateCredential } from "@kashscript/whiffin/credential";

const { signed, record } = await issueGrant(req, program, operatorPriv, ledger);
const vc = toMandateCredential(signed, { issuer: operatorDid });   // W3C VC 2.0 + AP2 Intent Mandate
await verifyMandateCredential(vc, operatorPub);                    // proof = the kash-grant-v1 signature
  • LifecycleissueGrant · markDelivered · redeemGrant, with GrantLedger/NonceStore interfaces (+ in-memory reference impls).
  • Policy gate (@kashscript/whiffin/policy) — a config-driven, ordered set of named checks (signature · beneficiary binding · purpose · expiry · vendor Merkle inclusion), nonce burned LAST. Zero segment branching — reads fields only; errors are neutral WhiffinPolicyError codes.
  • Credential (./credential) — Intent Mandate (grant) + Cart Mandate (offer→receipt→dispute) as W3C Verifiable Credentials; the proof embeds the existing Kash-Event Ed25519 signature (no new crypto).

Rails (@kashscript/whiffin/rails)

emvco (MPM v01 + CRC-16/CCITT-FALSE), raast (P2M QR + shared-secret verifier), safepay (HMAC verifier), softpos (bridge loader + camera scanner + reader guard), partner-ledger (interface + SimulationPartnerLedger — every result labelled simulation: true), and chain (interface + not-wired stub; the EVM/Solana impl is venture-wired via trade-sdk, artifacts guard applies).

Reconciliation (@kashscript/whiffin/report)

The every-rupee-style report — a pure projection (per-grant lifecycle · vendor breakdown · totals) + a render-time SHA-256/JCS hash-chain + a kash-report-v1-signed envelope. Generalized (simulation / settled / refunded / disclaimers / envelope-typ injected). A report generated here re-verifies under attest's verifyDuedaleReport when the venture-branded envelope type + genesis label are passed. Reconciliation invariant: issuedPaisa === redeemedPaisa + unspentPaisa.

Status

0.x — the API stays 0.x until duedale-angel's terminal + /report flows swap onto the published package (consumer-as-acceptance, ADR-0016). The runtime license assertion + registry tier mapping land in M6. Depends on @kashscript/identity-core + @kashscript/identity-zkp (/merkle) + @kashscript/attest.

Commercial — SSLA Schedule B; see LICENSE.