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

pi-models-metadata

v0.1.2

Published

Pi extension that registers provider models with metadata enrichment.

Readme

Pi Model Metadata Extension

English | 中文

安装

pi install npm:pi-models-metadata
# 自定义 provider base URL 和 API Key
export PIMM_BASE_URL=https://openrouter.ai/api/v1
export PIMM_API_KEY=your_api_key_here
# 然后启动 pi
pi

可选配置

# 默认使用 OpenAI Responses API
export PIMM_API_TYPE=openai-responses
# OpenAI Chat Completions 兼容 provider 使用这个
export PIMM_API_TYPE=openai-completions
export PIMM_PROVIDER_NAME=custom-provider-name
export PIMM_METADATA_DATA_URL=https://yourdomain.com/path/to/models-data.json
export PIMM_CACHE_TTL_SECONDS=3600
export PIMM_CACHE_DIR=/path/to/cache
export PIMM_SKIP_CACHE=true

扩展也会读取当前目录下的 .env 文件。真实环境变量优先级高于 .env。 模型列表和 metadata 默认本地缓存 1 小时。默认缓存目录是 $XDG_CACHE_HOME/pi-models-metadata;未设置 XDG_CACHE_HOME 时使用 ~/.cache/pi-models-metadata。设置 PIMM_SKIP_CACHE=true 可以强制重新请求 provider 模型列表和 metadata;请求成功后仍会更新本地缓存。

更新内容

  • 模型 ID 和显示名称
  • Context window
  • 最大输出 token 数
  • 文本/图片输入能力
  • Reasoning 支持
  • 输入/输出/cache 价格

更多插件

  • tab-follow-up: 使用 Tab 而不是 Alt+Enter 来触发跟进输入。