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

gitmt

v2.4.0

Published

CLI tool to manage multiple git accounts and SSH keys

Readme

GitMT - Git Multiple Account Manager

A lightweight, developer-friendly CLI tool to seamlessly manage multiple Git accounts and SSH keys across different platforms (macOS, Windows, and Linux).

Features

  • 👤 Multiple Profiles: Keep work, personal, and client profiles isolated.
  • 🔑 SSH Key Management: Automatically generate secure SSH keys and configure ~/.ssh/config.
  • 💻 Cross-Platform: Fully supports Windows (resolves backslash path issues for OpenSSH), macOS, and Linux.
  • 🎨 Visual Indicator: Easily check your active profile with a color-coded terminal list.
  • 📋 Clipboard Integration: Copy public SSH keys instantly with one command.

Installation

Install GitMT globally via npm:

npm install -g gitmt

Prerequisite: Make sure git and OpenSSH (ssh-keygen) are installed on your system.


Commands

gitmt add -n "<name>" -e "<email>" -a "<alias>"   # Add a new git user
gitmt list                                        # List all configured users
gitmt current                                     # Show current active user
gitmt change <id>                                 # Switch to a different user
gitmt key <id>                                    # Copy & display public key
gitmt remove <id>                                 # Remove a user profile

Step-by-Step Example Workflow

1. Add your Profiles

Add your work profile:

gitmt add -n "John Doe (Work)" -e "[email protected]" -a "john-work"

Add your personal profile:

gitmt add -n "John Doe" -e "[email protected]" -a "john-personal"

2. View Profiles

To see all your profiles, run:

gitmt list

Output Terminal Preview:

Configured git users:
  1. John Doe (Work) <[email protected]> [john-work]
   Clone URL format: git clone [email protected]:username/repo.git
* 2. John Doe <[email protected]> [john-personal] (active)
   Clone URL format: git clone [email protected]:username/repo.git

(The active profile row * 2. John Doe... will be highlighted in bold green in your terminal).

3. Switch Profiles

Switch global git configuration (updates user.name and user.email globally):

gitmt change 1

4. Clone Repositories

Use the customized SSH host alias when cloning repositories:


Cross-Platform Notes & Troubleshooting

Windows Compatibility

OpenSSH on Windows expects path separators in the SSH config file (~/.ssh/config) to be forward slashes (/). GitMT automatically handles this by converting standard backslash pathing (e.g., C:\Users\John\.ssh\...) to forward slash format (e.g., C:/Users/John/.ssh/...) in your configuration, preventing connection issues.

Linux Clipboard Support

For the gitmt key <id> copy-to-clipboard functionality to work on Linux, one of the following clipboard managers must be installed:

  • xclip (recommended)
  • xsel

Install using your package manager (e.g., sudo apt install xclip).