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-profiles

v0.1.1

Published

Configuration profile manager for pi (pi.dev)

Readme

pi-profiles

Configuration profile manager for pi. Switch between independent sets of settings, extensions, skills, themes, and auth with a single command.

Inspired by chemacs (Emacs profile switcher) and Neovim's NVIM_APPNAME.

How it works

Pi resolves its configuration directory via PI_CODING_AGENT_DIR. ppi creates and manages profile directories under ~/.pi/profiles/<name>/, then launches pi with the env var pointed at the chosen profile. Pi doesn't know it's being wrapped - the TUI renders directly through inherited stdio.

Install

npm install -g pi-profiles

Requires pi and Node.js (which you already have if you have pi).

Usage

# Create a profile
ppi create work
ppi create personal --own-auth    # independent API key

# Create from your current pi config
ppi create work --from-base

# Copy an existing profile
ppi create experiments --from work

# List profiles
ppi list

# Set a default
ppi set-default work

# Launch pi with a profile
ppi use work
ppi                               # launches the default profile
ppi use work -- -p "fix the bug"  # pass args to pi after --

# Delete a profile
ppi delete experiments            # interactive confirmation
ppi delete experiments --force    # skip confirmation

What a profile looks like

Each profile is a complete pi agentDir:

~/.pi/profiles/work/
├── settings.json
├── auth.json → ~/.pi/agent/auth.json  (symlink by default)
├── models.json → ~/.pi/agent/models.json
├── extensions/
├── skills/
├── tools/
├── prompts/
└── sessions/

Auth and models are symlinked from the stock pi config by default, so one pi login works everywhere. Pass --own-auth or --own-models to create for independent credentials.

Goals

  • Full isolation. Each profile is its own agentDir - settings, extensions, skills, themes, auth, sessions, prompts. Switching profiles means switching everything.

  • Zero pi modifications. Works entirely through the documented PI_CODING_AGENT_DIR env var and convention. No patches, no forks.

  • Zero runtime dependencies. Pure Node.js filesystem operations. Hand-rolled arg parser. Nothing to install beyond this package.

  • Library + CLI. ProfileManager class can be used programmatically (e.g., by a future orchestrator calling createAgentSession({ agentDir })). The CLI is a thin wrapper.

  • Composable. Profile paths are predictable (~/.pi/profiles/<name>/), so they work with external tools:

    docker run -v ~/.pi/profiles/work:/root/.pi/agent pi-image

Non-goals

  • Process-level sandboxing. Profiles manage which config to use, not where code runs. Docker, VMs, and bubblewrap are orthogonal infrastructure concerns. Pi's built-in sandbox extension handles tool-level restrictions within a profile.

  • Agent orchestration. Spawning multiple concurrent agents with different profiles is a motivating future use case, but the orchestrator itself is a separate project.

  • Runtime settings patching. No mid-session model/tool switching. Pi's built-in /model command handles that.

  • Registry file. Profiles live at ~/.pi/profiles/<name>/ by convention. No mapping file to maintain. The filesystem is the registry.

Programmatic usage

import { ProfileManager } from "pi-profiles";

const pm = new ProfileManager();
const profile = pm.resolve("work");
console.log(profile.path); // ~/.pi/profiles/work

// Use with pi's SDK
import { createAgentSession } from "@mariozechner/pi-coding-agent";
const { session } = await createAgentSession({ agentDir: profile.path });