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

aamp-acp-bridge

v0.1.22

Published

Bridge ACP-compatible agents (Claude, Codex, Gemini, etc.) into the AAMP email network — zero code, config-driven

Downloads

1,525

Readme

aamp-acp-bridge

Config-driven bridge that connects ACP-compatible agents to the AAMP email network.

Install

npm install aamp-acp-bridge

Usage

Initialize the bridge:

npx aamp-acp-bridge init

The init wizard scans installed ACP-capable agents, including Hermes, then lets you select multiple entries with arrow keys, Space, and Enter. For each selected agent, choose one authorization setup method:

  • Pair with a five-minute terminal QR code plus the matching aamp://connect?... URL.
  • Manually enter senderPolicies.
  • Reuse existing senderPolicies, when any are available.
  • Configure sender authorization later; task.dispatch is rejected until pairing or policy setup is complete.

If you choose QR pairing, init starts the bridge immediately after writing config, so scanning the QR code with AAMP App works right away. The bridge answers each pair.request with pair.respond; rejected responses include the failure reason.

Use --no-start only when you need to generate config in a script without keeping the bridge process running:

npx aamp-acp-bridge init --agent claude --no-start

After an agent has been initialized, generate a fresh pairing QR code without re-running setup:

npx aamp-acp-bridge pair --agent claude

Start the bridge:

npx aamp-acp-bridge start

By default, the bridge stores its config under ~/.aamp/acp-bridge/config.json and agent credentials under ~/.aamp/acp-bridge/credentials/. Legacy ./bridge.json and ~/.acp-bridge/ data are migrated automatically on first use without deleting the original files.

The bridge understands these task lifecycle intents:

  • task.dispatch
  • task.stream.opened
  • task.help_needed
  • task.result
  • task.cancel

Dispatch tasks can also carry:

  • priority: urgent | high | normal
  • expiresAt: an ISO-8601 timestamp after which the task should no longer run

If a task.cancel arrives before the ACP agent returns a final answer, the bridge suppresses any later result send for that task.

While ACP execution is in progress, the bridge can:

  • create an AAMP task stream for the task
  • send task.stream.opened
  • append status, progress, and text.delta events
  • forward ACP agent_thought_chunk / agent_message_chunk updates into the AAMP stream in realtime
  • expose tool progress as stream progress labels while the agent is working
  • close the stream before the authoritative task.result or task.help_needed

When acpx supports --format json --json-strict, the bridge consumes the structured ACP NDJSON stream so reasoning / reply chunks can be forwarded live. Older acpx builds automatically fall back to plain-text mode, which preserves compatibility but cannot expose thought chunks incrementally.

Config

Minimal example:

{
  "aampHost": "https://meshmail.ai",
  "rejectUnauthorized": false,
  "agents": [
    {
      "name": "claude",
      "acpCommand": "claude",
      "slug": "claude-bridge",
      "taskDispatchConcurrency": 10,
      "credentialsFile": "~/.aamp/acp-bridge/credentials/claude.json",
      "senderPolicies": [
        {
          "sender": "[email protected]",
          "dispatchContextRules": {
            "project_key": ["proj_123"]
          }
        }
      ]
    }
  ]
}

senderPolicies is optional, but omitted policies do not authorize anyone by default. Use QR pairing or configure at least one policy before sending task.dispatch; matching policies can also enforce exact-match X-AAMP-Dispatch-Context rules. Legacy senderWhitelist configs still load and are normalized into senderPolicies. When editing the senderPoliciesFile directly, pairedAt is optional; the bridge accepts manually added records with just sender and optional dispatchContextRules. credentialsFile is optional. If omitted, the bridge uses ~/.aamp/acp-bridge/credentials/<agent>.json. taskDispatchConcurrency is optional and defaults to 10.

Hermes

Hermes exposes ACP through hermes acp, so its bridge config uses a raw ACP command:

{
  "name": "hermes",
  "acpCommand": "hermes acp",
  "slug": "hermes-bridge"
}

init --agent hermes writes this command automatically when Hermes is installed.