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

@cards-for-agents/checkout

v0.1.0

Published

Local Playwright-driven Postable checkout for cards-for-agents orders. Invoke from Claude Code or any agent with bash access to complete an order end-to-end without routing card data through a server.

Downloads

53

Readme

@cards-for-agents/checkout

Local Playwright-driven Postable checkout for cards-for-agents orders.

Designed to be invoked by an agent with bash access (Claude Code, Cursor, Warp Agent, etc.) to finish an order end-to-end without routing card data through any server. Card details flow: your terminal → this CLI → local Playwright → Stripe's iframe on Postable's page. Our servers never see them.

Install / run

You don't install — your agent runs it on demand:

npx @cards-for-agents/checkout --order-id <uuid>

First run downloads Chromium (~140 MB). Subsequent runs start in ~2 seconds.

Passing card details

Two equally safe options. Pick whichever fits your agent.

Env vars

CFAC_CARD_NUMBER=4432522629186373 \
CFAC_CARD_EXP=08/26 \
CFAC_CARD_CVC=434 \
CFAC_CARD_NAME='Nicolas Goldberg' \
CFAC_CARD_ZIP=94123 \
npx @cards-for-agents/checkout --order-id <uuid>

Stdin (JSON)

echo '{"number":"4432...","exp":"08/26","cvc":"434","name":"Nicolas Goldberg","zip":"94123"}' \
  | npx @cards-for-agents/checkout --order-id <uuid> --card-stdin

Flags

  • --order-id <uuid> — required. The order to finish (from POST /v1/orders).
  • --api <url> — override the API base. Default https://api.cards-for-agents.com.
  • --dry-run — walk through the Postable flow but stop before clicking Place order. No charge. Useful for first-run validation.
  • --headed — show the browser while it drives (for debugging).
  • --card-stdin — read card JSON from stdin instead of env vars.

End-to-end flow

  1. Compose the order via https://cards-for-agents.com's REST or MCP (search_cards → create_order → set_card → compose_message → set_recipient → set_sender). Keep the order id.
  2. Preview the order (optional but recommended). Open https://api.cards-for-agents.com/preview/<id>?token=<token> and verify.
  3. Run this CLI. It calls GET /v1/orders/<id>/plan to fetch the composed data, drives Postable in a local Playwright browser, declines any gift upsells, asserts the cart contains exactly [1 card, 1 stamp], types the card into Stripe, submits.
  4. Output — JSON on stdout with the confirmation URL, detected order number, and raw Stripe/Postable submit responses.

Safety guards

  • Before submitting, the CLI runs assertCartSanity — verifies the cart total is under $10 and contains exactly [1 card, 1 stamp, 0 other]. If a gift or add-on snuck in, the run aborts before any charge.
  • --dry-run stops before the final submit button and reports cart state.
  • Card data is never written to disk, logs, or process.stdout. Errors report page.url() and the Stripe response preview but not the card.

Scope in v1

  • US recipient only.
  • Single Mother's Day folded card.
  • No photo upload, no bulk orders.
  • Postable's invisible reCAPTCHA on /cart usually passes a real-browser Playwright session; if not, fall back to paying on Postable manually via the preview page's "Paying yourself?" link.