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

bb-plugin-amp

v0.2.1

Published

Runs Amp locally or in an Orb as one bb provider through a bundled ACP bridge built on the official @ampcode/sdk.

Readme

Amp

Run Amp in a bb thread, like any built-in provider.

bb ≥ 0.36 macOS · Linux needs Amp CLI

bb talks to coding agents over the Agent Client Protocol. This plugin makes Amp one of them.

It ships its own ACP bridge, built on the official @ampcode/sdk. Amp appears in bb's provider list, runs against your bb environment by default, and can run in an Amp Orb cloud sandbox instead when you ask for one.

Install

First make sure the Amp CLI is installed and signed in — the plugin drives it and cannot install or authenticate it for you:

amp --version
amp login

From npm — one command:

bb plugin install npm:@smsunarto/bb-plugin-amp

From source — clone the repo and install the plugin as a local path source. This is also how you install a change that is not released yet:

git clone https://github.com/smsunarto/bb-plugins.git
cd bb-plugins
bun install
bun run --filter '@smsunarto/bb-plugin-amp' build
bb plugin install ./plugins/amp

Requirements

  • bb ≥ 0.36, on macOS or Linux
  • The Amp CLI, installed (get started) and authenticated with amp login, or AMP_API_KEY set on the provider entry. The plugin locates and drives the CLI; it cannot install or sign in to it for you
  • An Amp account

Usage

Pick Amp in bb's provider list and start a thread. Everything below is optional.

Local and Orb

Amp runs against the bb environment's working directory. To use Amp Orb instead, put /orb in the first prompt of a new thread:

/orb refactor the payment retry logic

Local or Orb is fixed for the life of the thread. A /orb in a later prompt will not move an existing thread, so start a new one. Later prompts in an Orb thread do not need the token.

An Orb thread shows a bar above the composer with the Amp thread id and a copyable amp sync T-… command. Run that in a local checkout to mirror the Orb's live working-tree changes. Orb brings its own tools, permissions, skills, and MCP config; bb terminals, files, and diffs still point at the bb environment you selected.

Modes

Amp's four modes — low, medium, high, ultra — appear in bb's model picker, each labelled with the models behind it as <agent> · <oracle>.

The Oracle card

When Amp calls its Oracle sub-agent, the thread shows a collapsible card with the request, the response, and a trace that streams while it runs.

Diagnostics

A healthy install does not need this command.

| Command | What it does | |---|---| | bb amp status | Print every link in the chain: Amp CLI, bridge bundle, node runtime, config entry, logo, and provider registration |

$ bb amp status
Amp CLI: /Users/you/.local/bin/amp
bridge bundle: /path/to/plugins/amp/dist/bridge.js
node runtime: /Applications/bb.app/Contents/MacOS/bb (Electron; entry sets ELECTRON_RUN_AS_NODE=1)
config entry acp-amp: present
obsolete config entry acp-amp-orb: absent
logo: present
bb provider acp-amp: registered
auth: handled by the Amp CLI — run `amp login` once, or set AMP_API_KEY in the entry env

Troubleshooting

| Symptom | Fix | |---|---| | Plugin shows "needs configuration" | Install the Amp CLI, run amp login, then bb plugin reload amp | | Amp is not in the provider list | bb amp status names the broken link | | Auth errors in a thread | amp login, or add AMP_API_KEY to the provider entry's env | | "Could not find a usable Amp CLI" | The recorded AMP_CLI_PATH no longer exists. Reinstall Amp, then run bb plugin reload amp | | Local tool calls silently rejected | Amp's permission rules denied them — the bridge posts a notice naming the tools. Set permission to bypass, or adjust Amp's own settings | | Orb tool calls rejected | Change the permission settings in the Amp project | | Orb opens the wrong repository | Add AMP_ACP_ORB_PROJECT to the provider entry and start a new thread with /orb | | /orb is rejected in a thread | That Amp thread is already Local. Start a new bb thread with /orb in its first prompt | | Unknown session <id> on resume | The session mapping was pruned or removed. Start a new thread |

Develop from source

Install from source as shown under Install. bun run build in plugins/amp produces dist/bridge.js alongside dist/server.js and dist/app.js.

Never run npm install inside plugins/amp. The root overrides entry that keeps the real @ampcode/cli out of the tree only applies at the workspace root, and a leaf install makes @ampcode/sdk prefer a CLI the plugin did not configure.

bb plugin install . and bb plugin dev rebuild the frontend in place from the published manifest entry, which drops the authored rules from dist/app.css. Run bun run build again afterwards.

bun run typecheck
bun run test                # needs Node ≥ 22.6

Unit tests drive the bridge with scripted async generators, so they need no Amp CLI and no network. The stdio test spawns the real dist/bridge.js and does a JSON-RPC initialize round-trip, skipping itself when the bundle is unbuilt.