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

entitybind

v0.1.5

Published

Set up EntityBind in one command for Claude Code, Codex, Gemini CLI, Cursor or VS Code, with owner-approved login and verified MCP access.

Readme

entitybind (npm)

Sign in to EntityBind and wire its MCP servers into Claude Code, Codex, Gemini CLI, Cursor or VS Code, from any machine with Node.js 18 or later. No runtime dependencies.

This package provides login, logout, whoami and mcp add. The Core API commands (resolve, quote, discover, jobs, usage, billing, keys, decisions) are in the Python package of the same name: uvx entitybind. Both packages share one credentials file and the same exit codes.

Version 0.1.5: npm. Start with the Core API documentation or the separate AML API guide.

Set up from one coding-agent prompt

Give your coding agent this prompt, replacing codex with claude-code, gemini, cursor or vscode for your client:

Set up EntityBind Core for this coding agent. Run npx --yes [email protected] setup codex --json --no-browser (or uvx [email protected] setup codex --json --no-browser if Python/uv is available). Relay the device approval URL and code to me if requested; never ask me to paste an API key into chat. Wait for my approval, then repeat the command to resume. Report the credential and MCP verification results and whether I need to restart this client. Do not resolve companies or run paid work during setup.

For AML Onboard, change the product name and add --product aml. New Core users create a workspace at https://app.entitybind.com/app; new AML users create a synthetic-only sandbox at https://onboard.entitybind.com/signup and complete email confirmation and MFA. AML production case admission remains closed.

setup combines credential acquisition, verification and client configuration. It reuses an existing credential or resumes pending device approval, defaults to a 50-second wait, and exits 9 while approval is pending. Repeat the same command to continue; no additional device request is created while one is pending. A person approves the connection in their browser. No key needs to pass through chat or a manually exported environment variable.

Setup writes the credential into the client's private user configuration; on POSIX systems the file is restricted to its owner. It never writes a raw key into a project configuration. Existing unrelated settings are preserved; a conflicting entry requires --force. Claude Code must be installed for its native user-configuration command. Treat user config files as secrets; revoke the key if one is exposed. The CLI's logout --revoke cannot remove a separate copy from a client configuration, but the revoked key stops working there too.

Successful JSON reports credential_verified and mcp_verified separately from native_client_session_verified. The read-only MCP handshake checks initialization and visible tools without resolving a company or consuming credits. Restart or reload your coding client to pick up its configuration. A configuration write and direct protocol check do not establish that the running native-client session has reloaded it.

For Core URL-only OAuth, run entitybind setup codex --auth oauth --json then codex mcp login entitybind. A workspace owner approves the connection.

AML sandbox OAuth. Run entitybind setup codex --product aml --auth oauth --json, then codex mcp login entitybind-aml. The first command saves the server URL and returns authorization_required with the client-specific next step. The client performs Dynamic Client Registration and PKCE S256. An MFA administrator approves the requested scopes for one enabled sandbox. The resulting tokens authorize AML MCP. This mode reports telemetry_enabled=false because the hosted collector accepts only key-based AML setup. Key-based setup remains the default.

In clients running 0.1.4, configure the URL https://onboard.entitybind.com/aml/mcp directly in an OAuth-capable client, or use the default agent-key setup. Use key setup for Cursor's private-scheme callback.

The lower-level login and mcp add commands below remain available when you want to manage keys and environment references yourself.

Optional setup adoption measurement

For the hosted Core and AML services, setup reports a small set of first-party setup events to https://app.entitybind.com/api/setup-events. This helps EntityBind measure reported setup completion, drop-offs and failures. It sends a random attempt ID, product, declared client, CLI version/runtime, auth mode, stage, elapsed time and a fixed failure category. It sends no API key, device/approval code, prompt, company input, file contents, file path, username or target URL. The report covers 90 days; older events are purged during background maintenance. Physical deletion can lag if maintenance is unavailable.

Disable reporting with --no-telemetry, DO_NOT_TRACK=1 or ENTITYBIND_TELEMETRY=0. Custom service origins are not reported. Reporting uses an anonymous request independent of login; a collector failure never changes setup's success or failure.

Retries, approval resumes and repeated setup within seven days reuse the attempt ID. Changing client, runtime, version, auth mode or server name creates a different reported attempt. Attempts are not unique users or package installs. Local configuration and MCP-check outcomes are client-reported; they do not prove an authenticated native-client application session. Setup can finish without telemetry delivery, so measurement coverage is not complete.

Install

npx entitybind --help          # run without installing
npm install -g entitybind      # or install the command globally

Sign in

Create a Core workspace at app.entitybind.com/app, or a synthetic AML sandbox at onboard.entitybind.com/signup, and confirm your email. Each product has its own credentials and API origin. AML production case admission remains closed.

