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

v0.0.5

Published

Named extension sets with CLI switcher

Readme

@pi-orca/profiles

Named settings snapshots with CLI switcher for switching between curated Pi configurations.

Overview

Profiles let you save and switch between named Pi settings configurations. Each profile is a snapshot of managed settings fields (packages, model defaults, etc.) stored in profiles.yaml. Switching profiles updates settings.json and reloads extensions to match.

The package also provides pi-orca-switch-profile, a standalone CLI binary that switches profile before launching Pi — no /reload needed.

Installation

The package is part of the Pi Orca monorepo and loaded as a Pi extension:

{
  "pi": {
    "extensions": ["./dist/index.js"]
  }
}

Bootstrap

On first run, the extension creates ~/.pi/agent/orca/profiles.yaml with two profiles:

| Profile | Description | |---------|-------------| | default | Snapshot of current settings.json at bootstrap time | | solo | Solo coding — tasks, models, cleanup, profiles only |

Slash Commands

/profiles (no args)

Show the current active profile (or "custom" if settings don't match any saved profile).

/profiles list

List all available profiles with descriptions.

/profiles switch <name> (alias: /profiles set)

Switch to a named profile. Updates settings.json with the profile's managed fields and triggers a reload so extensions match the new configuration. Supports tab-completion for profile names.

/profiles switch solo

/profiles save <name> [description]

Save the current settings.json as a named profile. If the profile already exists, it is overwritten.

/profiles save my-config My custom configuration

CLI: pi-orca-switch-profile

Switch profile before launching Pi so the correct extensions are loaded from the start:

# Just switch (updates settings.json and exits)
pi-orca-switch-profile solo

# Switch then launch Pi
pi-orca-switch-profile default pi --resume

How it works: The binary calls bootstrapProfiles() and switchProfile() to update settings.json before Pi starts. When Pi launches, settings already reflect the desired profile — no /reload needed.

Available via npx, npm install -g @pi-orca/profiles, or directly in the monorepo's node_modules/.bin/.

Profile Storage

Profiles are stored in YAML at ~/.pi/agent/orca/profiles.yaml:

profiles:
  default:
    description: Current Pi configuration
    settings:
      packages:
        - npm:@pi-orca/tasks
        - npm:@pi-orca/models
        # ...
  solo:
    description: "Solo coding — tasks, models, cleanup"
    settings:
      packages:
        - npm:@pi-orca/tasks
        - npm:@pi-orca/models
        - npm:@pi-orca/cleanup
        - npm:@pi-orca/profiles

Managed Fields

Profiles manage specific fields from settings.json, split into two categories:

Replace fields — fully controlled by the profile. If a field is not present in the profile, it is cleared from settings.json on switch:

  • packages — list of Pi packages
  • extensions — local extension overrides
  • skills — local skill overrides
  • prompts — local prompt overrides
  • themes — local theme overrides

Merge fields — user preferences preserved across switches. Only updated if the profile explicitly specifies them:

  • theme — active theme name
  • defaultProvider — default AI provider
  • defaultModel — default model
  • defaultThinkingLevel — default thinking level

The field lists are defined in types.ts via REPLACE_FIELDS and MERGE_FIELDS.

Architecture

src/
├── cli.ts          # pi-orca-switch-profile standalone CLI binary
├── index.ts        # Extension entry point, slash command handler
├── loader.ts       # Profile I/O, switching, settings comparison, bootstrap
├── commands.ts     # Slash command implementations (show, list, switch, save)
├── types.ts        # Profile, ProfilesConfig, PiSettings, REPLACE_FIELDS, MERGE_FIELDS
└── __tests__/
    └── loader.test.ts  # Unit tests for loader functions

Dependencies

  • @pi-orca/core — Path utilities, completion tree resolution, settings I/O (readPiSettings, writePiSettings, getUserOrcaDir, ensureDir)
  • yaml — YAML parse/stringify for profile storage

License

MIT