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

git-userhub

v4.9.5

Published

Switch Git accounts in one command. No config editing. No SSH key chaos.

Readme

git-user

💡 npm Package Note: This package is published as git-userhub on npm. Once installed, your terminal command is git-user.


⚡ Quick Start

1. Installation

npm install -g git-userhub

2. Register Your Identities

git-user register

Interactive prompts guide you to set up your work, personal, or freelance profiles with names, emails, and bound SSH keys.

3. Switch Instantly

# Switch active identity globally
git-user switch work

# Or switch for the current repository only
git-user switch personal --local

4. Interactive Terminal UI (TUI)

Prefer an interactive visual menu? Launch the keyboard-driven TUI:

git-user tui

Navigate with / (or k / j), switch panes with Tab ⇥, and select with Enter ↵.


🎯 What It Handles Automatically

When you switch identities, git-user updates your environment atomically in <0.1 seconds:

  • 👤 Git Identity: Updates user.name and user.email.
  • 🔑 SSH Key: Sets core.sshCommand so Git operations automatically use the bound SSH key.
  • 🖋️ Commit Signing: Configures SSH/GPG commit signing parameters automatically.
  • 📂 Directory Auto-Switching: Binds workspace folders (~/work, ~/personal) to switch identity automatically via includeIf.

🔥 Key Features & Highlights

| Feature | Highlight | Documentation | | :--- | :--- | :--- | | ⚡ Atomic Switch | Swaps name, email, and SSH keys in under 100ms | Learn More → | | 📂 Auto-Switch Directories | Bind folders (git-user bind-path work ~/work/) to auto-switch | Learn More → | | 🪝 Pre-Commit Guard | Block accidental commits if the wrong identity is active | Learn More → | | 🖋️ Commit Signing | Native SSH & GPG commit signing support | Learn More → | | 🔄 Encrypted Sync | Sync identities across machines via a private Git repo | Learn More → | | 🖥️ Rich TUI | Keyboard-navigable ( Tab) terminal interface | Learn More → | | 🎨 Terminal Prompt | Show active Git identity in Zsh, Bash, Fish, or Starship prompt | Integration Guide → |


📌 Command Reference Cheat Sheet

# Core Operations
git-user register                      # Guided setup for a new identity
git-user switch <name>                 # Switch active global identity
git-user switch <name> --local         # Switch identity for current repository only
git-user switch -c <name> -e <email>   # Create and switch in one step
git-user current                       # Print currently active identity
git-user list                          # List all registered identities

# Directory & Auto-Switching
git-user bind-path <name> <dir>        # Bind directory to auto-switch identity
git-user unbind-path <name> <dir>      # Remove directory binding

# Security & SSH Management
git-user pubkey                        # Output public key of active identity
git-user pubkey publish [platform]     # Upload public key to GitHub/GitLab/Bitbucket
git-user sign <name> [--on|--off]      # Toggle automatic SSH commit signing
git-user hook install                  # Install pre-commit guard hook

# Sync & Maintenance
git-user sync                          # Sync identities across devices
git-user doctor                        # Run environment health check
git-user tui                           # Open interactive terminal interface
git-user --update                      # Update to latest version

📚 Full Documentation & Deep Dives

For detailed guides, troubleshooting, terminal prompt customization, and security architecture: