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

@brightmeows/pi-models-dev

v0.1.1

Published

models.dev 模型目录导入:协议感知注册与用户配置

Readme

@brightmeows/pi-models-dev

models.dev 模型目录导入:协议感知注册、用户配置过滤与覆盖。

行为

  • 拉取 models.dev 目录(24 小时缓存,离线守卫与刷新合流),按协议判定注册 provider 与模型
  • 与内建重名的 provider 走 legacy 注册保留内建 auth 与登录,并按 id|api 合并内建 compat 与档位映射;非重名走原生注册,接平台刷新与持久化
  • 用户配置 ~/.pi/agent/models-dev.json(不存在按全量注册运行):provider 与模型级 disabled 黑名单、api 与 baseUrl 覆盖、救活被协议判定跳过的 provider

优先级:pi 原生 models.json 中显式声明的 provider 受保护(本扩展跳过),模型级 modelOverrides 直接生效。

{
  "providers": {
    "<provider-id>": {
      "disabled": false,
      "api": "openai-responses",
      "baseUrl": "https://gw.example.com/v1",
      "models": { "<model-id>": { "disabled": false, "api": "openai-completions", "name": "显示名" } }
    }
  }
}

api 合法值:anthropic-messages、openai-completions、openai-responses、google-generative-ai、google-vertex、bedrock-converse-stream。配置语法或校验失败时告警并按无配置运行,不崩溃。

安装

pi install npm:@brightmeows/pi-models-dev

适配版本

实测 pi 1.5.2。

License

MIT