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-flex-processing

v0.1.2

Published

Pi extension to switch OpenAI API requests between normal and Flex processing from chat UI.

Downloads

256

Readme

pi-flex-processing

A tiny pi extension that lets you switch OpenAI API requests between normal processing and Flex processing from the chat UI.

Flex processing lowers cost for supported OpenAI models in exchange for slower responses and occasional resource unavailability.

Install

pi install npm:pi-flex-processing

Usage

Inside pi:

/flex

Opens a simple selector for normal vs flex processing.

Direct commands:

/flex on       # enable OpenAI flex processing where supported
/flex off      # use normal OpenAI processing
/flex toggle   # switch between modes
/flex status   # show current mode

Alias:

/openai-flex

Supported OpenAI Flex models

As of 2026-05-29, OpenAI's Flex pricing table lists:

  • gpt-5.5
  • gpt-5.5-pro
  • gpt-5.4
  • gpt-5.4-mini
  • gpt-5.4-nano
  • gpt-5.4-pro

When flex mode is enabled on an unsupported OpenAI model, the extension warns once and sends normal processing instead (service_tier: "default"). The footer shows openai:flex n/a.

Behavior

  • Applies only to pi's openai provider, i.e. the provider that uses OPENAI_API_KEY.
  • Supported model + flex mode: sends service_tier: "flex".
  • Unsupported model + flex mode: warns and sends service_tier: "default".
  • Normal mode: sends service_tier: "default".
  • The selected mode is persisted in the current pi session.

Publishing

This repo publishes to npm through GitHub Actions and npm Trusted Publishing when a version tag is pushed.

One-time setup: configure npm Trusted Publishing for this package with GitHub Actions, repository laxman-patel/pi-flex-processing, workflow filename publish.yml, and no environment name.

Release flow:

npm version patch
npm pack --dry-run
git push --follow-tags

The pushed vX.Y.Z tag triggers .github/workflows/publish.yml, verifies the tag matches package.json, and runs npm publish --access public via OIDC trusted publishing.

Package metadata

This repo is structured as a pi package:

{
  "keywords": ["pi-package"],
  "pi": {
    "extensions": ["./extensions/openai-flex.ts"]
  }
}

That makes it discoverable by the pi package gallery at https://pi.dev/packages once published/listed.

Security note

Pi extensions run with your full system permissions. Review any extension before installing it.