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

@beaverslab/claw-backup

v0.6.0

Published

CLI workflow for creating, backing up, and restoring claw data with YAML rules.

Readme

@beaverslab/claw-backup

简体中文 | English

基于规则的本地应用数据备份与恢复 CLI 工具。

安装

npm install -g @beaverslab/claw-backup

命令

init-rule

创建新的备份规则文件。

# 交互模式(会提示输入规则名称)
claw-backup init-rule

# 通过参数指定名称
claw-backup init-rule --name my-project

# 不提供名称时自动生成时间戳命名

规则文件存储在 ~/.beaver-skill/beaver-claw-backup/ 目录。

backup

使用规则文件运行备份。

# 交互选择
claw-backup backup

# 通过规则名称(在默认目录中查找)
claw-backup backup my-project

# 通过相对路径
claw-backup backup ./rules/my-project.yaml

# 通过绝对路径
claw-backup backup /path/to/rule.yaml

restore

从备份归档恢复数据。

模式一:基于规则的恢复

# 交互选择规则和归档
claw-backup restore

# 使用指定规则(通过名称或路径)
claw-backup restore my-project
claw-backup restore ./rules/my-project.yaml

模式二:直接解压

# 直接解压归档到目标目录(无需规则文件)
claw-backup restore backup.tar.gz ~/restore-target

规则文件格式

规则文件为 YAML 格式,结构如下:

version: 1
clawType: openclaw
createdAt: 2026-03-25T12:00:00.000Z
sourceDir: ~/.openclaw
backupDir: ~/claw-backups
restoreDir: ~/.openclaw
include:
  - data/
  - config.json
exclude:
  - '*.tmp'
  - cache/

备份存储结构

备份按规则名称组织在子目录中:

~/claw-backups/
├── openclaw/
│   ├── 202603261200.tar.gz
│   └── 202603261800.tar.gz
├── myproject/
│   └── 202603261500.tar.gz
└── formatcheck/
    └── 202603251353.tar.gz

每个规则的归档存储在 {backupDir}/{ruleName}/ 目录,文件名为时间戳格式。

更新日志

更新日志

相关

相关的 skill 定义和用户文档位于 skills/beaver-claw-backup/ 目录。