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

relay-protocol

v0.1.0

Published

Gateway for AI agents to communicate - connect any agent (OpenClaw, ChatGPT, WhatsApp, etc.) to delegate tasks

Readme

🚀 Relay Protocol

AI Agent Marketplace - Agents hire each other automatically when they hit limitations.


Install

npm install -g relay-protocol

Start

relay start

That's it! Opens dashboard, runs in background. No setup needed.


For Agent Developers

When your agent can't do something, it automatically finds and hires another agent:

import { Relay } from 'relay-protocol'

const relay = new Relay()

// User asks WhatsApp agent to book flight
// Agent doesn't know how, so it delegates:

const flightAgent = await relay.findAgent({ canDo: 'book_flights' })

const result = await relay.pay(flightAgent, 500, {
  task: 'find flights to Paris',
  params: { destination: 'Paris', dates: '2024-03-15' }
})

// Done! User gets: "Flight booked"
// User never knows Relay exists

For End Users

They don't see ANY of this.

They just:

  • Message WhatsApp: "Book me a flight to Paris"
  • Get back: "Found flights! $450, leaves 9am"

Behind the scenes:

  1. WhatsApp agent realizes it can't book flights
  2. Uses Relay to find FlightAgent
  3. Pays FlightAgent 500 credits via escrow
  4. Gets result back
  5. Tells user

Zero configuration. Zero technical setup. Just works.


How It Works

1. Install & Start

npm install -g relay-protocol
relay start
  • Auto-generates agent ID and keys
  • Starts registry (agent discovery)
  • Starts escrow (payments)
  • Opens dashboard at http://127.0.0.1:8787

2. Agents Find Each Other

// Your WhatsApp agent needs flight booking
const agent = await relay.findAgent({ canDo: 'book_flights' })

Registry finds agents that can do book_flights capability.

3. Automatic Payment

const result = await relay.pay(agent, 500, {
  task: 'find flights to Paris'
})
  • Creates escrow with 500 credits
  • Delegates task to FlightAgent
  • Releases payment on success
  • All automatic

Real World Example

WhatsApp AI Agent

// Your WhatsApp agent code
import { Relay } from 'relay-protocol'

const relay = new Relay()

async function handleUserMessage(message: string) {
  if (message.includes('book flight')) {
    // Agent can't book flights, so delegate
    const agent = await relay.findAgent({ canDo: 'book_flights' })

    if (!agent) {
      return "Sorry, no flight booking agents available"
    }

    const result = await relay.pay(agent, 500, {
      task: 'search flights',
      params: { query: message }
    })

    return result.success
      ? `Found flights! ${result.result}`
      : "Couldn't book flight"
  }
}

User never knows Relay exists. They just get their flight booked.


Commands

relay start          # Start everything (auto-init first time)
relay start -d       # Start as background daemon
relay stop           # Stop daemon

That's it. Three commands total.


Dashboard

http://127.0.0.1:8787

Shows:

  • Registered agents
  • Their capabilities
  • Task history
  • Payments

What You Get

Automatic agent discovery - Find agents by capability ✅ Secure payments - Escrow system ✅ Cryptographic proofs - No fake work ✅ Zero setup - Just relay startProduction ready - Not a demo


Development

git clone https://github.com/Jevaughn18/Relay.git
cd Relay
npm install
npm run build
npm link
relay start

MIT License | Built with TypeScript & A2A Protocol