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 🙏

© 2025 – Pkg Stats / Ryan Hefner

git-oops

v1.1.1

Published

Fast, safe, terminal-first Git helper for common workflow fixes. Move commits off wrong branch, split changes, yank safely, and more.

Readme

git-oops

Node.js Version npm downloads License: MIT

Fast, safe, terminal-first Git helper for common workflow fixes.

Move commits off wrong branch, split changes, yank safely, and more. Optimizes for correctness, safety, and zero surprises.

✨ Features

  • 🛡️ Safety-first: Non-destructive by default with safety tags before risky operations
  • Lightning fast: <200ms for non-LLM operations
  • 🎯 Just works: Zero configuration, works on macOS, Linux, and Windows
  • 🧪 Battle-tested: 88% test coverage across real-world scenarios
  • 💡 Smart: Optional AI assistance for commit messages and conflict resolution

🚀 Installation

Requires Node.js 18+

npm install -g git-oops

Once installed, use either:

git-oops <command>    # Direct command
git oops <command>    # Git alias (if supported by your Git version)

Commands

Quick Fixes

save [message]

Quickly save all changes with a commit (like git add . && git commit)

git oops save                           # Quick save with default message
git oops save -m "fix: updated styles"  # Save with custom message
git oops save --yes                     # Skip confirmation

fixup

Fix the last commit with current changes

git oops fixup                    # Add current changes to last commit
git oops fixup -m "better title" # Also update the commit message
git oops fixup --dry-run         # See what would happen

undo

Safely undo recent commits (keeps changes in working directory)

git oops undo           # Undo last commit
git oops undo -n 3      # Undo last 3 commits
git oops undo --dry-run # Preview what would be undone

Workflow Fixes

wrong-branch [new-branch]

Move commits from current branch to a new branch and reset current branch to upstream

git oops wrong-branch              # Auto-generate branch name
git oops wrong-branch feature/fix  # Specify branch name
git oops wrong-branch --dry-run    # See what would happen

split

Split staged changes into separate commits by top-level directory

git oops split           # Split by directory
git oops split --dry-run # Preview the plan

yank

"Just let me pull" - stash dirty work, pull with rebase, and restore

git oops yank

revert-merge <sha>

Safely revert a merge commit with proper safety checks

git oops revert-merge abc1234      # Revert merge commit
git oops revert-merge abc1234 -m 2 # Use parent 2 as mainline
git oops revert-merge abc1234 --dry-run # Preview the revert

State Management

pocket

Save exact working state to a hidden ref

git oops pocket              # Save locally
git oops pocket --push       # Save and push to origin

Safety Features

  • Safety tags: All destructive operations create backup tags automatically
  • Confirmation prompts: Asks before doing anything destructive (use --yes to skip)
  • Dry run mode: Preview what would happen with --dry-run
  • Push detection: Warns when modifying pushed commits
  • Protected branch detection: Extra warnings for main/master branches

Usage

Use either:

  • git-oops <command>
  • git oops <command> (Git auto-discovers the binary)

Examples

Made a typo in your last commit?

# Fix it and update the commit
echo "fixed typo" >> file.txt
git oops fixup

Committed on the wrong branch?

git oops wrong-branch feature/actual-fix

Need to quickly save everything?

git oops save -m "WIP: working on feature X"

Accidentally committed sensitive data?

git oops undo  # Undoes commit but keeps changes
# Remove sensitive data, then recommit

Mixed up different changes in staging?

git oops split  # Splits by directory into separate commits

License

MIT