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

@lucasygu/claude-backup

v0.1.0

Published

One-command backup for your Claude Code brain (~/.claude) to GitHub

Downloads

15

Readme

claude-backup

One-command backup for your Claude Code brain (~/.claude) to GitHub.

Your Claude Code config — skills, memory, agents, settings, hooks — is your accumulated AI expertise. This tool backs it up automatically so you never lose it.

Quick Start

npx @lucasygu/claude-backup init

That's it. This will:

  1. Detect your ~/.claude directory
  2. Create a private GitHub repo (via gh CLI)
  3. Generate a smart .gitignore (backs up config, ignores ephemeral data)
  4. Run the first backup
  5. Install a scheduler (every 30 min)
  6. Register Claude Code hooks (auto-sync on tool use + session end)

Install globally

npm install -g @lucasygu/claude-backup

This also installs the /backup skill for Claude Code.

Commands

claude-backup              # Smart default: init or sync
claude-backup init         # One-shot setup
claude-backup sync         # Backup now
claude-backup status       # Health check
claude-backup status --json  # Machine-readable status

claude-backup daemon install    # Install scheduled backup
claude-backup daemon uninstall  # Remove scheduler
claude-backup daemon status     # Check scheduler

claude-backup hook install      # Register Claude Code hooks
claude-backup hook uninstall    # Remove hooks
claude-backup hook status       # Check hooks

What gets backed up

| Backed up | Not backed up (by design) | |-----------|--------------------------| | CLAUDE.md (global instructions) | Session transcripts (JSONL — large, ephemeral) | | skills/ (custom skills) | Credentials & secrets | | agents/ (agent definitions) | Debug logs, cache, telemetry | | settings.json (permissions, model config) | Plugin marketplace cache | | keybindings.json | Temporary files | | plugins/installed_plugins.json | | | projects/*/memory/ (persistent memory) | | | hooks/ (hook scripts) | |

Three-layer backup

| Layer | Trigger | How | |-------|---------|-----| | Passive | Every Claude Code tool use | PostToolUse hook (5-min debounce) | | Scheduled | Every 30 min | launchd (macOS) / cron (Linux) | | Manual | You decide | claude-backup sync or /backup in Claude Code |

Cross-machine sync

If you use the same repo on multiple machines, the tool auto-remaps project memory directories when usernames differ:

Machine A (user: alice):  projects/-Users-alice-projects-myapp/memory/
Machine B (user: bob):    projects/-Users-bob-projects-myapp/memory/
                          ↑ auto-remapped on pull

Git-native design

Unlike other backup tools that copy files to a separate directory, this tool works directly in ~/.claude which is already a git repo. No rsync, no file drift — what you see is what's backed up.

Commit messages are category-aware:

vault-sync 2026-03-10 14:30 (3 memories, 1 skill, 2 config)
vault-sync 2026-03-10 15:00 (no changes, skipped)

Requirements

  • git (required)
  • gh CLI (optional — for automatic GitHub repo creation)
  • Node.js >= 22

As a Claude Code skill

After installing, use /backup in any Claude Code session:

/backup          # sync now
/backup init     # full setup
/backup status   # health check

License

MIT