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

@vallum/sdk

v0.2.0

Published

TypeScript SDK scaffold for Vallum sponsorship gateways.

Readme

@vallum/sdk

TypeScript client scaffold for applications integrating with an Vallum policy gateway.

Install

For the npm release, install:

npm install @vallum/sdk

See the full package selection and configuration guide in the repository: https://github.com/0xCozart/vallum/blob/main/docs/vallum/package-integration-guide.md

Usage

import { createVallumClient, VallumPolicyError } from "@vallum/sdk";

const agentRail = createVallumClient({
  baseUrl: "https://gateway.example.invalid",
  apiKey: process.env.VALLUM_APP_API_KEY ?? "",
});

try {
  const decision = await agentRail.simulatePolicy({
    gasBudget: 1_000_000,
    packageId: "0xpackage",
    functionName: "mint",
  });

  if (!decision.allowed) {
    console.log(decision.reasonCode, decision.message);
  }
} catch (error) {
  if (error instanceof VallumPolicyError) {
    console.error(error.reasonCode, error.message);
  }
  throw error;
}

The client calls a configured policy gateway over HTTP. It does not embed sponsor credentials and does not itself prove live/testnet transaction execution.

Local Vallum helpers such as requestSponsoredAction, openEscrow, callPaidTool, requestDataLicense, and fulfillServiceBounty route sponsored/value-bearing flows through the policy gateway. They do not prove live settlement, custody, marketplace provider verification, or testnet deployment by themselves.

Generic IOTA custody escrow

createSponsoredIotaEscrowSettlementExecutor builds funded escrow open, release, and refund transactions for Vallum-compatible gateways. In the default shared-object mode, funded open calls the escrow package open_shared entry, so gateway policy allowlists must include open_shared plus release and refund. The open transaction consumes a configured IOTA Coin<T> payment object and calls the generic custody escrow Move package with policy-bound payer, payee, release authority, refund authority, refund destination, payment type, base-unit split, receipt/reference IDs, idempotency key, timeout, and payee self-release flag. The executor can resolve a different signer per operation, so funded open signs as the payer, release signs as the configured release authority, and refund signs as the configured refund authority. The timeout term is refundAfterEpochMs, an absolute IOTA epoch-millisecond deadline; 0 disables timeout refund. Use a durable conditional store with the settlement client so duplicate opening reservations are rejected before funds can move on-chain. Explicit policy target resolvers must match the actual Move package/function being executed.

Release and refund calls do not accept arbitrary payout destinations. They use the recipients and authority terms stored by the funded open transaction, so a gateway operator or verifier cannot silently reroute funds through the SDK surface.