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

@relai-fi/plugin-openclaw

v0.1.2

Published

OpenClaw plugin for RelAI marketplace — x402 paid API calls

Readme

@relai-fi/plugin-openclaw

OpenClaw plugin for the RelAI marketplace. Browse, discover, and call paid APIs with automatic x402 micropayments — supporting both EVM and Solana chains.

Installation

openclaw plugins install @relai-fi/plugin-openclaw

For local development:

openclaw plugins install -l ./plugins/openclaw

Configuration

In your OpenClaw gateway config:

{
  plugins: {
    entries: {
      "plugin-openclaw": {
        enabled: true,
        config: {
          baseUrl: "https://api.relai.fi",   // RelAI platform URL
          requestTimeoutMs: 15000,            // HTTP timeout (default: 15000)
          chainType: "evm"                    // "evm" or "solana" (default: "evm")
        }
      }
    }
  }
}

All config fields are optional and have sensible defaults.

Tools

The plugin registers 4 tools:

relai_setup

Set up an agent key for this agent. Generates a local keypair (EVM or Solana), opens a consent URL in the browser, and polls for approval automatically.

> Set up my RelAI agent key

Parameters:

  • agentName — Human-readable name shown in consent UI
  • chainType"evm" or "solana" (defaults to plugin config)
  • contractAddress — ERC-721 agent NFT contract address (optional)
  • nftTokenId — Agent NFT token ID (optional)
  • network — Network name, e.g. "skale-base" (optional)

relai_discover

List available paid APIs on the RelAI marketplace.

> What APIs are available on RelAI?

Parameters:

  • network — Filter by supported network (optional)

relai_api_info

Get details and endpoint pricing for a specific API.

> Show me the endpoints and pricing for the nshield API

Parameters:

  • apiId — API identifier (e.g. "nshield")

relai_call

Call a paid API endpoint. Payment is handled automatically via the service key.

> Call the nshield API endpoint /v1/health

Parameters:

  • apiId — API identifier
  • endpointPath — Endpoint path (e.g. "/v1/health")
  • method — HTTP method (default: GET)
  • body — JSON request body for POST/PUT requests (optional)

How it works

  1. Setuprelai_setup generates a local keypair and initiates a consent flow with the RelAI platform. The user approves in their browser, and a service key is issued and stored locally in ~/.openclaw/relai/agent-keys.json.

  2. Discoveryrelai_discover and relai_api_info query the RelAI marketplace to find APIs and their pricing.

  3. Callingrelai_call proxies requests through the RelAI relay with automatic x402 payment using the stored service key. The service key works across all chains.

Data storage

Agent keys are stored in ~/.openclaw/relai/agent-keys.json with restricted file permissions (0600). Override the storage directory with the RELAI_STORE_DIR environment variable.

License

MIT