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

@go-labs-sg/bb

v1.2.1

Published

Budget Builder CLI — list budgets, bills, approvals, suppliers; approve bills; change status. For AI agents (e.g. Chuck/OpenClaw).

Readme

bb

Command-line interface for Budget Builder. Call budgets, bills, approvals, suppliers, dashboard, and more from your terminal or from tools that don’t support MCP (e.g. some AI agents). Responses are JSON on stdout.

Registry: @go-labs-sg/bb

Requirements

  • Node.js 18+ (ESM; relative imports in dist use .js extensions)
  • A Budget Builder API key (same key used for the MCP server)

Install

npm install -g @go-labs-sg/bb

Or run without installing:

npx @go-labs-sg/bb <command>

Authentication

Set your API key before running commands:

export BB_API_KEY=<your-key>

Create or revoke keys in the web app: Goracle → API Keys (MCP API keys).

The CLI talks to the production API: https://budget-builder.getout.events.

Usage

bb help
bb list-budgets
bb get-budget <budget-id>
bb update-budget-status <budget-id> <status>
bb list-bills
bb approve-bill <bill-id>
bb list-approvals
bb list-suppliers

Global options and flags use --key=value or --key value (see bb help).

Authoritative command list: run bb help — it includes every command, positional args, and flags. MCP exposes a subset of the same tRPC surface; the CLI additionally includes a few procedures mainly used by the web UI (e.g. reorder-budget-items, update-budget-item-supplier). You can also use MCP-style snake_case (e.g. bb list_bills); it is normalized to kebab-case.

Mutations with --payload: Commands such as create-budget, create-bill, update-supplier, etc. take a single JSON object (--payload '<json>') matching the corresponding tRPC procedure input. Use ISO strings for date/datetime fields; the CLI coerces them where needed. The API still validates the full shape.

Command overview

| Area | Commands (non-exhaustive) | | --- | --- | | Budgets | list-budgets, get-budget, get-budget-items, get-budget-details, get-budget-categories, get-budget-versions, update-budget-status, create-budget / update-budget (--payload), delete-budget, create-budget-approval, add-budget-items, update-budget-item, remove-budget-item, reorder-budget-items, update-budget-item-supplier, create-budget-category, update-budget-category, delete-budget-category, update-budget-commission, update-budget-discount (--payload where noted) | | Bills | list-bills, list-claims, create-bill (--payload), update-bill (--payload), delete-bill, create-bill-approval, update-bill-status, patch-bill-payment, patch-bill-invoice-number, get-bill-attachments, get-bill-details | | Approvals | list-approvals / get-pending-approvals, approve-bill, reject-bill, approve-budget, reject-budget, approve-supplier, reject-supplier | | Companies & projects | list-companies, get-company, create-company, update-company (--payload), delete-company, list-projects, get-project, create-project (optional --requestQboAccountantNotification false to skip QBO accountant emails), update-project (--payload, optional requestQboAccountantNotification in JSON), delete-project, update-project-status | | Contacts | list-contacts, create-contact-person (--payload), update-contact-person (--payload) | | Suppliers & items | list-suppliers, create-supplier (--payload), update-supplier (--payload), delete-suppliers (--ids CSV; admin), create-certification / create-payment-method / create-supplier-role / create-supplier-tag (--name), get-supplier-details, get-supplier-analytics, list-items, create-item (--payload), update-item (--payload), delete-item, get-item, list-item-categories, create-item-category, update-item-category, delete-item-categories (--ids CSV; admin) | | Dashboard & users | list-users, get-user-performance, get-dashboard, get-monthly-metrics, get-system-overview, get-estimate-performance, get-financial-overview | | Errors | get-recent-errors, get-error-metrics | | Historical / benchmarks | get-approved-budgets, get-budget-category-benchmarks, get-item-pricing-history, get-supplier-pricing-history |

Output

  • Stdout: JSON (pretty-printed)
  • Stderr: Error objects as JSON on failure
  • Exit code: 0 on success, 1 on error

A .env file in the current working directory is loaded automatically (for BB_API_KEY, etc.).

Developing in this repo

From the monorepo root (after bun install):

export BB_API_KEY=...
bun run bb -- list-budgets

Or from packages/cli:

bun run build          # emit dist/ via tsc
bun run typecheck      # tsc --noEmit
bun run src/index.ts list-budgets

Layout

  • src/prisma-enums.ts — Prisma enum string values for runtime; mirror packages/db/src/generated/prisma/enums.ts after schema changes.
  • src/filter-enums.ts — “extended” filter enums (ALL + Prisma enums). Keep in line with packages/utils/src/filter-enums.ts when those values change.

Publish

prepublishOnly strips workspace: / catalog: entries from this package’s package.json, runs tsc, then postpack restores the file — so the npm tarball does not contain monorepo protocol dependencies. Types from @bb/api are compile-time only (import type). Prisma enum values used at runtime live in src/prisma-enums.ts (kept in sync with packages/db generated enums) so npm installs do not need @bb/db.