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

claude-code-checkpoint

v1.0.6

Published

Automatic project snapshots for Claude Code - never lose your work again

Downloads

18

Readme

🚀 Claude Code Checkpoint

npm version

Automatic project snapshots for Claude Code - never lose your work again!

What is this?

Claude Code Checkpoint automatically creates snapshots of your project after every Claude operation. Think of it as "auto-save" for your entire codebase - capturing the state after each AI-assisted change.

Features

  • 📸 Automatic Snapshots - Creates checkpoints after every Claude operation
  • 🔍 Smart Change Detection - Only saves when files actually change
  • ↩️ Easy Restore - Restore to any previous checkpoint with one command
  • 📊 Checkpoint History - View and manage all your checkpoints
  • 🚫 Smart Exclusions - Ignores node_modules, .git, build files, etc.
  • 💾 Efficient Storage - Uses rsync for fast, space-efficient snapshots

Installation

npx claude-code-checkpoint

This single command will:

  1. Install the checkpoint hook into Claude Code
  2. Set up the checkpoint command in your PATH
  3. Configure automatic snapshots on file changes
  4. Create your first checkpoint

Usage

Automatic Checkpoints

Once installed, checkpoints are created automatically after every Claude operation that modifies files. You don't need to do anything!

Manual Commands

# List all checkpoints
checkpoint list

# Restore to a specific checkpoint
checkpoint restore 5
checkpoint restore last
checkpoint restore previous

# Create a manual checkpoint
checkpoint create "Before major refactor"

# Compare checkpoints
checkpoint diff 3 5

# View checkpoint details
checkpoint show 5

# Clear all checkpoints for current project
checkpoint clear

How It Works

  1. Hook Integration - Integrates with Claude Code's STOP hook
  2. Change Detection - Uses SHA256 hashing to detect file changes
  3. Smart Storage - Creates full snapshots only when changes occur
  4. Project Isolation - Each git repository has its own checkpoint history

Storage Location

Checkpoints are stored in:

~/.claude/checkpoint/data/YOUR_PROJECT_NAME/

Exclusions

The following are automatically excluded from checkpoints:

  • .git/ - Version control
  • node_modules/ - Dependencies
  • dist/, build/, .next/ - Build outputs
  • __pycache__/, *.pyc - Python cache
  • .DS_Store - System files
  • And more...

Examples

Scenario 1: Oops, Claude broke something!

# See what checkpoints are available
checkpoint list

# Output:
# 1. Initial state (30 minutes ago)
# 2. Added authentication (25 minutes ago)
# 3. Updated database schema (10 minutes ago)
# 4. Refactored user model (5 minutes ago) ← This broke things!

# Restore to before the breaking change
checkpoint restore 3

Scenario 2: Compare changes

# See what changed between checkpoints
checkpoint diff 2 4

# Output shows all file modifications

Uninstall

To remove the checkpoint system:

npx claude-code-checkpoint uninstall

Requirements

  • Claude Code CLI installed
  • Git repository (checkpoints work per-project)
  • macOS, Linux, or Windows with WSL

Author

Created by mrrxwyz

License

MIT License - see LICENSE file for details.