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

@conreo/pi-zenmux

v1.0.4

Published

ZenMux provider extension for Pi — dynamic model discovery with caching

Readme

pi-zenmux

ZenMux provider extension for Pi. Auto-discovers and registers all available models from the ZenMux API gateway, with proper DeepSeek thinking-mode compat.

Install

pi install npm:@conreo/pi-zenmux

Setup

Set your ZenMux API key:

export ZENMUX_API_KEY="sk-..."

Usage

Start pi — ZenMux models appear under the zenmux provider:

pi

Select a model with /model or use zenmux/<model-id> directly:

/model zenmux/deepseek/deepseek-v4-pro
/model zenmux/openai/gpt-4o

Commands

  • /zenmux-refresh — Force refresh the model list from the ZenMux API

Supported Models

All models available through the ZenMux gateway are automatically discovered. This includes:

  • DeepSeek — v4-pro, v4-flash, v3.2, chat, reasoner, r1 (with proper thinking-mode compat)
  • OpenAI — gpt-4o, gpt-4o-mini, o3-mini, o4-mini, etc.
  • Anthropic — claude-sonnet-4-20250514, claude-opus-4-20250514, etc.
  • Google — gemini-2.5-pro, gemini-2.5-flash, etc.
  • And more — all models registered at zenmux.ai

DeepSeek Thinking Mode

This extension registers DeepSeek models with the proper compat flags so Pi natively manages reasoning_content across multi-turn conversations with tool calls. No fetch-intercept hacks — Pi's built-in handling activates automatically.

How It Works

  1. Startup: Reads cached model list from ~/.cache/pi-zenmux/models.json (24h TTL)
  2. Cache hit: Registers models synchronously (zero latency)
  3. Cache miss: Registers an empty provider, fetches models in the background, writes cache
  4. Model registration: DeepSeek models get compat.requiresReasoningContentOnAssistantMessages and thinkingFormat: "deepseek" so Pi handles reasoning properly

Development

Test locally without publishing:

ZENMUX_API_KEY="sk-..." pi -e ./extensions/index.ts

License

MIT