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

@cheqi/cli

v0.3.1

Published

Cheqi CLI for agent-friendly encrypted receipt workflows

Readme

Cheqi CLI

Agent-friendly CLI wrapper around @cheqi/sdk.

Every command returns a JSON envelope on stdout:

{
  "ok": true,
  "data": {},
  "meta": {
    "durationMs": 12,
    "version": "0.2.0"
  }
}

Failures use the same shape and include stable error codes:

{
  "ok": false,
  "error": {
    "code": "SESSION_NOT_FOUND",
    "message": "No Cheqi session found for agent-a. Run cheqi session create --session agent-a first.",
    "retryable": false,
    "details": {
      "sessionId": "agent-a"
    }
  },
  "meta": {
    "durationMs": 4,
    "version": "0.2.0"
  }
}

Incremental Session Workflow

cheqi session create \
  --session agent-a \
  --currency EUR \
  --document-number INV-001 \
  --card-par YOUR_CARD_PAR

cheqi receipt add-product \
  --session agent-a \
  --name "Nike Shoes" \
  --price-incl 200 \
  --vat 21

cheqi receipt validate --session agent-a
cheqi receipt preview --session agent-a
CHEQI_API_KEY=sk_test_... cheqi receipt finalize --session agent-a

Drafts are stored locally in .cheqi/sessions/<session-id>.json. Sessions are always explicit; pass --session on every command so concurrent agents do not share implicit state.

To call the Cheqi matching service before adding products:

CHEQI_API_KEY=sk_test_... cheqi session match \
  --session agent-a \
  --card-par YOUR_CARD_PAR

Direct JSON Workflow

CHEQI_API_KEY=sk_test_... npx @cheqi/cli receipts submit \
  --match-by card_par \
  --match-value YOUR_CARD_PAR \
  --receipt receipt.json

Use --receipt - to read the receipt JSON from stdin.

Machine-Readable Schema

Agents can discover commands, flags, valid enum values, and response names without parsing human help text:

cheqi schema
cheqi schema receipt validate
cheqi receipt add-product --help

Schema entries include flags, positional, and responseSchema so an agent can construct commands and validate expected output without probing the command first.

Operational responses include a structured nextStep when another command is expected:

{
  "command": ["receipt", "validate"],
  "requiredFlags": ["session"],
  "optionalFlags": [],
  "hint": "Validate locally before finalizing."
}

Authentication

Use either:

CHEQI_API_KEY=sk_test_...

or:

CHEQI_ACCESS_TOKEN=...

Do not set both for the same command.

Publishing

The GitHub Actions Publish npm package workflow publishes @cheqi/cli to npm. Run it manually with:

  • version: the package version to publish, for example 0.2.0
  • dist-tag: latest or next

Before the CLI can be published, @cheqi/sdk must already exist on npm at a compatible version. Configure the repository secret NPM_TOKEN with publish access for the @cheqi/cli package.

npm view @cheqi/[email protected] version
npm view @cheqi/[email protected] version