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

@modelclock/cli

v0.1.1

Published

Fail your CI build when it references retired or soon-to-be-retired AI models. The ModelClock lifecycle gate.

Readme

@modelclock/cli

Fail your CI build when it references retired or soon-to-be-retired AI models.

modelclock check scans your code/config for referenced model ids (and/or takes explicit ids), looks up their lifecycle state via the ModelClock API, and exits non-zero when any referenced model is retired or past its retirement date — so you migrate on your schedule, not the provider's shutoff date.

Install

No install required — run it with npx:

npx @modelclock/cli@latest check src config

Or add it as a dev dependency:

npm install --save-dev @modelclock/cli

Authenticate

Create an API key from your dashboard and expose it as an environment variable:

export MODELCLOCK_API_KEY="mc_live_..."

Usage

# Scan files/directories for referenced model ids and gate on lifecycle state:
modelclock check src config

# Check explicit ids/aliases without scanning:
modelclock check --models "gpt-4o,claude-3-opus-20240229"

# Use a config file:
modelclock check --config modelclock.json

Options

| Flag | Description | | --------------------- | ---------------------------------------------------------------------- | | -m, --models <a,b,c> | Explicit model ids/aliases to check (repeatable) | | -c, --config <file> | JSON config: { "models": [...], "paths": [...], "warnDays": 90 } | | --api-url <url> | API base URL (env MODELCLOCK_API_URL, default https://modelclock.vercel.app) | | --api-key <key> | API key (env MODELCLOCK_API_KEY) | | --warn-days <n> | Warn when a model retires within this many days (default 90) | | --fail-on-warn | Treat warnings (deprecated / retiring soon) as build failures | | --fail-on-unknown | Treat references ModelClock does not track as build failures | | --no-policy | Ignore your account's central policy; use only the flags above | | --json | Machine-readable JSON output | | -q, --quiet | Only print failures |

Central gate policy

By default check fails only on retired (or past-due) models — free forever. On a paid plan you can configure a stricter policy once in your dashboard and every pipeline picks it up automatically: fail on deprecated/retiring, set the warn window, and fail on untracked references.

check fetches this policy on each run and uses it as the baseline. Explicit local flags (--warn-days, --fail-on-unknown) override it; pass --no-policy to ignore it entirely. Free accounts are always clamped to the retired-only gate regardless of any saved policy.

Auto-watch your codebase (sync)

modelclock sync discovers the models your code references — the same scan as check — and registers them as your account's watched set server-side. Combined with push alerts (webhook / Slack / PagerDuty), this gives you "fire and forget" coverage: run sync in CI on merge to main, and you'll be notified the moment a model you actually use is deprecated or retired, with no watchlist to curate by hand.

# Replace your watched set with whatever your code references now:
modelclock sync src config

# Preview the diff without writing anything:
modelclock sync src config --dry-run

# Only add models; never remove ones you watch elsewhere:
modelclock sync src config --no-prune

sync requires a paid plan with auto-watch enabled and an API key linked to an account. It prints the diff of added / removed / unchanged watches plus any unresolved references.

Exit codes

| Code | Meaning | | ---- | ------------------------------------------------------------- | | 0 | All referenced models healthy | | 1 | One or more errors (retired / past due), or warnings with --fail-on-warn | | 2 | Usage / configuration error | | 3 | API or network error |

GitHub Actions

A composite action ships alongside the CLI:

- uses: hivemindunit/modelclock.ai/packages/cli@main
  with:
    api-key: ${{ secrets.MODELCLOCK_API_KEY }}
    paths: "src config"
    warn-days: "90"

License

MIT