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

@valuya/cli

v0.2.0-beta.1

Published

A small CLI to **purchase access** (create checkout session → pay on-chain if needed → submit signed proof → verify → mint mandate), plus a couple of **admin helpers** (e.g. wallet allowlisting, product creation).

Readme

Valuya Guard — Agent CLI

A small CLI to purchase access (create checkout session → pay on-chain if needed → submit signed proof → verify → mint mandate), plus a couple of admin helpers (e.g. wallet allowlisting, product creation).

This CLI is meant to be used by:

  • Agents (OpenClaw / headless automations) that need to buy access to a resource
  • Developers debugging the Guard payment protocol end-to-end

Backend-driven Invoke v1 Flow

For product access execution, the CLI now prefers backend-provided invoke contracts.

When agent:buy resolves a product and receives:

{
  "access": {
    "invoke": {
      "version": "1",
      "method": "POST",
      "url": "https://...",
      "headers": { "content-type": "application/json" },
      "body": { "..." : "..." },
      "timeout_ms": 15000,
      "retry_policy": { "max_attempts": 2, "backoff_ms": [300, 1200] }
    }
  }
}

the CLI executes that request as-is (method/url/headers/body), respecting timeout_ms and retry_policy.

If no access.invoke is present, CLI falls back to visit_url / --resource-url behavior.


Commands overview

High-level “do it all” purchase flow

  • valuya agent:pay

Creates a checkout session, pays (if needed), submits the signed proof, verifies, and ends with a minted mandate.

This command is env-driven (no flags), so it’s easy to run in CI or from other agents.

Required env vars:

| Env var | Example | Description | | --------------------- | --------------------------- | ------------------------------------------------------ | | VALUYA_BASE | https://pay.gorilla.build | Guard base URL | | VALUYA_TENANT_TOKEN | ... | Tenant bearer token | | VALUYA_SUBJECT | user:3 or anon:<uuid> | Subject in <type>:<id> format | | VALUYA_RESOURCE | n8n:workflow:abc... | Resource identifier | | VALUYA_PLAN | standard | Plan to buy | | VALUYA_PRIVATE_KEY | 0x... | EVM private key used to pay + sign proof | | VALUYA_RPC_URL | https://... | RPC URL for on-chain payment (required for paid flows) |

Optional env vars:

| Env var | Default | Description | | ---------------------- | ------: | ------------------- | | VALUYA_POLL_INTERVAL | 3000 | Poll interval in ms | | VALUYA_POLL_TIMEOUT | 60000 | Poll timeout in ms |

Run:

node dist/bin.js agent:pay
# or if your package exposes it as a bin:
valuya agent:pay

## Low-level debugging commands (step-by-step)

These commands are useful when you want to debug each protocol step in isolation.

# Create Checkout Session

pnpm dist/bin.js agent:create-session \
--base https://pay.gorilla.build \
--tenant_token $Token \
--subject_type user \
--subject_id <user-id> \
--resource <resource> \
--plan standard

# Sign Agent Proof

pnpm dist/bin.js agent:sign-proof \
  --base https://pay.gorilla.build \
  --tenant_token $TOKEN \
  --pk 0xYOUR_PRIVATE_KEY \
  --session_id cs... \
  --tx_hash 0x... \
  --expires_at 2026-02-20T12:00:00Z

# Submit tx + proof

pnpm dist/bin.js agent:submit-tx \
  --base https://pay.gorilla.build \
  --tenant_token $TOKEN \
  --session-id cs... \
  --wallet_address 0x... \
  --tx_hash 0x... \
  --signature 0x... \
  --proof_json '{"session_id":"...","tx_hash":"...","anchor_resource":"...","required_hash":"...","pricing_hash":"...","quantity_effective":1,"chain_id":1,"token_address":"0x...","to_address":"0x...","amount_raw":"...","decimals":18,"expires_at":"..."}'

# Verfiy Session (binds verify to the wallet used in submit-tx)

pnpm dist/bin.js agent:verify-session \
  --base https://pay.gorilla.build \
  --tenant_token $TOKEN \
  --session-id cs... \
  --wallet_address 0xYOUR_WALLET

## Admin Helpers
# Add a wallet to the allowlist

pnpm dist/bin.js agent:allowlist:add \
  --base https://pay.gorilla.build \
  --tenant_token $TOKEN \
  --principal_subject_type user \
  --principal_subject_id 3 \
  --wallet_address 0x... \
  --tenant_id 2 \
  --product_id 16 \
  --plan standard \
  --resource_prefix n8n:workflow:

# Create a Product

pnpm dist/bin.js agent:create-product \
 --base https://pay.gorilla.build \
 --tenant_token $TOKEN \
 --name "Coffee @ Rivas" \
 --description "Buy me a coffee at Rivas. \
 --currency EUR