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

@engini/cli

v0.10.1

Published

Engini CLI — machine-first command line over the Engini Public API

Readme

@engini/cli

Machine-first command line for the Engini Public API — run tools across your connected apps from the terminal or an agent. The engini binary is a TypeScript port of the Python engini CLI, kept in lockstep with it.

Install

npm install -g @engini/cli
# or run without installing:
npx @engini/cli --help

Quickstart

engini login --api-key eng_…              # or run interactively on a TTY
engini applications list --available      # discover connector apps
engini tools list --application monday    # discover tools
engini tools call monday_create_item --args '{}' --connection 3
engini tools call gmail_send_mail --args '{}' --file [email protected]   # attach a file
engini tools result <handle> --select items.email   # drill into a large result

Commands

engini login | logout | whoami            # auth
engini tools list | get | call | result   # discover, execute & drill into results
engini applications list | get            # browse connector apps
engini connect [<app>]                    # create a connection (interactive / agent-resumable)
engini connections list | get             # inspect connections
engini connections create | delete | check | refresh | objects | select-objects   # primitives
engini connections sign-in-url | oauth-complete   # OAuth2 start / finish primitives

Run engini <command> --help for details and examples on any command.

connect <app> discovers the app's authentication methods, collects credentials (or runs the OAuth2 sign-in), creates the connection, checks it, refreshes its objects, and — when the app supports it — lets you pick which objects to sync. On a TTY it prompts and opens the browser inline. Async jobs poll up to --timeout (--no-wait returns early; a timeout exits 124).

Agent recipe (piped / non-TTY)

connect never blocks for an agent: at each gate it prints a self-describing { "need": …, "resume": "<exact next command>" } and exits 5. The agent asks the user for the value and runs the resume command:

# direct-credential (e.g. monday)
engini connect monday --json                  # → {need:"fields", resume:"engini connect monday --auth 0 --field ApiKey=<value>"}
engini connect monday --auth 0 --field ApiKey=<key>   # creates → checks → refreshes

# OAuth2 (e.g. outlook) — never opens a browser for the agent
engini connect outlook --json                 # → {need:"oauth", sign_in_url, state, resume:"engini connect outlook --oauth-state <state>"}
#   show sign_in_url to the user; after they sign in:
engini connect outlook --oauth-state <state>  # polls token → creates → checks → refreshes

# object selection (apps that support it) — resume never re-creates
engini connect <app> --json                   # → {need:"objects", connection_id, objects, resume:"engini connect <app> --connection <id> --object <id>"}
engini connect <app> --connection <id> --object 5 --object 9

The same steps are available as standalone primitives: connections sign-in-url / oauth-complete (OAuth) and connections create / check / refresh / objects / select-objects.

Output & exit codes

Output adapts to context: human-readable on a TTY, compact JSON when piped, pretty JSON with --json. Every command also accepts:

  • --json — pretty-print JSON
  • --quiet — suppress non-essential output
  • --schema — print the command's machine-readable arg schema (handy for agents)
  • --dry-run — preview a mutating command without executing it

Exit codes are a stable contract: 0 success · 1 general error · 2 usage error · 3 authentication error · 4 not found · 5 validation error · 124 timeout.

Large results (token economy)

Tool outputs can be huge — an agent shouldn't pay tokens for data it hasn't asked for. When a tools call result exceeds --max-bytes (default 4096), it is spilled to a local sandbox and the command prints a compact envelope instead:

{ "handle": "h42", "history_id": 42, "data_size": 84211,
  "shape": { "type": "object", "keys": { "items": "array", "total": "number" } },
  "preview": { "id": 1, "email": "[email protected]" },
  "hint": "Full result stored. Pull data with: engini tools result h42 …" }

Then drill in with tools result <handle>, paying only for what you pull:

engini tools result h42 --select items.email      # dot-path (maps over a list)
engini tools result h42 --fields id,name           # project keys per item
engini tools result h42 --select items --offset 20 --limit 10   # page a list
engini tools result h42 --full                     # the whole payload
engini tools result --list                          # known handles
engini tools result --clear                         # wipe the sandbox

--inline (or --max-bytes 0) forces the full result inline; --raw / --llm emit the full output as before and bypass the sandbox. Stored results live under $XDG_CACHE_HOME/engini/results/ (%APPDATA% on Windows) and are auto-pruned to the most-recent 20, dropping anything older than 24h — so a handle is short-lived; drill in during the same session.

Configuration

Credentials and host config live in $XDG_CONFIG_HOME/engini/config.toml (%APPDATA%\engini\config.toml on Windows), written 0600. Resolution order is flags > environment > config; the env vars are ENGINI_API_KEY (preferred) or ENGINI_API_TOKEN, plus ENGINI_COMPANY_TOKEN.

Source & docs: https://github.com/engini/engini-sdk