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

@asgcard/fund

v1.0.3

Published

Generate ASG Pay payment links for AI agent funding — CLI & programmatic API. Zero dependencies.

Readme

@asgcard/fund

Generate ASG Pay payment links for AI agent funding — CLI & programmatic API

npmStar us on GitHub

What is this?

A zero-dependency CLI tool and Node.js API that generates payment links for ASG Pay — the universal pay-in gateway for AI agents on Stellar.

Users who open the link can fund your agent's wallet via:

  • 💳 Credit/Debit Card (Stripe)
  • 🌉 Cross-chain Bridge (ROZO — ETH, SOL, USDC from any EVM chain)
  • Direct Stellar (Freighter wallet)

Prerequisites (For AI Agents)

To receive funds, your agent needs a Stellar wallet address.

Don't have one? Install the ASG Card agent skill & CLI to generate a secure wallet instantly:

npx @asgcard/cli install

Quick Start

npx @asgcard/fund --address GDQP2KPQ... --amount 100

Output:

  🔗 ASG Pay — Payment Link Generated
  ─────────────────────────────────────
  Agent:   Agent
  Amount:  100 USDC
  To:      GDQP2KPQ…YSHWM

  https://fund.asgcard.dev/?agentName=Agent&toAddress=GDQP2KPQ...&toAmount=100&toToken=USDC

  Share this link with the user to collect payment.
  Supports: Credit Card • Bank Transfer • Crypto Bridge • Stellar Direct

CLI Options

npx @asgcard/fund \
  --address GDQP2KPQ...    # Stellar public key (required)
  --amount 50               # Amount in USDC (required)
  --agent "Trading Bot"     # Agent display name
  --token USDC              # Token: USDC, USDT, XLM, SOL, ETH, BTC, DAI, EURC
  --redirect https://...    # Redirect URL after payment
  --json                    # Output as JSON (for scripting)
  --api                     # Validate via server API
  --help                    # Show help

Programmatic API

import { generateFundLink } from '@asgcard/fund';

const { url, params } = await generateFundLink({
  agentName: 'Trading Bot',
  toAddress: 'GDQP2KPQGKIHIQAEFHQ3XNKFYJVXVSHRQEB37AIR6T3JZWNM7YSHWM',
  toAmount: 100,
  toToken: 'USDC',
  redirectUrl: 'https://myapp.com/callback',
});

console.log(url);
// → https://fund.asgcard.dev/?agentName=Trading+Bot&toAddress=GDQP...&toAmount=100&toToken=USDC

Options

| Option | Type | Required | Default | Description | |--------|------|----------|---------|-------------| | toAddress | string | ✅ | — | Stellar public key (G..., 56 chars) | | toAmount | number | ✅ | 50 | Amount in token units | | agentName | string | — | "Agent" | Display name shown to payer | | toToken | string | — | "USDC" | Token to receive | | redirectUrl | string | — | — | HTTPS redirect after payment | | useApi | boolean | — | false | Validate via server API |

Server-validated mode

const result = await generateFundLink({
  toAddress: 'GDQP...',
  toAmount: 100,
  useApi: true, // calls fund.asgcard.dev/api/generate-link
});

MCP Integration

This package exports an MCP tool schema for AI agent frameworks:

import { mcpToolSchema } from '@asgcard/fund';

// Register as an MCP tool
server.tool(mcpToolSchema.name, mcpToolSchema.inputSchema, async (args) => {
  const result = await generateFundLink(args);
  return { content: [{ type: 'text', text: result.url }] };
});

How It Works

Your Agent → generates URL → User opens link → Pays via card/bridge/stellar → Agent wallet funded

ASG Pay handles all payment processing, currency conversion, and Stellar settlement automatically. Your agent just needs to generate the link and share it.

Related Packages

| Package | Description | |---------|-------------| | @asgcard/sdk | Full SDK — create cards, manage wallets | | @asgcard/cli | CLI toolkit — onboarding, MCP install | | @asgcard/mcp-server | MCP server for Claude, Codex, Cursor |

License

MIT