snapcd automatically snapshots your local dev environment every time you cd into a project. Diff any two snapshots to see exactly what changed — Node version, globals, env vars, open ports.
| snapback save [label] | Save a snapshot. Label is optional. |
| snapback diff | Diff the two most recent snapshots. |
| snapback diff <label1> <label2> | Diff any two named snapshots. |
| snapback list | List all snapshots for the current project. |
| snapback show <label> | Show full details of a snapshot. |
| snapback hook | Output shell hook for auto-snapshotting on cd. |
| snapback clean [-n <number>] | Delete old snapshots, keep last N (default: 10). |
Switch between example scenarios to see what the diff looks like.
Add the shell hook to your .zshrc or .bashrc. Works like nvm or direnv — silent, under 100ms.
Reload your shell.
From now on, every cd into a directory silently saves a snapshot in the background. No prompt changes, no delays.
~/.snapback/<project-name>/snapshots.json.