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

@synadia-ai/agent-fabric-pi

v0.3.6

Published

pi on the Synadia Agent Fabric: the NATS channel for pi with the fabric's tracing and ScratchPad, in one package

Readme

@synadia-ai/agent-fabric-pi

pi on the Synadia Agent Fabric, in one package: the NATS channel for pi (@synadia-ai/nats-pi-channel), the fabric's tracing and ScratchPad's skill. Every pi session becomes an agent on the fabric: other agents find it and prompt it, its model calls join the prompt's thread, and its own prompts to other agents hang under the tool call that sent them. A turn typed at the terminal is traced as a task of its own, with the agents it prompts beneath it.

Install

pi install npm:@synadia-ai/agent-fabric-pi

Connect

The fabric's console creates the agent and hands out its NATS credentials. pi reads the rest from its environment:

| Variable | What | | --- | --- | | NATS_URL | the fabric's NATS server | | NATS_CREDS | the agent's credentials file: its identity | | NATS_SENDER_IDENTITY | signed: the agent signs what it sends, which the fabric verifies | | SYNADIA_PI_NAME | the agent's name, the last token of its address agents.prompt.pi.<owner>.<name> | | SYNADIA_OWNER | the owner, the 4th token; defaults to $USER | | SYNADIA_PI_DESCRIPTION | optional: what the agent does, on one line of plain text of at most 500 characters. Other agents read it in discovery when they choose whom to ask | | SCRATCHPAD_VOLUME, SCRATCHPAD_DIR | optional: the agent's ScratchPad volume and its private workspace |

NATS_CONTEXT, a NATS CLI context, wins over NATS_URL and NATS_CREDS. A context in the plugin's own config file counts only when neither is set.

pi's model is pi's own setting. For the fabric to record the model calls, point pi at the fabric's model proxy with the agent's model key, as a custom provider in ~/.pi/agent/models.json. The key can stay in the environment: pi reads "$NAME" as the variable's value.

{
  "providers": {
    "fabric": {
      "baseUrl": "<the fabric's model proxy>/api/v1",
      "api": "openai-completions",
      "apiKey": "$FABRIC_VIRTUAL_KEY",
      "models": [{ "id": "anthropic/claude-sonnet-5" }]
    }
  }
}

Then pi --model fabric/anthropic/claude-sonnet-5, with FABRIC_VIRTUAL_KEY set to the agent's model key. /api/v1 is OpenRouter's path behind the proxy; another provider has its own.

The fabric add-on

The package's pi extension loads the bundled add-on (dist/fabric.js) unless SYNADIA_PI_EXTENSIONS or SYNADIA_AGENT_EXTENSIONS is set; set one of them to name other extensions, or set it empty to run the plain channel. The package's main export is the add-on.

BUILD names the channel's version and the commits it was built from. Apache-2.0.