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

@economico/cli

v1.0.0

Published

Economico CLI — discover and call the shared business registry over REST

Readme

Economico CLI

@economico/cli connects your terminal or agent to an Economico business over REST. Login approves businesses and scopes for one connection. Each data command selects its business explicitly; the server publishes the tools permitted for that target. Version 1 replaces the old REST command tree with generic tool/verb dispatch.

Requires Node 24 or newer. Install with npm install -g @economico/cli.

economico login --server https://economi.co --local
economico businesses list
economico businesses list --audience public
economico --business example-co tools
economico --business example-co catalog list
economico --business example-co catalog describe --name parties.create
economico --business example-co commands execute --args @command.json
economico --business example-co reports list
economico --business example-co reports run --kind balance_sheet --currency USD --human

economico --business example-co <tool> <verb> --help reads that operation's current server description and input schema from /v1/openapi.json and lists its flags. A body with one variant per command or report is folded to the fields they share, and help names the operation that describes one variant (catalog describe --name <name> for a command's input). --help --json prints the complete schema. Tool/verb pairs come from its operationId (for example, reports.run becomes reports run). Field flags use the exact schema names (--effective_at); strings stay strings, including money. Objects and arrays take JSON. --args accepts a JSON object, @file, or - for stdin. The server validates inputs and enforces membership and command visibility.

JSON is the default output. --human renders supported financial statements and summarizes other results. Errors go to stderr and exit nonzero. Command calls are never automatically retried after network failures; supply a stable idempotency_key when deliberately retrying a command.

Login retains the original CLI's OAuth discovery, DCR/CIMD, PKCE, and loopback flow. Use --no-browser to print the authorization URL, or --port to select the callback port. logout removes stored tokens from the selected config file.

A person with no business yet creates one in the browser during login. To prefill that signup form, pass --country (US, SG, CA or GB; US means Delaware and GB England and Wales), or --jurisdiction for an exact register (US-CA, CA for a federal corporation, CA-ON, GB-SCT), --legal-form (c_corp, llc, private_limited_company, corporation, …), --currency (default: the country's) and --fiscal-year-end (MM-DD, default 12-31):

economico login --server https://economi.co --country SG --fiscal-year-end 03-31

They travel as signup_* parameters on the authorization request. The server validates them and only prefills the form; the person reviews and submits it. They are ignored when the account already has a business.

Configuration resolves in this order: ECONOMICO_CONFIG_FILE, the nearest trusted ancestor's .economico/config.json, then $XDG_CONFIG_HOME/economico/config.json (normally ~/.config/economico/config.json). login --local creates a project config and adds .economico/ to the current directory's .gitignore. Config files have mode 0600. ECONOMICO_API_URL overrides the stored server URL. Credentials belong to the server that issued them; log in again when switching servers.

Automatic ancestor discovery never walks above $HOME and, on Unix, ignores files not owned by the current user. Use ECONOMICO_CONFIG_FILE when selecting a deliberate path outside those boundaries.

The default host is https://economi.co. Legacy domain commands such as invoices create are replaced by catalog discovery and commands execute.

Develop from the workspace with pnpm --filter @economico/cli test and pnpm --filter @economico/cli build; the executable is dist/bin.js. The config, login, and formatting code was ported from the Go repo (economico), typescript/packages/cli. Publishing is a separate release action: pnpm --filter @economico/cli publish --access public (prepack builds and tests).