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

@shulam/sdk

v0.1.0

Published

Shulam SDK — compliance screening, trust scoring, and x402 payment facilitation

Readme

@shulam/sdk

The official SDK for the Shulam x402 payment facilitator. Compliance screening, trust scoring, agent passports, and payment settlement — one package.

Install

npm install @shulam/sdk

Quick Start — Paywall an Express Endpoint

import express from "express";
import { requirePayment } from "@shulam/sdk/express";

const app = express();

// One line to paywall any route
app.get("/premium",
  requirePayment({ amount: "1000000", payTo: "0xYourWallet" }),
  (req, res) => {
    res.json({ content: "premium data", paidBy: req.payment?.payer });
  }
);

app.listen(8080);

Set SHULAM_API_KEY in your environment (or pass apiKey in the config).

Full SDK Client

For compliance screening, trust scoring, agent passports, and more:

import { Shulam } from "@shulam/sdk";

const shulam = new Shulam({ apiKey: process.env.SHULAM_API_KEY! });

// OFAC compliance screening
const screen = await shulam.compliance.screen("0xAddress...");
console.log(screen.status); // "clear" | "held" | "blocked"

// Trust scoring
const trust = await shulam.trust.getScore("0xAddress...");
console.log(trust.tier); // "unknown" | "new" | "established" | "trusted" | "exemplary"

// Agent Passport
const passport = await shulam.passport.get("0xAddress...");

// Merchant discovery
const merchants = await shulam.discovery.searchCompliant({ category: "api" });

// Manual verify + settle
const verified = await shulam.payments.verify(paymentPayload, requirements);
const settled = await shulam.payments.settle(paymentPayload, requirements);

Subpath Imports

| Import | Purpose | |--------|---------| | @shulam/sdk | Full SDK client (Shulam class) | | @shulam/sdk/express | requirePayment() Express middleware | | @shulam/sdk/compliance | Compliance screening only | | @shulam/sdk/trust | Trust scoring only | | @shulam/sdk/passport | Agent Passport API | | @shulam/sdk/discovery | Merchant discovery |

Configuration

const shulam = new Shulam({
  apiKey: "sk_test_...",               // Required
  baseUrl: "https://api.shulam.io",    // Optional (default)
  timeout: 10_000,                     // Optional, ms
  retry: { maxRetries: 2, baseDelay: 500 }, // Optional
});

Environment Variables

| Variable | Purpose | Default | |----------|---------|---------| | SHULAM_API_KEY | API key for requirePayment() | — | | SHULAM_FACILITATOR_URL | Facilitator base URL | https://api.shulam.io |

Error Handling

import { ApiError, ComplianceHoldError, RateLimitError, NetworkError } from "@shulam/sdk";

try {
  await shulam.compliance.screen("0x...");
} catch (err) {
  if (err instanceof ComplianceHoldError) {
    console.log("Address held for review:", err.holdId);
  } else if (err instanceof RateLimitError) {
    console.log("Rate limited, retry after:", err.retryAfterMs, "ms");
  } else if (err instanceof NetworkError) {
    console.log("Network error:", err.message);
  } else if (err instanceof ApiError) {
    console.log("API error:", err.status, err.code);
  }
}

What is x402?

x402 is an open protocol for machine-to-machine payments using HTTP status code 402. When a client requests a paid resource without payment, the server returns 402 Payment Required with payment instructions. The client signs a USDC authorization (EIP-3009), attaches it as an X-Payment header, and retries. The facilitator verifies compliance and settles on-chain.

License

MIT — Shulam, Inc.