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

gpt-fast-mode-toggle

v0.1.0

Published

Pi extension for toggling GPT Fast mode with OpenAI priority processing

Readme

gpt-fast-mode-toggle

这是一个 Pi 扩展,用于在当前会话中切换 GPT Fast mode。开启后,它会在符合条件的 OpenAI 请求中加入 service_tier: "priority"。

安装

pi install npm:gpt-fast-mode-toggle

也可以直接从 GitHub 安装:

pi install git:github.com/Albert-PZY/gpt-fast-mode-toggle

使用

/gpt-fast          # 切换状态
/gpt-fast on       # 开启
/gpt-fast off      # 关闭
/gpt-fast status   # 查看状态

启动 Pi 时可以使用 --gpt-fast 默认开启当前会话:

pi --gpt-fast

交互模式下,符合条件的当前模型会在 footer 状态区域显示 GPT Fast。

适用范围

扩展只处理以下 API 的 GPT 模型:

  • openai-completions
  • openai-responses
  • openai-codex-responses

模型 ID 的最后一段需要以 gpt 或 chatgpt 开头,并且后面是连字符、空格或字符串结束。其他模型不会被修改。

Fast mode 状态保存在当前 Pi 会话的分支中,不会作为全局设置影响其他会话。扩展关闭时不会清理其他来源设置的 service_tier。

Priority Processing 需要上游账号、模型和网关支持,可能增加调用费用。扩展不读取认证信息,也不发送额外网络请求。

开发

pnpm install --frozen-lockfile
pnpm release:check

发布

稳定版本通过 GitHub Actions 的 Release workflow 发布。普通 git push 只触发 CI;发布时手动启动一次 workflow,版本提交、tag、npm 发布和 GitHub Release 会自动完成。

首次配置(只需一次):

  1. 登录 npm,打开 gpt-fast-mode-toggle 的包设置。
  2. 添加 GitHub Actions Trusted Publisher:
    • Repository owner:Albert-PZY
    • Repository:gpt-fast-mode-toggle
    • Workflow filename:release.yml
  3. 如果不使用 Trusted Publishing,就在 GitHub 仓库的 Settings → Secrets and variables → Actions 中添加 NPM_TOKEN。它只作为备用认证,不要写入代码。

每次发布:

  1. 先把代码推送到默认分支。
  2. 打开 GitHub 仓库的 Actions → Release → Run workflow。
  3. 输入版本号,例如 0.1.0 或 0.1.1,并将 confirm 设置为 true。

workflow 会先运行 pnpm release:check,然后更新 package.json 版本、提交 chore(release): 发布 v<version>、推送 v<version> tag、发布 npm 包并创建 GitHub Release。版本号必须是有效的 SemVer,且不能低于当前版本。

许可证

MIT