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

@robotnetworks/asp

v0.1.7

Published

Reference TypeScript implementation and CLI for the Agent Session Protocol (ASP). Spin up a local ASP network on your machine for protocol verification and agent-to-agent development.

Readme

@robotnetworks/asp

A CLI and reference TypeScript implementation of the Agent Session Protocol. Spin up a local ASP network on your machine for protocol verification and agent-to-agent development.

The Python operator at examples/local-operator/ is the protocol's first reference; this is the second. Both pass the conformance suite at tests/conformance/.

Install

npm install -g @robotnetworks/asp

Requires Node.js 22 or newer (uses the built-in node:sqlite module).

Quick start

# Start a network on localhost (background; runs as a detached process).
asp start

# Register two agents with open inbound policy.
asp agent register @alice.bot --policy open
asp agent register @bob.bot   --policy open

# Bind the current directory to act as @alice.bot by default,
# so subsequent commands don't need --as.
asp identity set @alice.bot

# Open a session inviting bob and send a message.
sid=$(asp session create --invite @bob.bot --json | jq -r .session_id)
asp session send "$sid" "hello bob"

# In another terminal, watch the wire as @bob.bot.
asp listen --as @bob.bot

Commands

| Command | What it does | | --- | --- | | asp start / stop / status / logs | Lifecycle for local networks (multi-network, supervised, persistent) | | asp agent | Register, list, show, rotate-token, remove agents; set inbound policy | | asp permission | Manage per-agent allowlists (the only way agents grant trust) | | asp session | Create, join, invite, send, leave, end, reopen, list events | | asp listen | Stream live session events for one agent over WebSocket | | asp identity | Bind a directory to a default agent (.robotnet/asp.json, walked up like .git) | | asp tap | Admin-level stream of every event on the network — useful for debugging | | asp seed | Register a batch of open-policy test agents | | asp reset | Wipe a network's agents and sessions |

asp <command> --help for full options on any subcommand.

Picking the acting agent

Most commands need an agent identity. Three ways to provide it, in order of precedence:

  1. --as <handle> — per-command flag.
  2. ASP_AGENT=<handle> env var — per-shell override. Useful when two terminals in the same project want to act as different agents.
  3. .robotnet/asp.json — directory binding (walked up like .git); set with asp identity set <handle>.

The --network/-n flag wins over the directory's network when explicit; ASP_AGENT only overrides the handle, not the network.

# Bind the project to alice by default
asp identity set @alice.bot

# In another terminal, act as bob just for this shell
export [email protected]
asp session list                  # runs as @bob.bot
unset ASP_AGENT                   # back to @alice.bot

# One-off: act as carol for this single command
asp session list --as @carol.bot

Permissions and consent

Trust is a single primitive: the per-agent allowlist. Two policies, set per agent:

  • open — the agent has no inbound gate. Any authenticated peer can reach it.
  • allowlist — only entries on the agent's list can reach it. Inbound and outbound: if B is not on A's list, neither can initiate with the other (Whitepaper §6.2).

Allowlists are mutated only by the agent that owns them. There is no protocol-level request/accept handshake — that's an operator-policy pattern, deliberately not part of ASP. To put @bob.bot on @alice.bot's list, the owner of @alice.bot runs:

asp permission add @alice.bot @bob.bot

For a symmetric pair, both agents add each other. How peers discover and ask each other for adds is intentionally out of scope — your network may layer that on, but the CLI stays primitive-only.

Session invites obey the same policy. Inviting @bob.bot into a session works iff @bob.bot's policy permits the inviter (open, or allowlisted). Per the protocol's non-enumeration rule, denied invitees are silently omitted from the response — asp session invite reports them as omitted without revealing whether the cause was unknown handle, restrictive policy, or already-participant.

What you get

  • Multi-network. Run multiple isolated ASP networks side-by-side; each has its own port, admin token, and SQLite store.
  • Persistent. State lives in $XDG_STATE_HOME/asp/networks/<name>/ (defaulting to ~/.local/state/asp/networks/<name>/) — agents, sessions, and the event log survive restarts.
  • Conformance-passing. The full Python pytest conformance suite runs against the in-process server as part of npm test.
  • Composable. Every command supports --json for piping into jq and other tools.

Develop

npm install
npm run typecheck
npm test                     # 375+ tests including the Python conformance suite (skipped if `uv` is not installed)
npm run build

The conformance run is automatic when uv is on PATH; otherwise it skips so the suite stays portable.

License

Apache-2.0. See ../LICENSE.