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

@waffo/waffo-integrate

v1.4.0

Published

Claude Code / Cursor skill for integrating Waffo Payment SDK (Node.js / Java / Go / Python)

Readme

waffo-integrate

A Claude Code skill that guides developers through integrating the Waffo Payment SDK into their projects via interactive Q&A.

Install

One command (npm)

# Auto-detect: installs to Claude Code and/or Cursor if detected
npx @waffo/waffo-integrate

# Or specify target explicitly
npx @waffo/waffo-integrate --claude
npx @waffo/waffo-integrate --cursor

Claude Code only

claude /install-skill waffo-com/waffo-integrate

Cursor post-install

After running npx @waffo/waffo-integrate --cursor, add to your .cursorrules (or .cursor/rules/waffo-integrate.mdc):

When the user asks to integrate Waffo SDK, read and follow the instructions in .cursor/skills/waffo-integrate/SKILL.md.
Load reference files from .cursor/skills/waffo-integrate/references/ as directed by SKILL.md.

Manual (any AI coding assistant)

Copy the SKILL.md and references/ directory into your project. Point your AI assistant to read SKILL.md when integrating Waffo SDK.

What it does

An 7-step interactive wizard that:

  1. Detects language — Node.js / Java / Go / Python (auto-detect or ask)
  2. Checks project status — existing project or new scaffold
  3. Selects features — payments, refunds, subscriptions (webhook auto-derived)
  4. Picks framework — Express, Spring Boot, Gin, FastAPI, etc.
  5. Previews code — shows complete integration code for review
  6. Writes to project — installs SDK dependency + generates files
  7. Verifies integration — phased end-to-end testing with Markdown acceptance report

Built-in safeguards

31 API contract rules prevent common integration mistakes:

  • UUID request IDs exceeding 32-character limit
  • Subscription field name confusion (currency vs orderCurrency)
  • Missing required fields (payMethodType, userTerminal, goodsInfo)
  • Invalid enum values (YEARLY is not a valid periodType)
  • Webhook Content-Type not set (text/plain instead of application/json)
  • All 5 webhook handlers must implement three-stage pattern (idempotency + lock + transaction)
  • All 7 write operations must catch WaffoUnknownStatusError
  • Refund currency must match original order currency
  • Currency parameterization for multi-currency projects

Integration verification (Step 7)

Phased test execution with automatic fix-and-retry:

  • Phase A — Core tests: order-create, payment-success/failure, webhook-idempotency
  • Phase B1/B2 — Pay method coverage: card + non-card (minimum test set from API discovery)
  • Phase C1 — Refund tests
  • Phase C2 — Subscription lifecycle tests
  • Phase D — Passive verification (21 code review items) + Go-Live questionnaire + Markdown report

Active checklist (C1-C8) + 21 passive verification items + Sandbox knowledge base (K024-K030).

Progressive disclosure

Only the main SKILL.md is loaded initially (~380 lines). Language-specific templates, verification protocol, and reference files are loaded on demand, saving tokens.

waffo-integrate/
├── SKILL.md                              # Integration flow + 31 rules (~380 lines)
├── references/
│   ├── api-contract.md                   # Field definitions + status handling
│   ├── node.md                           # Node.js/TypeScript templates
│   ├── java.md                           # Java/Spring Boot templates
│   ├── go.md                             # Go templates
│   ├── python.md                         # Python (FastAPI/Flask/Django) templates
│   ├── integration-verification.md       # Step 7 verification protocol
│   ├── acceptance-criteria.md            # Test cards, Playwright scripts, report template
│   ├── sandbox-knowledge.md              # Sandbox quirks (K024-K030)
│   └── business-validation.md            # Passive verification checklist
├── docs/
│   └── INDEX.md                          # Knowledge base index + remote fallback
└── evals/
    └── evals.json                        # 8 eval scenarios, 36 assertions

Evaluation results

Built and tested with Anthropic's official skill-creator plugin. 8 scenarios, 36 assertions:

| Eval | Scenario | Assertions | Result | |------|----------|-----------|--------| | 1 | Node.js payment + refund | 4 | PASS | | 2 | Node.js subscription | 5 | PASS | | 3 | Java Spring Boot webhook | 5 | PASS | | 4 | Go integration verification | 5 | PASS | | 5 | Go full features (webhook auto-derive) | 4 | PASS | | 6 | Node.js payment only (no subscription filter) | 3 | PASS | | 7 | Subscription event selection guidance | 3 | PASS | | 8 | Python FastAPI payment + refund + webhook | 7 | — |

Requirements

  • Claude Code, Cursor, or any AI coding assistant that can read markdown instructions
  • A Waffo merchant account (for Sandbox testing)

License

MIT