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

@hyxi/pi-openspec

v0.1.2

Published

OpenSpec skills and `/opsx-*` prompts as a Pi package.

Readme

@hyxi/pi-openspec

A Pi package that registers the OpenSpec agent skills, and the /opsx-* prompt templates.

Installation

pi install npm:@hyxi/pi-openspec

Install it globally (user settings), not per project: the package provides the shared openspec CLI, skills and prompt templates for every project the agent works in.

Requires Node.js 22.19 or later — the same minimum Pi itself needs.

What It Provides

  • Skills (dist/skills/): one skill per OpenSpec workflow (openspec-explore, openspec-propose, openspec-apply-change, ...). Like all Pi skills, they use progressive disclosure: only the skill name and description sit in the system prompt, and the full SKILL.md is read on demand — no per-project AGENTS.md injection.
  • Prompt templates (dist/prompts/): one /opsx-<workflow> command per workflow (/opsx-propose, /opsx-apply, /opsx-archive, ...), matching what openspec init --tools pi generates in .pi/prompts/.
  • /opsx-init command (extension): copies the package's skills and prompts into the current project's .pi/ directory, so a project keeps the OpenSpec surface even when the package itself is not installed there.
  • openspec on PATH: installing the package writes a wrap script to the agent's $PI_CODING_AGENT_DIR/bin/openspec (~/.pi/agent/bin/openspec by default) that runs the bundled @fission-ai/openspec CLI, so skills that shell out to openspec work without a separate global install.

The skills and prompts are generated from the pinned @fission-ai/openspec release at build time; the rendering version is recorded in each skill's generatedBy frontmatter.

How It Works

On install, update, and startup the Pi extension writes the openspec wrap script into the agent's bin directory (~/.pi/agent/bin by default) — a directory Pi prepends to the bash tool's PATH. A file already present at that path without the package's managed marker is treated as user-managed and left untouched.

Development

  • pnpm run build bundles the extension and renders the exact artifacts openspec init --tools pi writes for the pi tool from the installed @fission-ai/openspec package, placing everything under dist/. No skills or prompts are committed to the repository. The extension's session_start hook runs the built installer after Pi loads the package, including installs performed with npm lifecycle scripts disabled.
  • The wrap script is a plain Node script that locates the bundled CLI at run time (the agent's npm root, the working directory, npm's global install location, and the package path recorded in Pi's settings for local-path installs), so it keeps working if the agent directory moves to another machine. It is built as a plain JS entry from its TypeScript source (src/openspec-shim.ts to dist/openspecShim.js), because the installed file is extensionless and Node only type-strips .ts files. @fission-ai/openspec is a runtime dependency, not a dev-only one, so the CLI exists wherever the package is installed.
  • For a local-path install (pi install /path/to/pi-openspec), Pi loads the extension on startup and runs the same installer; node dist/installShim.js remains available for manual use after pnpm run build.
  • The package version tracks the pinned @fission-ai/openspec version. Dependabot opens pull requests for new releases, and the Sync OpenSpec Version workflow aligns the package version with the pinned dependency.