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

penny-pincer

v0.1.0

Published

Agent-friendly CLI for reading bank data through Plaid.

Readme

Penny Pincer

Penny Pincer is an agent-friendly CLI for connecting a bank account with Plaid and reading account data as JSON.

npx penny-pincer auth
npx penny-pincer accounts
npx penny-pincer balances
npx penny-pincer transactions --days 30

Setup

The default CLI flow uses the hosted Penny Pincer backend:

npx penny-pincer auth

The backend creates Plaid Link tokens, exchanges public tokens, and proxies Plaid data requests. The CLI stores an encrypted token envelope and a local signing key at ~/.penny-pincer/config.json.

If you deploy your own backend, point the CLI at it:

export PENNY_PINCER_API_URL=https://your-vercel-app.vercel.app
npx penny-pincer auth

Production Plaid is the default for the hosted backend. For sandbox testing, pass --env sandbox:

npx penny-pincer auth --env sandbox

Commands

  • penny-pincer auth opens Plaid Link, exchanges the public token through the backend, and saves local token metadata.
  • penny-pincer accounts prints linked accounts.
  • penny-pincer balances prints accounts with balances.
  • penny-pincer transactions --days 30 prints recent transactions.
  • penny-pincer identity prints account owner identity data when the product is enabled.
  • penny-pincer numbers prints ACH/routing data when the Plaid auth product is enabled.
  • penny-pincer status prints local connection metadata without exposing the access token.
  • penny-pincer logout removes the saved local token.

All data commands print JSON so another agent or script can parse them directly.

Security Notes

The hosted backend stores your Plaid app credentials in Vercel environment variables. It does not need to store per-user Plaid access tokens. Instead, it returns an encrypted token envelope to the CLI. Data commands send that envelope back with a signed request; the backend decrypts the envelope just long enough to call Plaid.

Penny Pincer stores the encrypted envelope and a local private signing key in ~/.penny-pincer/config.json with 0600 file permissions. Treat that file like a password. If someone steals the full file, they can query data until you revoke the Plaid Item or rotate backend encryption keys.

Vercel Backend

Deploy this repository to Vercel and set:

PLAID_CLIENT_ID=your-client-id
PLAID_SECRET=your-secret
PLAID_SANDBOX_SECRET=your-sandbox-secret
PLAID_ENV=production
PLAID_REDIRECT_URI=https://penny-pincer.vercel.app/oauth-return
PENNY_PINCER_ENCRYPTION_KEY=at-least-32-random-bytes
PENNY_PINCER_TOKEN_KEY_VERSION=v1

Generate a strong encryption key with:

openssl rand -base64 32

The Vercel API exposes:

  • POST /api/link-token
  • POST /api/exchange
  • POST /api/accounts
  • POST /api/balances
  • POST /api/transactions
  • POST /api/identity
  • POST /api/numbers

Bring Your Own Plaid App

You can still run the CLI without the hosted broker by using local Plaid credentials:

export PLAID_CLIENT_ID=your-client-id
export PLAID_SECRET=your-secret
export PLAID_ENV=sandbox
npx penny-pincer auth --direct-plaid

Development

npm install
npm run typecheck
npm run build
npm run dev -- status

Publishing is intentionally left to the package owner:

npm login
npm publish