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

@usefin/plugin-accounting

v0.1.0

Published

Accounting provider plugins for fin CLI

Readme

@usefin/plugin-accounting

Accounting provider plugins for the fin CLI. Only supported (GA) providers are exposed (Xero, QuickBooks, FreshBooks, Zoho Books). Adds list, get, create, update, and delete commands using the shared command grammar. When authenticated, commands use the real provider API; use --data '{"key":"value"}' for create and update.

Installation

The plugin is included when you install the main usefin CLI. To use it as a dependency:

pnpm add @usefin/plugin-accounting @usefin/cli

Or from the monorepo: the core package already lists @usefin/plugin-accounting in oclif.plugins.

Auth setup

Accounting providers use either OAuth2 or API key depending on the provider.

  • API key: usefin auth:login <provider> --api-key YOUR_KEY (e.g. Wafeq, Tripletex, RealBooks, TrulySmall, Built Accounting).
  • OAuth2: usefin auth:login <provider> --interactive (browser-based flow; implementation may vary per provider).

Check status:

usefin auth:status
usefin doctor

Usage

All commands support --json, --csv, --jsonl, --filter, --limit, --interactive, --dry-run, --audit, and --verbose.

Providers (supported — exposed in CLI)

| Provider | Topic | Auth | |----------|-------|------| | QuickBooks Online | quickbooks | OAuth2 | | Xero | xero | OAuth2 | | FreshBooks | freshbooks | OAuth2 | | Zoho Books | zohobooks | OAuth2 |

Base objects (all providers)

List: usefin <provider>:<object>:list [--status ...] [--limit N]
Get: usefin <provider>:<object>:get <id>
Create: usefin <provider>:<object>:create --data '{"key":"value"}'
Update: usefin <provider>:<object>:update <id> --data '{"key":"value"}'
Delete: usefin <provider>:<object>:delete <id>

The --data flag is required for create and update; pass a JSON object as the request body.

| Object | Example list | Example get | |--------|--------------|-------------| | accounts | usefin xero:accounts:list | usefin xero:accounts:get ac_xxx | | invoices | usefin quickbooks:invoices:list --status overdue | usefin quickbooks:invoices:get inv_xxx | | bills | usefin xero:bills:list | usefin xero:bills:get bill_xxx | | contacts | usefin xero:contacts:list --type customer | usefin xero:contacts:get c_xxx | | payments | usefin xero:payments:list | usefin xero:payments:get pay_xxx | | credit-notes | usefin xero:credit-notes:list | usefin xero:credit-notes:get cn_xxx | | journals | usefin xero:journals:list | usefin xero:journals:get j_xxx | | items | usefin xero:items:list | usefin xero:items:get item_xxx | | tax-rates | usefin xero:tax-rates:list | usefin xero:tax-rates:get tx_xxx |

Provider-specific objects (e.g. Xero quotes, purchase-orders; QuickBooks estimates, vendors) are available when supported. Run usefin <provider> --help for the full list.

When not authenticated, commands use mock data. When authenticated, they call the provider API where implemented. For providers with a real API client (Xero, QuickBooks, FreshBooks, Zoho Books), create/update/delete are available for supported objects.