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

@banatie/cli

v0.2.0

Published

Banatie CLI — headless organization auth and project commands

Readme

@banatie/cli

Headless CLI for Banatie organization authentication and project management. Log in to your organization, create and manage projects, and connect a local repository to a project, all from the terminal, designed to be driven by humans or coding agents.

Requires Node >= 18 (uses the built-in global fetch).

Usage

No install needed: run it with npx:

npx @banatie/cli <command>

Backend selector

Commands talk to https://api.banatie.app by default. Point at another backend with BANATIE_API_BASE_URL:

BANATIE_API_BASE_URL=http://localhost:3000 npx @banatie/cli org acme auth status

Commands

banatie signup <email> [--org-name <name>]
banatie org <org-slug> login <bnt_boot-token>
banatie org <org-slug> auth status
banatie org <org-slug> auth logout
banatie org <org-slug> auth revoke
banatie org <org-slug> auth rotate
banatie org <org-slug> project new <project-slug>
banatie org <org-slug> project list
banatie org <org-slug> project connect <project-slug> --project-root <path>
banatie org <org-slug> project issue-api-key <project-slug> [--write-env <path>]
banatie org <org-slug> project delete <project-slug> [<one-time-token>]
banatie issue-api-key [--write-env <path>]
  • signup: request a login email for your address. --org-name <name> seeds the organization name and slug; without it both derive from the email local-part. The server reply is neutral by design; the one-time login command arrives by email.
  • login: exchange the one-time bnt_boot_ token for a permanent organization token and store it locally. The permanent token is never printed.
  • auth status / logout / revoke / rotate: inspect local login, remove it locally, revoke it server-side, or rotate the current organization token. Tokens are shown as previews only.
  • project new / list: create a project (returns a key preview and a connect command, never a raw key) and list the organization's projects (safe metadata only).
  • project connect: confirm the project exists via the saved org token and write a link file (.banatie/project.json) under --project-root. No API key is minted or stored.
  • project issue-api-key / issue-api-key: mint a new raw project API key. Default: prints BANATIE_API_KEY=bnt_... to stdout. --write-env <path>: idempotently upserts BANATIE_API_KEY into that file. The shorthand banatie issue-api-key auto-detects the project by walking up from the current directory. Each call mints a new server-side key.
  • project delete: a guarded, two-step destructive flow: without a token it emails a one-time confirmation command (nothing is deleted); with the token it requires an interactive confirmation before deleting. Non-interactive deletion is refused.

Signup can also happen outside the CLI: entering your email on the Banatie web app or POSTing it to the public bootstrap endpoint triggers the same login email.

Configuration & security

  • Login profiles are stored in ~/.banatie/config.json (override the directory with BANATIE_HOME), scoped by backend URL + organization slug.
  • Permanent organization tokens are stored in ~/.banatie/config.json and never printed: commands show previews only.
  • Raw project API keys are never stored in .banatie/project.json: project connect writes only a link (org/project slug + id); use issue-api-key when you need an actual key.
  • project connect prints a recommendation to add .banatie/ to your .gitignore. The CLI does not edit .gitignore itself.

License

MIT