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

@sunasteriskrnd/sdo-cli

v0.1.0

Published

sdo — Sun* SDO platform CLI. Umbrella binary for SDO services (nyx, ...).

Readme

@sunasteriskrnd/sdo-cli

sdo — Sun* SDO platform CLI. An umbrella binary that wraps SDO services. First service: Nyx (security vulnerability + EOL lookups).

Install

npm i -g @sunasteriskrnd/sdo-cli
# or run once
npx @sunasteriskrnd/sdo-cli nyx lookup vuln --help

Requires Node.js >= 20.

Quick start

# 1. Drop your API key in a config file (or use NYX_API_KEY env var)
mkdir -p ~/.config/sdo
cat > ~/.config/sdo/config.yaml <<EOF
nyx:
  apiKey: nyx_xxxxxxxxxxxxxxxxxxxx
EOF

# 2. Look up CVEs for inline items
sdo nyx lookup vuln [email protected]:techstack [email protected]

# 3. Check EOL status from a file
sdo nyx lookup eol --file deps.yaml

# 4. Pipe JSON from stdin
cat deps.json | sdo nyx lookup vuln -

Commands

  • sdo nyx lookup vuln [items...] — CVE lookup via POST /lookup/vulns
  • sdo nyx lookup eol [items...] — EOL status via POST /lookup/eol
  • sdo nyx doctor — diagnose config resolution (API key redacted)

See docs/cli.md for the full CLI reference and docs/nyx.md for Nyx-specific notes.

Configuration

Resolution order (lowest precedence first):

  1. Built-in defaults (baseUrl: https://nyx.sun-asterisk.vn, timeout: 30000)
  2. User config: ~/.config/sdo/config.yaml (or $XDG_CONFIG_HOME/sdo/config.yaml)
  3. Project config: ./sdo.config.yaml in CWD
  4. Environment variables (NYX_BASE_URL, NYX_API_KEY, NYX_TIMEOUT, SDO_OUTPUT, NO_COLOR)
  5. CLI flags (--api-key, --base-url, --timeout, --json, --no-color)

Example sdo.config.yaml:

defaults:
  output: table

nyx:
  baseUrl: https://nyx.sun-asterisk.vn
  apiKey: nyx_xxxxxxxxxxxxxxxxxxxx
  timeout: 30000

Develop

bun install
bun run dev nyx lookup vuln --help
bun test                 # unit tests (mocked HTTP, fast)
bun run test:e2e         # live API hits — requires NYX_API_KEY in env or config
bun run build
node dist/bin/sdo.js --version

E2E test suite

tests/e2e/nyx-lookup.e2e.test.ts exercises the real Nyx API. Gated by NYX_E2E=1 so the default bun test and CI never trigger network calls. Credentials resolve through the same layered chain as the CLI (env → user config → project config), so once you can run sdo nyx doctor successfully, e2e tests will work too.

bun run test:e2e         # NYX_E2E=1 bun test tests/e2e
bun run test:all         # unit + e2e in one go

Run e2e locally before cutting a release. Add an issue to the repo if a test fails for reasons unrelated to your change — server-side response drift can break the strict schema assertion (see cvssScore note in src/services/nyx/types.ts).

License

UNLICENSED (proprietary, Sun* internal).