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

@agentapprove/pi

v0.1.10

Published

Agent Approve extension for Pi - approve or deny AI agent tool calls from your iPhone and Apple Watch

Downloads

615

Readme

@agentapprove/pi

Agent Approve extension for Pi. Approve or deny Pi tool calls from your iPhone or Apple Watch. Get the app on the App Store.

Install

Run the Agent Approve installer and select Pi:

npx agentapprove

If Agent Approve is already paired on this machine, you can install the Pi package directly:

pi install npm:@agentapprove/[email protected]

What It Covers

  • tool_call blocking approval
  • native tool completion events
  • MCP tool approvals and completion events grouped by MCP server
  • prompt, response, thinking, compaction, stop, and session-end events
  • optional follow-up input from Agent Approve when Pi finishes a turn

Runtime Mapping

| Pi event | Agent Approve event | | --- | --- | | session_start | session_start | | before_agent_start | user_prompt | | tool_call | blocking approval request | | tool_result | command_executed, tool_complete, or mcp_complete | | tool_execution_end | completion fallback if tool_result was not observed | | message_end | thought, response, or plan_generated | | session_compact | context_compact | | agent_end | stop, with optional follow-up input | | session_shutdown | session_end |

Approval requests include:

{
  agent: "pi",
  hookType: "tool_call",
  toolName: string,
  toolType: string,
  toolInput?: object,
  command?: string,
  conversationId: string,
  generationId?: string,
  toolCallId?: string,
  model?: string,
  mcpServer?: RuntimeMcpServer,
  metadata: {
    sessionId: string,
    piEventName: "tool_call",
    cwd?: string,
    workspaceRoots?: string[],
    turnId?: string,
    messageId?: string,
    provider?: string,
    model?: string,
    toolCallId?: string
  },
  timestamp: number
}

Events use the same Agent Approve event envelope with agent: "pi", eventType, conversationId, optional generationId, optional tool metadata, optional mcpServer, optional sessionStats, metadata, and timestamp.

Configuration

The extension reads the standard Agent Approve config from ~/.agentapprove/env.

| Variable | Default | Description | | --- | --- | --- | | AGENTAPPROVE_API | https://api.agentapprove.com | Agent Approve API URL | | AGENTAPPROVE_API_VERSION | v001 | API version | | AGENTAPPROVE_TOKEN | keychain or config token | CLI API token | | AGENTAPPROVE_PRIVACY | full | minimal, summary, or full | | AGENTAPPROVE_FAIL_BEHAVIOR | ask | allow, deny, or ask if Agent Approve is unreachable | | AGENTAPPROVE_AGENT_NAME | Pi | Display name for this Pi agent | | AGENTAPPROVE_PI_NAME | Pi | Legacy Pi-specific display name fallback |

Security

Requests are signed with Agent Approve HMAC headers and include the SHA256 hash of the installed package bundle. The API allowlists published bundle hashes by hook version.