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

sushant-cli

v0.1.0

Published

Programmable product judgment in your terminal.

Readme

Sushant CLI

Product judgment, encoded.

A terminal-first CLI for product thinking, decision-making, and system design.

Install

One-liner (like Claude’s curl installer)

Requires Node.js (npm on your PATH). Then:

curl -fsSL https://raw.githubusercontent.com/SushantChhetry/sushant-cli/main/scripts/install.sh | bash

Override the repo with SUSHANT_CLI_REPO=YourOrg/your-fork if you fork.

Claude Code’s default flow is a native script plus Homebrew; this is the closest parallel for a Node-based CLI—one command, no clone.

npm (after you publish to the registry)

npm install -g sushant-cli

npm from GitHub

npm install -g github:SushantChhetry/sushant-cli

The repo ships a prebuilt dist/, so this install does not run a TypeScript compile on your machine.

Homebrew (maintainer/distributor flow)

Sushant now includes a Homebrew formula generator for taps:

npm run release:brew-formula

This writes packaging/homebrew/sushant-cli.rb, which can be committed to your tap repo and installed with brew install <tap>/sushant-cli.

RPM (maintainer/distributor flow)

Sushant now includes RPM packaging files and a build helper:

npm run release:rpm

Requirements: rpmbuild + nodejs.

First-run setup (new default)

Sushant CLI now uses a frictionless local setup flow:

  1. Install globally.
  2. Run sushant.
  3. If no valid local config is found, Sushant launches a setup wizard.
  4. Choose a provider, enter your API key securely, and optionally set a model.
  5. Config is saved locally and reused on future runs.
sushant

Supported providers

  • OpenAI (OPENAI_API_KEY)
  • Anthropic (ANTHROPIC_API_KEY)

The configuration model is provider-agnostic so additional providers can be added without changing the main auth shape.

Authentication and config commands

  • sushant login → run setup wizard explicitly
  • sushant logout → remove local config
  • sushant whoami → show current provider/model with redacted key
  • sushant config → show safe redacted config
  • sushant config set provider <openai|anthropic>
  • sushant config set model <model-name>

Credential resolution order

For AI-backed commands (wwsd, breakdown, redflag, visualize) and no-args interactive mode:

  1. Local config file
  2. Environment variables
  3. Interactive setup wizard

If local config is malformed, the CLI guides you into repair through the same setup wizard.

Local config storage

Config is stored in a user-level directory:

  • macOS/Linux (XDG aware): $XDG_CONFIG_HOME/sushant/config.json or ~/.config/sushant/config.json
  • Windows: %APPDATA%\\sushant\\config.json

Example structure:

{
  "provider": "openai",
  "providerConfig": {
    "apiKey": "SECRET",
    "model": "gpt-5-mini"
  }
}

Environment variables (advanced / fallback)

Environment variables are still supported when no local config exists:

  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY
  • Optional model overrides:
    • OPENAI_MODEL
    • ANTHROPIC_MODEL
    • SUSHANT_MODEL (generic fallback)

Quick command examples

sushant
sushant login
sushant whoami
sushant wwsd "Should we automate tax intake via SMS?"
sushant redflag "AI agent that auto-submits claims"
sushant config

Local development

npm install
npm run dev
npm run build

Docs

License

MIT