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/cli

v0.7.8

Published

CLI for ASG Card — manage virtual MasterCard cards for AI agents from the terminal

Downloads

4,494

Readme

@asgcard/cli

Command-line interface for ASG Card — virtual MasterCard cards for AI agents, powered by x402 on Stellar.

Quick Start

# Full onboarding (wallet + MCP + skill)
npx @asgcard/cli@latest onboard -y --client codex

# Or step by step:
npx @asgcard/cli@latest wallet create          # Generate Stellar keypair
npx @asgcard/cli@latest wallet info            # Check balance
npx @asgcard/cli@latest install --client codex # Configure MCP
npx @asgcard/cli@latest card:create -a 10 -n "AI Agent" -e [email protected] -p "+1234567890"

Commands

Onboarding

| Command | Description | |---------|-------------| | asgcard wallet create | Generate a new Stellar keypair, save to ~/.asgcard/ | | asgcard wallet import [key] | Import an existing Stellar secret key | | asgcard wallet info | Show public key, USDC balance, deposit instructions | | asgcard install --client <c> | Configure MCP for codex, claude, or cursor | | asgcard onboard [-y] [-c client] | Full onboarding: wallet + MCP + skill + next step | | asgcard doctor | Diagnose setup (key, API, RPC, balance, MCP configs) |

Card Management

| Command | Description | |---------|-------------| | asgcard cards | List all your virtual cards | | asgcard card <id> | Get card summary | | asgcard card:details <id> | Get sensitive card info (PAN, CVV, expiry) | | asgcard card:create -a <amt> -n <name> -e <email> -p <phone> | Create a new card (x402 payment) | | asgcard card:fund <id> -a <amt> | Fund an existing card | | asgcard card:freeze <id> | Freeze a card | | asgcard card:unfreeze <id> | Unfreeze a card |

Stripe MPP (Fiat Payments)

| Command | Description | |---------|-------------| | asgcard stripe:session <email> | Create a Stripe beta session | | asgcard stripe:request -a <amt> -n <name> -e <email> -p <phone> | Create a payment request | | asgcard stripe:wait <requestId> | Poll until card is issued |

Telegram Notifications

| Command | Description | |---------|-------------| | asgcard telegram:link | Generate a deep-link to connect Telegram notifications | | asgcard telegram:status | Check if Telegram is connected for this wallet | | asgcard telegram:revoke | Disconnect Telegram — stops all notifications |

How it works: Run telegram:link → send the generated deep-link to the card owner → owner clicks it in Telegram → bot binds their account → owner receives real-time alerts for charges, declines, refunds, and top-ups.

Info

| Command | Description | |---------|-------------| | asgcard pricing | View pricing (no auth required) | | asgcard health | API health check (no auth required) | | asgcard whoami | Show your wallet address | | asgcard login [key] | Save Stellar key (legacy, use wallet import) |

Transaction History & Analytics

| Command | Description | |---------|-------------| | asgcard transactions <id> | View card transaction history (real 4payments data) | | asgcard balance <id> | Get live card balance from 4payments | | asgcard history | Show all cards with live balances for your wallet |

Authentication

The CLI uses Stellar wallet signature authentication — no API keys needed. Your Stellar secret key is stored in ~/.asgcard/wallet.json (mode 0600).

Key resolution priority (same as MCP server):

  1. STELLAR_PRIVATE_KEY environment variable
  2. ~/.asgcard/wallet.json (from asgcard wallet create/import)
  3. ~/.asgcard/config.json (from asgcard login — legacy)

Card Creation

Card creation and funding use the x402 protocol — payments happen on-chain in USDC on Stellar. The transaction is built and signed locally, then sent via the x402 facilitator.

Card issuance: $10. Top-up fee: 3.5%. Any amount from $5 to $5,000.

Configuration

Config is stored in ~/.asgcard/:

  • config.json — API URL, RPC URL, private key
  • wallet.json — Stellar keypair (from wallet create/import)

Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | STELLAR_PRIVATE_KEY | — | Stellar secret key (overrides config) | | ASGCARD_API_URL | https://api.asgcard.dev | API base URL | | STELLAR_RPC_URL | https://mainnet.sorobanrpc.com | Soroban RPC URL |

Error Handling

All errors show remediation guidance:

❌ No Stellar private key configured.

To fix this, do one of:

  asgcard wallet create    — generate a new Stellar keypair
  asgcard wallet import    — import an existing key
  asgcard login <key>      — save a key directly