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

@monroewilliams/pi-local

v0.1.2

Published

Pi extension for configuring multiple local LLM inference engine connections.

Readme

pi-local

A Pi extension for configuring and switching between multiple local LLM inference engine connections.

Features

  • Multiple connections — configure several local inference servers (LM Studio, oMLX, llama.cpp, etc.) and switch between them
  • Auto-detection — queries connected endpoints for available models with rich metadata (size, context window, type)
  • Model loading — load/unload models on servers that support it (oMLX, LM Studio)
  • Persistence — your default provider and model are restored automatically on Pi restart
  • macOS keychain — offers to store API keys in the macOS keychain via security commands
  • Reasoning support — discovers and passes through reasoning capabilities from models that advertise them

Supported backends

| Backend | Detection | Load/Unload | |---------|-----------|-------------| | oMLX | /v1/models/status + /api/status | Yes | | LM Studio | /api/v1/models | Yes | | OpenAI-compatible | /v1/models | No |

The extension tries oMLX first, then LM Studio, then falls back to OpenAI-compatible.

Commands

/local-login

Add or remove connections. Each connection is identified by its base URL.

Manage Connections
> Remove: http://127.0.0.1:1234
  Add new connection
  Done

On macOS, if you enter a direct API key, you have the option to store it in the keychain. The key is then referenced via a !security command.

/local-model

Select a connection and model. Shows server stats (for oMLX), model size, context window, and model type.

Installation

You can either install this directly with the pi command via npm:

pi install npm:@monroewilliams/pi-local

or check out this repository and add the extension to your Pi configuration in ~/.pi/agent/settings.json (useful if you want to modify it to better suit your purposes):

{
  "extensions": [
    "/path/to/pi-local"
  ]
}

Then reload Pi (/reload) and run /local-login to add your first connection.

API key formats

The API key field accepts all Pi auth key formats:

| Format | Example | Description | |--------|---------|-------------| | Direct key | sk-1234567890abcdef | Stored as-is | | Environment variable | $MY_API_KEY or ${MY_API_KEY} | Resolved via resolveConfigValue | | Shell command | !security find-generic-password -s 'pi-local' -a 'http://...' -w | Shell execution, stdout used | | Empty | (leave blank) | No authentication |

On macOS, direct keys are optionally stored on the keychain.

Storage

  • Connections — stored in ~/.pi/agent/auth.json keyed by base URL
  • Default provider/model — stored in ~/.pi/agent/settings.json (defaultProvider / defaultModel)
  • Model metadata — cached alongside the connection in auth.json (contextWindow, maxTokens, reasoning)

Development

npm install
npm run typecheck    # TypeScript check
npm run check        # Biome + TypeScript + tests
npm run format       # Auto-format

License

MIT