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

@aureahub/agent-pay

v0.1.0

Published

Aurea agentic-payments SDK + embeddable commerce widget (Product A).

Readme

@aureahub/agent-pay

Aurea agentic-payments SDK + embeddable commerce widget (Product A). Lets a company integrate AI-assisted checkout that settles into its Aurea Pay account — the same way @aureahub/pay integrates payments.

Install

npm install @aureahub/agent-pay

SDK (typed API client)

import { createClient } from '@aureahub/agent-pay'

const client = createClient({
  baseUrl: 'https://api.aureahub.com',
  token: '<session token>', // or merchantKey: '<scoped key>'
})

// Merchant: publish a product feed for a merchant agent.
await client.feed(agentId, [
  { sku: 'TSHIRT', name: 'T-Shirt', price: '19.99', currency: 'EUR' },
])

// Shopper/agent: build a cart -> cart mandate -> settle (split optional).
const session = await client.createCheckout({
  agentId,
  items: [{ sku: 'TSHIRT', quantity: 2 }],
})
const result = await client.completeCheckout(session.checkoutId, {
  recipient: '0xMERCHANT_PAYOUT',
  splits: [
    { partyType: 'merchant', recipient: '0xMERCHANT', amount: '37.98' },
    { partyType: 'fee', recipient: '0xPLATFORM', amount: '2.00' },
  ],
})

Every checkout is locked as a cart mandate and settled through the Aurea policy engine (spend controls, KYA, step-up). Totals are computed server-side with exact decimal arithmetic.

Embeddable widget

<div id="aurea-widget"></div>
<script src="https://cdn.aureahub.com/agent-pay/widget.global.js"></script>
<script>
  const client = AureaAgentPay.createClient({ baseUrl: 'https://api.aureahub.com', token })
  AureaAgentPay.mountWidget('#aurea-widget', {
    client,
    agentId: 'MERCHANT_AGENT_ID',
    merchantRecipient: '0xMERCHANT_PAYOUT',
  })
</script>

The widget is Aurea-branded, shows the EU AI-Act disclosure, and renders the product list → cart → policy-gated checkout. See demo.html.

Pay by card (Stripe)

Set enableCard: true to add a Pay by card button. Card checkout opens a hosted Stripe Checkout Session and redirects the shopper, so buyers without an Aurea wallet can pay by card; funds settle to the merchant's connected account. Crypto checkout remains the other option.

AureaAgentPay.mountWidget('#aurea-widget', {
  client, agentId, merchantRecipient,
  enableCard: true,
  successUrl: 'https://shop.example/done',
  cancelUrl: 'https://shop.example/cart',
})

Embeddable merchant management

Merchants can manage their account + agent from inside an external app such as Aurea Pay — no Aurea admin needed.

<div id="aurea-manage"></div>
<script src="https://cdn.aureahub.com/agent-pay/manage.global.js"></script>
<script>
  const client = AureaAgentManage.createManagementClient({
    baseUrl: 'https://api.aureahub.com', token,
  })
  AureaAgentManage.mountDashboard('#aurea-manage', { client })
</script>

createManagementClient is the typed API surface (agents, policies, mandates, credentials, feed, analytics, tenant enablement). mountDashboard renders a branded dashboard: enablement toggle, agents (create + per-agent spend policy), and recent spend. See demo-manage.html.

Build

npm run build   # dist/index.{js,cjs,d.ts} + widget.global.js + manage.global.js
npm test