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

@codigoconelmer/gastly-cli

v1.0.5

Published

CLI for Gastly personal finance tracker — manage transactions, debts, and budgets from the terminal.

Downloads

846

Readme

@codigoconelmer/gastly-cli (gastly-cli)

Node CLI for Gastly — personal finance tracker. Manage transactions, debts, budgets, and accounts from the terminal. Designed for both human use and AI agents.

npm package: @codigoconelmer/gastly-cli. Binary name: gastly-cli.

Install

npm install -g @codigoconelmer/gastly-cli
gastly-cli --version
gastly-cli --help

Or run without installing:

npx @codigoconelmer/gastly-cli --help

Package page: https://www.npmjs.com/package/@codigoconelmer/gastly-cli

Setup (from this repo)

cd cli
pnpm install
pnpm build

# optional: link globally
pnpm link --global

Configure and sign in

# Auto-read from .env.local
gastly-cli init --from-env ../.env.local

# Or explicit values
gastly-cli init --url https://yadpullgqqehyusoonxs.supabase.co --key <publishable-key>

# Sign in
gastly-cli login --email [email protected]
gastly-cli whoami
gastly-cli logout

Config and session live under ~/.gastly/ with 0600 file modes. Authenticated commands auto-refresh tokens before each request.

Commands

Transactions

# Create expense
gastly-cli transactions new --type expense --amount 100 -d "Groceries"

# Create income
gastly-cli transactions new --type income --amount 5000 -d "Salary"

# With options
gastly-cli transactions new --type expense --amount 50 -d "Lunch" \
  --category "Food" --date 2026-09-08 --notes "With team"

# List recent
gastly-cli transactions list
gastly-cli transactions list --month 2026-09 --type expense --limit 10

# Search by description
gastly-cli transactions search "groceries"

# Update
gastly-cli transactions update <id> --amount 150 -d "Updated description"

# Delete (with confirmation)
gastly-cli transactions delete <id>
gastly-cli transactions delete <id> --yes

Categories

gastly-cli categories list
gastly-cli categories list --type expense
gastly-cli categories list --json

Accounts

gastly-cli accounts list
gastly-cli accounts list --json

Balance

Account balances grouped by currency (PEN/USD):

gastly-cli balance
gastly-cli balance --json

Budget

Budget vs actual spending for the month:

gastly-cli budget
gastly-cli budget --month 2026-09
gastly-cli budget --json

Debts

All debts in one view — loans, installments, custody, and recurring payments:

gastly-cli debts
gastly-cli debts --json

Output includes:

  • Loans borrowed (I owe) — grouped by currency
  • Loans lent (they owe me) — grouped by currency
  • Installments — pending payments
  • Custody — amounts held for others
  • Recurring payments — this month's expenses

JSON Output

All commands support --json for machine-readable output. Use with jq or pipe to AI agents:

gastly-cli debts --json | jq '.loansBorrowed'
gastly-cli transactions list --json | jq '.[] | select(.type == "expense")'

Currency

Transactions are PEN (Peruvian Sol) by default. Loans and accounts support PEN, USD, and MXN.

Agent Usage

This CLI is designed for AI agents. See SKILL.md for agent-specific patterns.

Quick examples:

# Record an expense
gastly-cli transactions new --type expense --amount 100 -d "Groceries" --json

# Check debts
gastly-cli debts --json

# Monthly summary
gastly-cli transactions list --month 2026-09 --json

Tests

cd cli
pnpm test

Unit tests validate flag parsing, config/session parsing, and formatting. They do not call the live backend.

License

MIT — see LICENSE.