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-lab/openai

v1.0.0

Published

Image generation, ChatGPT Fast controls and native web search for pi

Readme

@pi-lab/openai

Image generation and editing through Codex or the OpenAI API, plus Fast mode and native web search for Pi.

Install and configure

pi install npm:@pi-lab/openai

Add the following to ~/.pi/agent/settings.json (global) or .pi/settings.json (project), preserving existing settings, then run /reload:

{
  "openai": {
    "fast": false,
    "webSearch": true,
    "imageGeneration": { "backend": "codex" }
  }
}

All features are disabled by default. Project settings override global values; only trusted projects can override image configuration, which is replaced as a whole.

Features

Image generation

Adds the generate_image tool for image generation and editing with OpenAI models, including the GPT Image 2, 2.5 and 2.6 families.

Two backends are available: Codex and the OpenAI API. The Codex backend only supports gpt-image-2.

Configuration

Choose one of the following configurations:

{
  "openai": {
    "imageGeneration": { "backend": "codex" }
  }
}
{
  "openai": {
    "imageGeneration": { "backend": "openai", "model": "gpt-image-2" }
  }
}

Set imageGeneration to false to disable images. Disable @pi-lab/codex-image before enabling this feature, since both register generate_image.

Credentials

  • Codex: /login → OpenAI Codex (legacy). Uses account quota.
  • OpenAI API: OPENAI_API_KEY, or an OpenAI API key configured in Pi. The environment key takes precedence. Uses the official API endpoint and API billing.

Fast mode

Request Fast processing for chat. /fast toggles it; /fast on, /fast off and /fast status are also available. Command changes persist in the session; new sessions use settings.

Configuration

{
  "openai": {
    "fast": true
  }
}

Credentials

OpenAI → Sign in with ChatGPT, with an openai chat model. Inactive when using openai-codex or API keys.

Web search

Enables native web search when using an openai chat model.

When @pi-lab/websearch is also installed, native search takes precedence on supported connections; other connections use @pi-lab/websearch.

Configuration

{
  "openai": {
    "webSearch": true
  }
}

Credentials

OpenAI → Sign in with ChatGPT, with an openai chat model. Inactive when using openai-codex or API keys.