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

@qiuhao7/claude-playbook-init

v1.0.1

Published

Claude CLI Scaffold Tool

Readme

Claude Playbook CLI

Claude CLI 脚手架工具,用于快速初始化和管理 Claude 配置(.claude 目录)。

特性

  • 🚀 快速初始化:一键拉取标准化的 Claude 配置模板
  • 🔄 智能合并:支持向现有配置中增量添加新功能,而不覆盖原有文件
  • 💾 自动备份:每次更新配置前自动创建备份
  • 🔧 配置还原:支持从备份中恢复配置
  • 🛡️ 安全保护:从不删除用户的 .claude 目录,确保数据安全
  • 📦 跨平台:支持 Windows, macOS 和 Linux

安装

npm install -g @qiuhao7/claude-playbook-init

使用

初始化配置

在任意目录下运行:

claude-playbook init

该命令会自动检测用户主目录下的 .claude 文件夹:

  • 如果不存在:自动从远程仓库克隆标准模板。
  • 如果已存在:
    • 自动创建当前配置的备份
    • 询问是否合并新配置
    • 确认后,会将远程模板中的文件合并到本地,同名文件将被更新,.git 目录会被自动过滤

还原配置

如果需要恢复到之前的配置版本:

claude-playbook restore

该命令会:

  • 列出所有可用的备份(按时间倒序)
  • 支持选择并还原到指定备份
  • 支持删除不需要的备份
  • 自动保留最近 5 个备份,清理旧备份

备份位置:~/.claude/.claude-backups/

开发

本地调试

# 安装依赖
npm install

# 链接到全局
npm link

# 运行
claude-playbook init
claude-playbook restore

测试

npm test

技术栈

  • Node.js
  • Commander (CLI 框架)
  • Inquirer (交互式命令行)
  • fs-extra (文件操作)
  • Jest (测试框架)