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

@ktmcp-cli/govukpay

v1.0.0

Published

Production-ready CLI for UK Government payments platform API

Downloads

43

Readme

Banner

"Six months ago, everyone was talking about MCPs. And I was like, screw MCPs. Every MCP would be better as a CLI."

Peter Steinberger, Founder of OpenClaw Watch on YouTube (~2:39:00) | Lex Fridman Podcast #491

GOV.UK Pay CLI

Warning: Unofficial CLI - Not officially sponsored or affiliated with the UK Government Digital Service.

Command-line interface for the GOV.UK Pay API — the UK government's payments platform. Create and manage payments, refunds, and disputes from your terminal.

Installation

npm install -g @ktmcp-cli/govukpay

Setup

govukpay config set --api-key <your-api-key>

Get your API key from the GOV.UK Pay console.

Commands

Config

govukpay config set --api-key <key>
govukpay config show

Payments

# Create a payment
govukpay payments create \
  --amount 1000 \
  --reference "order-001" \
  --description "Service payment" \
  --return-url "https://example.com/return"

# Get a payment
govukpay payments get <payment-id>

# Search payments
govukpay payments search
govukpay payments search --state success
govukpay payments search --reference "order-001"
govukpay payments search --from 2024-01-01 --to 2024-12-31

# Cancel or capture
govukpay payments cancel <payment-id>
govukpay payments capture <payment-id>

# View event history
govukpay payments events <payment-id>

Refunds

govukpay refunds create <payment-id> --amount 500
govukpay refunds list <payment-id>
govukpay refunds get <payment-id> <refund-id>

Disputes

govukpay disputes list
govukpay disputes list --state needs_response
govukpay disputes list --from 2024-01-01

JSON Output

All commands support --json for structured output:

govukpay payments search --state success --json
govukpay refunds list <payment-id> --json
govukpay disputes list --json

Notes

  • Amounts are in pence (e.g. 1000 = £10.00)
  • Payment states: created, started, submitted, success, failed, cancelled, error
  • Dispute states: needs_response, under_review, won, lost

License

MIT