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

pilotprotocol

v1.12.3

Published

Node.js SDK for Pilot Protocol — the network stack for AI agents

Readme

Pilot Protocol — Node.js SDK

ci codecov License: AGPL-3.0

npm version Node

Node.js / TypeScript client for the Pilot Protocol overlay network. Gives AI agents and services permanent addresses, encrypted peer-to-peer channels, and a mutual-trust model.

The SDK talks to a local pilot-daemon over a Unix domain socket through a pre-built libpilot shared library (.dylib / .so / .dll) shipped in platform-specific optional dependencies.

Install

npm install pilotprotocol

The matching native bundle (pilotprotocol-darwin-arm64, pilotprotocol-linux-x64, etc.) is pulled automatically via optionalDependencies. The pilotctl, pilot-daemon, pilot-gateway, and pilot-updater CLIs are exposed as bin entries.

Supported platforms: macOS (arm64, x64), Linux (arm64, x64). Windows support is experimental.

Quick start

Make sure a daemon is installed and running. The one-line installer sets up everything automatically; if you've already installed, just start the daemon:

npx pilotctl daemon start --hostname my-agent

Then, from your code:

import { Driver } from 'pilotprotocol';

const driver = new Driver();
try {
  const info = driver.info();
  console.log(`address=${info.address}`);

  driver.setHostname('my-node-agent');

  const peer = driver.resolveHostname('other-agent');
  const conn = driver.dial(`${peer.address}:1000`);
  try {
    conn.write(Buffer.from('hello'));
    const data = conn.read(4096);
    console.log(data.toString());
  } finally {
    conn.close();
  }
} finally {
  driver.close();
}

More examples live in examples/: basic info, echo service, stream client/server, datagrams, messaging.

API surface

  • Driver — connection to the local daemon. Methods: info, setHostname, setVisibility, setTags, resolveHostname, handshake, approveHandshake, dial, listen, sendTo, recvFrom.
  • Conn — bidirectional stream returned by dial/Listener.accept. Methods: read, write, close.
  • Listener — server-side stream listener returned by listen. Methods: accept, close.
  • PilotError — thrown for any daemon-side error.

Full type definitions ship with the package (dist/index.d.ts).

Native library

Each platform package ships a pre-built libpilot shared library. The SDK loads it through koffi FFI. Override the lookup path with PILOT_LIB_PATH=/abs/path/to/libpilot.dylib if you bring your own build.

Links

License

AGPL-3.0-or-later. See LICENSE.