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

@invoicer/cli

v2.4.0

Published

Professional invoice generator with timesheet integration and CLI support

Readme

Invoicer CLI

Client currencies accept any three-letter code, including EGP and SAR, and are saved in uppercase. Use invoicer clients --archive "Client" to preserve its entries and invoice history while excluding it from new invoices. --delete is a compatibility alias for archiving. Restore it with invoicer clients --restore "Client". Save an active timer before archiving its client.

Track work and generate branded PDF invoices from the terminal. The desktop app bundles this same CLI source and release version. Both belong to InvoicePilot.

Install

Requires Node.js 22.18 or newer. PDF export works without Chromium or another browser installation.

npm install -g @invoicer/cli
invoicer --help
invoicer sender --edit
invoicer clients --add
invoicer generate

Connect Codex, Claude Code or another MCP client

Run invoicer mcp as a local stdio MCP server. The desktop app also provides launcher installation and copyable configurations in Settings → Integrations. No hosted server is required. Tools read clients/work/invoices, manage timers, log time, preview unscheduled invoice drafts and return PDF resources. They cannot send email, delete records or execute shell commands. Your MCP client controls tool approvals; requested business data is shared with its AI provider. Restart the connection after changing workspaces. See the setup guide.

One shared workspace

The desktop app and npm CLI use the same OS data folder by default: macOS ~/Library/Application Support/invoicer, Windows %APPDATA%/invoicer, Linux $XDG_DATA_HOME/invoicer (or ~/.local/share/invoicer). Existing Windows LocalAppData workspaces are preserved.

Select a folder in desktop Settings or use the command below. Either one changes the folder for both apps:

invoicer workspace --set /absolute/path/to/workspace
invoicer workspace --help

INVOICER_WORKSPACE=/absolute/path overrides the workspace for one process, useful for automation and isolated tests. Keep a backup of the workspace: the desktop app saves one with Settings → Workspace → Back up…, and Restore… replaces the workspace from it (the current data is saved to backups/ first). While it is open, the desktop app also saves a backup every day and keeps the last 14, in backups/ or a folder you choose, such as one in Google Drive or Dropbox. Avoid concurrent app/CLI modifications to the same invoice; general cross-process transactions remain follow-up work.

Sharing a workspace through iCloud Drive, Dropbox or similar

A synced folder works, with care:

  • Use Invoicer on one computer at a time, and let the sync finish before you open it on another computer.
  • A workspace lock records which computer holds it. A lock from another computer is respected for 5 minutes, because Invoicer cannot check whether that computer is still working.
  • When two computers change the same file before syncing, the sync service keeps both as a conflict copy (for example drafts 2.json or drafts (conflicted copy).json). Invoicer reads only the original and warns in Settings → Workspace. Compare each copy with its original, re-enter any missing changes in Invoicer, then delete the copy.
  • Keep the email password out of the folder: it is stored in each computer's keychain, so enter it once on every computer.
  • Take a backup (Settings → Workspace → Back up…) before moving the workspace.

Everyday commands

invoicer clients --list
invoicer clients --edit "Acme Corp"
invoicer sender --list
invoicer timesheet --export csv --month=2026-10
invoicer generate --from-timesheet --client="Acme Corp" --month=2026-10
invoicer generate --month=2026-10 --hours=160 --rate=75 --desc="Development"
invoicer drafts --list
invoicer drafts --generate
invoicer drafts --help

Use each command's --help for review, scheduling, sending and archive options. When something seems stuck, invoicer doctor shows the workspace the CLI and desktop each use, lock folders and their age, invoices stuck in sending or uncertain, and whether the SMTP credential resolves. It changes nothing unless you confirm removing stale locks. A local PDF export does not require email credentials. Sending uses the configured sender and automatically attaches the generated PDF.

Tracking time

invoicer start "Acme Corp" API work
invoicer pause
invoicer resume
invoicer status
invoicer stop
invoicer log "Acme Corp" 1:30 Planning call --date=2026-10-12
invoicer log "Acme Corp" 2 Mockups --project=Design

