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-switch-profiles

v1.0.0

Published

Manage and switch between multiple git accounts (work, personal, etc.)

Readme

git-switch-profiles

npm version npm downloads license node

Switching between a work and a personal git account is painful. You forget to change your email, push a personal commit under your company name, or spend five minutes figuring out why SSH authentication is broken.

git-switch-profiles fixes this. One command switches your entire git identity — name, email, and SSH key — and actively blocks the other accounts so nothing leaks through.

gsp work      # everything switches to your work identity
gsp personal  # everything switches back

Install

npm install -g git-switch-profiles

Requirements: Node.js 14+, git, ssh-keygen, and a running ssh-agent (standard on macOS and most Linux distros).


Setting up a profile

gsp init

This walks you through everything interactively:

  • A name for the profile (work, personal, freelance, anything)
  • The author name and email that will appear on your commits
  • An SSH key — generate a fresh one or pick an existing key from ~/.ssh/
  • Which git hosts this profile owns (github.com, gitlab.com, bitbucket.org, or your own)

That's it. Your SSH host keys are trusted automatically so the first push just works.


Switching profiles

gsp <name>

Under the hood this does three things atomically:

  • Sets user.name and user.email in your global ~/.gitconfig
  • Loads the right SSH key into the agent
  • Updates ~/.ssh/config to route the active profile's hosts to the correct key, and hard blocks every other profile's hosts

That last part matters. When you switch to personal, your work hosts get PubkeyAuthentication no — the wrong key literally cannot authenticate, no matter what's left in the agent or macOS Keychain.


All commands

| Command | Description | |---|---| | gsp init | Add a new profile | | gsp <name> | Switch to a profile | | gsp list | See all profiles and which is active | | gsp current | Show the active profile | | gsp info <name> | Full details — key path, hosts, status | | gsp edit <name> | Update a profile | | gsp remove <name> | Delete a profile |


SSH key types

When creating a new key you can choose:

| Type | Notes | |---|---| | RSA 4096 | Default. Works everywhere. | | Ed25519 | Modern and faster. Recommended for new setups. | | ECDSA 521 | Elliptic curve alternative. |


Where profiles are stored

~/.git-switch/profiles.json — plain JSON, yours to inspect or back up.


License

MIT © Raphael Neves