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

@savaryna/git-add-account

v2.2.3

Published

πŸ” A small CLI app that allows you to easily add multiple Git accounts on one machine. It switches between accounts automatically based on the workspace you are in.

Readme

@savaryna/add-git-account

πŸ” A small CLI app that allows you to easily add multiple Git accounts on one machine. It switches between accounts automatically based on the workspace you are in.

Agent usage (skill)

Add the skill using

npx skills add savaryna/git-add-account

and ask your agent to "add a new git account".

CLI usage

Run the command direcly with

npx @savaryna/git-add-account

or if you installed it globally with

npm i -g @savaryna/git-add-account

then you can run it using

git-add-account
# or the shorter version
gaa

For usage and command details run it with the --help option.

After going through all the steps, you will be presented with your public SSH key so you can copy, and add it to your Git provider. For example GitHub^1:

  1. Copy the public SSH key.
  2. Go to the SSH keys settings page.
  3. Click on New SSH key.
  4. Add the key as an Authentication Key.
  5. Click on Add SSH key.
  6. Add the same key again as a Signing Key if you chose to sign your work^2.

Done! Any git command you run from the workspace you chose (and its subdirectories), will now use this new account automatically.

How it works

A simple way to use multiple Git accounts on one machine is to use different SSH configs based on the directory you are in. The way @savaryna/add-git-account works is, it asks you for some basic information and then it creates files under .config/ in the workspace directory you specified.

  1. It creates a private/public ed25519 SSH keypair using ssh-keygen (see code).
  2. It creates a sshconfig file based on this template.
  3. It creates a gitconfig file based on this template.
  4. It appends a conditional include to your global Git config based on this template. This makes sure that any git command you run from the workspace you chose (and its subdirectories), will now use this new account automatically^3.
  5. Finally, it presents you with your public SSH key so you can copy, and add it to your Git provider.

License

MIT Β© Alex Tofan