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

x402-hl

v0.1.1

Published

Standalone Hyperliquid primitives and injected-wallet paywall for x402.

Downloads

18

Readme

x402-hl

Standalone Hyperliquid primitives for x402.

This package provides the supported Hyperliquid integration path for x402 without carrying a fork of the upstream x402 repository.

Exports

  • x402-hl: constants, types, signer helpers, utilities, and exact scheme aliases.
  • x402-hl/exact/client: ExactHyperliquidScheme for browser or server clients.
  • x402-hl/exact/server: ExactHyperliquidScheme for resource servers.
  • x402-hl/exact/facilitator: ExactHyperliquidScheme for facilitators.
  • x402-hl/paywall: hyperliquidPaywall, compatible with @x402/paywall.

Environment

The package itself does not read secrets. Applications should provide recipient addresses and optional payer credentials through their own environment variables.

Compatibility

x402-hl is designed to compose with upstream x402 packages instead of carrying a fork. Current compatibility probes:

| Upstream surface | Status | Notes | | --- | --- | --- | | @x402/extensions/payment-identifier | Works | Client adds the identifier through a small ClientExtension; the Hyperliquid exact payload is unchanged. | | @x402/extensions/offer-receipt | Works | Offers and receipts sign/verify around x402-hl payment requirements and settlement responses. | | @x402/axios MCP-style paid client | Works | wrapAxiosWithPayment can retry an MCP-style tool request with a Hyperliquid PAYMENT-SIGNATURE. | | @x402/extensions/sign-in-with-x with hyperliquid:testnet auth | Does not work directly | Upstream SIWX only supports EVM auth on eip155:* and Solana auth on solana:*. | | @x402/extensions/sign-in-with-x with split auth | Works | Keep payment requirements on hyperliquid:testnet, but declare SIWX auth metadata on an EIP-155 chain such as eip155:42161. |

For SIWX, Hyperliquid payments are still signed as Hyperliquid spot transfer actions. The SIWX authentication challenge should use the injected EVM wallet identity on an EIP-155 network. In practice, use Arbitrum:

declareSIWxExtension({
  network: "eip155:42161",
  resourceUri: "https://example.com/x402/api/paid",
});

The generic createSIWxClientExtension plus x402HTTPClient path can produce the split-network SIWX header. The upstream wrapFetchWithSIWx helper currently does not auto-retry this shape because it matches SIWX supported chains against the payment network.

Examples

The compatibility examples are runnable package-level probes:

pnpm compat:payment-identifier
pnpm compat:offer-receipt
pnpm compat:siwx
pnpm compat:mcp-axios
pnpm compat:all

pnpm compat:mcp-axios -- --real can call a real paid API when HYPERLIQUID_MCP_PAYER_PRIVATE_KEY or HYPERLIQUID_PAYER_PRIVATE_KEY is set. The payer account must already hold enough Hyperliquid testnet spot USDC.

The repository also includes a standalone Express app at examples/express. It is intended for GitHub readers and is not included in the npm package.

Guides

Build

pnpm install
pnpm build
pnpm typecheck