npx entitybind login                   # Entity Bind - Core
npx entitybind login --product aml     # AML Onboard

login uses the OAuth device flow (RFC 8628): it prints a link and a short code, opens your browser, and waits while you approve the request as the workspace owner. The key is stored in $XDG_CONFIG_HOME/entitybind/credentials.json (default ~/.config) with mode 0600, per product and base URL. This package does not use the OS keyring; a credential the Python client stored in the keyring is reported rather than read.

AML device login is for sandbox workspaces and needs an MFA administrator's approval. In a self-serve workspace it reports simulated_checks_only: true in JSON and explains that checks use synthetic providers only.

Options: --scope (Core: read, resolve, review or admin, default resolve; AML: agent, the default, partner, or AML scope names; signing in with a different Core scope than the stored key's is refused, scope_change), --name (a suggested key label; current servers name the key when it is approved), --no-browser, --print-key (print the key once on stdout, for a secret manager), --no-store (only with --print-key), --timeout SECONDS, --no-wait and --resume.

From a coding agent whose tool calls time out, sign in in steps:

npx entitybind login --no-browser --timeout 50 --json   # exits 9 while waiting
npx entitybind login --resume --timeout 50 --json       # repeat until it exits 0

npx entitybind whoami shows the credential in use; npx entitybind logout removes it, and --all removes every stored credential. --revoke revokes the key on the server first and removes the local copy only once the server confirms the key no longer works; otherwise it exits non-zero (revocation_unconfirmed) and keeps the local copy.

Wire EntityBind into your agent

npx entitybind mcp add claude-code --write    # ./.mcp.json
npx entitybind mcp add codex --write          # ~/.codex/config.toml
npx entitybind mcp add gemini --write         # ./.gemini/settings.json
npx entitybind mcp add cursor --write         # ./.cursor/mcp.json
npx entitybind mcp add vscode --write         # ./.vscode/mcp.json
npx entitybind mcp add codex --product aml --write

Without --write the entry and the client's own equivalent command are printed. --auth key (default) references the key through ENTITYBIND_API_KEY (Core) or ENTITYBIND_AML_KEY (AML), so nothing secret is written into the MCP configuration. The agent does not read the CLI's stored credential. Set the variable for the agent's process or project only, not in your shell profile: headless agents load a repository's committed .mcp.json without asking, so a hostile repository could name the same variable for its own server. npx entitybind login --print-key --no-store prints a key for it. --auth oauth configures just the URL. Follow the client-specific sign-in instructions printed by the command. For AML, use an enabled sandbox and a client that supports Dynamic Client Registration, PKCE S256, and an HTTPS or loopback callback. Cursor users should choose --auth key. --inline-key writes the raw key (with a warning, mode 0600), and only into a user-scope file (--scope user): project files are usually committed, so it is refused there. --scope project|user, --dir, --server-name and --force work as in the Python client.

With --json, the configuration field contains the complete JSON fragment. For Gemini CLI it includes the environment-variable redaction allowlist that allows the referenced credential variable to expand.

Merging keeps the rest of the file, writes atomically and refuses files it cannot rewrite safely, such as JSON with comments. Only the URL and credential settings of an entry are this package's: settings you added yourself (timeouts, trust, tool filters, Codex approval modes and tools.* tables) are never a conflict and are kept, and --force rewrites only the managed ones. Unlike the Python client, this package cannot parse TOML, so it compares and edits Codex's managed lines as text without validating the result.

Non-interactive use (CI)

- run: npx --yes [email protected] whoami --json
  env:
    ENTITYBIND_API_KEY: ${{ secrets.ENTITYBIND_API_KEY }}

Pin the version in automation (npx --yes [email protected]): npx installs whatever holds the name when it runs, and assumes --yes without a terminal. ENTITYBIND_API_KEY and ENTITYBIND_AML_KEY override stored credentials; ENTITYBIND_BASE_URL, ENTITYBIND_AML_BASE_URL or --base-url change the origin (plain http only for loopback hosts: localhost, 127.0.0.1 or ::1).

Package installs and configuration previews have been verified. Actual native-client app sessions and Windows remain unverified; previewing or writing an entry alone does not establish a working client connection.

Output and exit codes

Every command accepts --json. Errors are printed as {"error": {...}, "exit_code": N} (plus status for HTTP refusals).

| Code | Meaning | |---:|---| | 0 | ok | | 2 | usage error or invalid request | | 3 | authentication or permission | | 4 | payment or entitlement | | 5 | not found | | 6 | conflict | | 7 | rate limited | | 8 | server or network error | | 9 | still pending or timed out |

Licence

MIT.