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

@avirajkhare00/agent-commerce-bridge

v0.1.4

Published

Bridge UI for Agent Commerce next to Paperclip

Downloads

425

Readme

Agent Commerce bridge (Paperclip plugin)

Bridge UI for Agent Commerce next to Paperclip: company page at /commerce-bridge (not /commerce, which Paperclip may reserve for its own Commerce operator UI). Includes ping, create payment intent, automation (auto_settle_native_sol, custodial wallet secret, POST /settle), sidebar link “Commerce bridge”, dashboard widget, and worker data/actions.

Published as @avirajkhare00/agent-commerce-bridge on npm.


A — Local path install (dev)

Use this while iterating. The Paperclip server must see the same filesystem as your checkout.

1. Build artifacts (required)

The host loads dist/worker.js. Without a build, activation fails with Worker entrypoint not found.

cd /Users/avirajkhare/hack2/plugins/agent-commerce-bridge
pnpm install
pnpm build

Confirm:

test -f dist/worker.js && echo OK

2. Uninstall broken npm installs (if any)

If you previously installed @paperclipai/plugin-agent-commerce-bridge from npm and it had no dist/, remove it in Board → Settings → Plugins so it does not shadow this plugin.

3. Install by absolute path

Board → Settings → Plugins → Install plugin → paste the plugin root (directory that contains package.json and dist/):

/Users/avirajkhare/hack2/plugins/agent-commerce-bridge

Or API (adjust host/port and auth to your setup):

curl -sS -X POST 'http://127.0.0.1:3100/api/plugins/install' \
  -H 'Content-Type: application/json' \
  -d '{"packageName":"/Users/avirajkhare/hack2/plugins/agent-commerce-bridge","isLocalPath":true}'

4. After code changes

pnpm build

Then reload the plugin (disable/enable) or let the host pick up changes if it watches your path.

5. Instance config

In Plugins → this plugin → configuration, set at least:

  • commerce_api_base_url — Commerce origin only, e.g. http://127.0.0.1:3210
  • commerce_tenant_api_key — Bearer token for Commerce

B — Publish to npm (then install by name)

1. Switch off local tarball SDK (required once)

This repo was scaffolded with file:.paperclip-sdk/*.tgz for @paperclipai/plugin-sdk / @paperclipai/shared. npm consumers will not have those paths.

Before publish, edit package.json:

  1. Remove the entire pnpm.overrides block (or replace overrides with semver only if you still need them).
  2. Replace devDependencies entries that point at file:.paperclip-sdk/... with registry versions, for example:
"devDependencies": {
  "@paperclipai/plugin-sdk": "^1.0.0",
  "@paperclipai/shared": "^0.3.1",
  ...
}
  1. Run pnpm install and pnpm build again.

The worker bundle inlines most of the SDK; keeping matching semver avoids drift with the Paperclip host.

2. Version and visibility

  • Bump version in package.json.
  • Set "private": false when you are ready to publish a scoped public package (or keep private and use a private registry).

3. What gets published

files is set to ["dist", "README.md"] so the tarball only ships built output (not src/ or .paperclip-sdk/).

prepack runs pnpm build before npm pack / npm publish so you do not ship an empty dist/.

4. Publish

pnpm build
npm whoami
npm publish --access public

(Use pnpm publish if you prefer; ensure OTP/registry login as required.)

5. Install in Paperclip by package name

Plugins → Install@avirajkhare00/agent-commerce-bridge (or whatever name you published under).


Optional: publish under @paperclipai/…

To match an internal name like @paperclipai/plugin-agent-commerce-bridge:

  1. Change name in package.json.
  2. Align id in src/manifest.ts with your naming policy (stable across releases).
  3. Publish; existing DB rows for the old plugin id may need a fresh install.

Development commands

pnpm install
pnpm dev            # watch worker + manifest + UI
pnpm dev:ui         # local UI preview (port 4177)
pnpm test
pnpm typecheck

Build options

  • pnpm build — esbuild via @paperclipai/plugin-sdk/bundlers.
  • pnpm build:rollup — rollup preset from the same package.