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

@kud/models-dev-cli

v0.3.3

Published

CLI to explore and query models.dev catalogue (non-interactive + interactive TUI).

Downloads

12

Readme

models-dev CLI

Explore the models.dev catalogue from your terminal. Fast search, rich TUI, copy-to-clipboard.

npm node license


TL;DR

# one‑shot
npx -p @kud/models-dev-cli models-dev

# or install globally
npm i -g @kud/models-dev-cli
models-dev   # alias: mdl

The CLI fetches the live catalogue and opens a split‑pane TUI by default. Prefer a non‑interactive table? Use flags (below) or --ui table.

Preview

Highlights

  • Blazing‑fast fuzzy search (Fuse) across name and id
  • Filters for provider, tool‑calling, and reasoning
  • Colorful split‑pane TUI with detail panel and copy‑ID
  • Script‑friendly JSON and table output modes
  • Safe terminal handling (works around Setulc/terminfo issues in iTerm2)

Interactive TUI

Keybindings:

  • /: search (fuzzy; blank clears)
  • p: provider picker
  • t: cycle tool filter (Any → Yes → No)
  • r: cycle reasoning filter (Any → Yes → No)
  • s: cycle sort (Default → Provider → Input $ → Output $ → Context)
  • c: copy current model id to clipboard
  • h: toggle the help/status bar
  • q: quit
  • Navigation: arrows or j/k, PageUp/PageDown scroll

Tips:

  • The left list shows the provider in cyan and the model name in white.
  • The detail panel groups info into Capabilities, Modalities, Costs, Limits and Meta, with color badges for quick scanning.

Force a mode:

MODELS_DEV_UI=blessed models-dev     # force TUI
MODELS_DEV_UI=table models-dev       # force table prompt mode

Non‑Interactive Usage

models-dev --search claude
models-dev --provider openai --sort input-cost
models-dev --tool --reasoning
models-dev --provider anthropic --compact
models-dev --search grok --json

Flags:

  • --search <term>: substring match on name/id
  • --provider <name>: provider id or display name (case‑insensitive)
  • --tool: only models with tool calling
  • --reasoning: only models with reasoning capability
  • --sort <field>: one of input-cost, output-cost, provider (the TUI exposes additional sorts)
  • --json: emit raw JSON for the resulting models
  • --compact: print provider:model:name:id per line
  • --ui <mode>: blessed | table | auto (default)

Output Columns

Shown in both the non‑interactive table and the interactive list view when applicable:

  • Provider, Model, Provider ID, Model ID
  • Tool, Reason (reasoning capability)
  • Modalities (input/output)
  • Costs (input/output/cache read/cache write; per 1M tokens)
  • Limits (context, output tokens)
  • Temperature flag, Weight openness, Knowledge cutoff, Release, Updated

Missing numeric/cost fields render as -.

Troubleshooting

Running in iTerm2 and seeing a Setulc/terminfo error? The CLI auto‑detects iTerm2/xterm-256color and avoids tput, which prevents the crash.

If you still hit issues:

# simplest workaround
TERM=xterm npx -p @kud/models-dev-cli models-dev

# fall back to table UI
models-dev --ui table

No color output desired? Set NO_COLOR=1.

Development

git clone https://github.com/kud/models-dev-cli
cd models-dev-cli
npm install
npm link           # exposes `models-dev` and `mdl`
models-dev         # run locally

Code style notes:

  • Keep changes minimal and focused
  • Prefer small PRs with clear descriptions and screenshots/GIFs for UI changes

License

MIT