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-file-protection

v1.2.1

Published

Pi extension that confirms before delete/edit operations - protects files from accidental changes

Downloads

625

Readme

Pi Agent File Protection / Pi Agent 文件保护

A Pi extension that protects your files and system from accidental destructive operations.

一个保护您的文件和系统免受意外破坏操作的 Pi 扩展。

Features / 功能

Git & GitHub CLI Protection / Git 与 GitHub CLI 保护

Prompts for confirmation before executing blacklisted git commands, and before executing any gh commands. 执行黑名单中的 git 命令前会要求确认,并且执行任何 gh 命令前也会要求确认。

Delete Protection / 删除保护

Prompts for confirmation before running destructive commands like rm, rmdir, unlink, mv, or any command containing "delete" (e.g., find -delete, kubectl delete). 执行破坏性命令(如 rmrmdirunlinkmv)或包含 "delete" 的命令(如 find -deletekubectl delete)前会要求确认。

Edit Protection / 编辑保护

Prompts for confirmation before:

  • Using write or edit tools
  • Running bash commands like truncate, sed -i, or output redirection (>, >>)

在以下操作前会要求确认:

  • 使用 writeedit 工具
  • 运行 bash 命令如 truncatesed -i 或输出重定向(>>>

Privilege Protection / 权限保护

Prompts for confirmation before:

  • Running sudo commands (elevated privileges)
  • Setting dangerous permissions with chmod/chown 777

在以下操作前会要求确认:

  • 运行 sudo 命令(提升权限)
  • 使用 chmod/chown 777 设置危险权限

Installation / 安装

推荐方式 (Recommended):

pi install npm:pi-file-protection

从源码安装 (From source):

pi install git:github.com/rUrU516/pi-file-protection

Update / 更新

To get the latest features and protections:

获取最新功能和保护:

pi update

Usage / 使用

Once installed, the extension automatically activates and will prompt you for confirmation before executing any protected operations.

安装后,扩展会自动激活,并在执行任何受保护的操作前提示您确认。

License / 许可证

MIT