The timer is shared with the desktop app: a timer started here shows in the app, and stopping it in either saves one entry. stop applies the timer rounding chosen in the desktop Settings; log entries are never rounded. With --project, log uses the client's rate for that project when one is set in the desktop app.

Invoice numbering

All clients share one annual sequence, so a number is never used twice: Acme INV-2026-0001, Northstar INV-2026-0002. The prefix comes from invoicePrefix (set during invoicer setup or in desktop Settings → Invoices); with an empty prefix numbers look like 2026-0001. A new year starts at 0001 again, after the highest number already used that year. Existing invoice numbers are preserved. The desktop and CLI reserve numbers through the same locked counter file. Deletion or failed export does not reuse a reserved number, so gaps are expected.

An explicit --invoice=2026-0001 must match the next available number for that client and issue year. Counters use stable client IDs. Renaming a client preserves its numbering and invoice history.

Automatic sending

The desktop app offers an explicit background sending switch in Settings and a scheduled test email with a sample PDF. Background sending runs while the app is open. CLI automation requires your operating system's scheduler and the normal draft/send commands; it does not install a persistent daemon.

Scheduled runs answer prompts with flags. Without a terminal, a command that needs an answer stops and names the flag to pass.

invoicer generate --from-timesheet --client="Acme Corp" --yes --no-email --archive
invoicer drafts --review <id> --yes --date=2026-11-01
invoicer drafts --retry <id> --reviewed
invoicer drafts --list --json
invoicer status --json
invoicer workspace --json

generate --yes bills the timesheet entries, or --hours when there are none, archives the entries and emails the client's saved address unless you pass --no-email. drafts --review --yes schedules the invoice only when --date is given. Pass --reviewed only after checking your Sent mailbox.

Core time tracking, client management and invoicing stay free. Pro features are deferred. Desktop downloads and CLI reference.

Invoice email delivery saves a shared claim before SMTP. sent means the SMTP server accepted the email, not that it reached an inbox. Interrupted or disconnected attempts become uncertain and are excluded from automatic sending. Check your Sent mailbox before invoicer drafts --retry <id>; this only permits a later explicit send and may produce a duplicate if the earlier email arrived. Preparation failures occur before SMTP and can be corrected safely. Active or accepted invoices cannot be edited or deleted.

Payments, cancellation and reminders

invoicer drafts --payment <id> --amount 250 --date=2026-11-03
invoicer drafts --paid <id>
invoicer drafts --unpaid <id>
invoicer drafts --cancel <id> --reason "Billed to the wrong client"
invoicer drafts --remind <id>

These follow the desktop app's rules. Payments go on sent invoices, dated today or earlier, up to the amount still owed; the invoice is paid once nothing is owed, and a paid invoice is never sent again. --unpaid clears its payments too. A cancelled invoice keeps its number, takes no more payments or reminders, and its credit note, exported from the desktop app, shows the cancellation date and reason. --remind emails one reminder per invoice, for sent, unpaid invoices past their due date, with the invoice attached again. It is recorded before SMTP, so an interrupted reminder is not repeated; a failure before SMTP can be retried.

SMTP passwords are kept in macOS Keychain, Windows Credential Manager, or the Linux Secret Service. The app and CLI share a credential reference and UTF-8 record; passwords are resolved only when preparing an email send. Legacy passwords migrate before a config mutation or sending. A locked/unavailable store preserves the original file and blocks sending, while non-mail reads and PDF exports remain available. Unlock the device’s credential store before retrying. Linux requires a running Secret Service; it never falls back to a volatile kernel keyring or plaintext.

Leave the password blank to retain an existing credential when its SMTP host, port and username are unchanged. Changing those settings requires the password again. Saving a new password or resetting/disconnecting deletes the entry this workspace used, so a copy of the workspace that still points to it asks for the password again.

Optional invoice tax

Tax is disabled by default. To add exclusive tax to an unsent invoice, run:

invoicer drafts --tax <draft-id> --tax-label VAT --tax-rate 14
invoicer drafts --tax <draft-id> --remove-tax

Rates support 0–100% with four decimal places. Tax is rounded half-up to two decimal places and saved with the invoice; PDFs and email use the same total due. Sent or uncertain invoices cannot be changed.