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

gpx-tool

v0.6.3

Published

Git Profile eXchanger - switch between git identities instantly

Readme

gpx

Git Profile eXchanger - switch between multiple Git identities instantly from the CLI.

As a nvm but for git profiles. One command to switch your name, email, and SSH key across projects.


Installation

npm install -g gpx-tool

Commands

gpx add <name>

Add a new profile. Runs GitHub OAuth -> generates SSH key -> uploads to GitHub automatically.

gpx add work
gpx add work --ssh-key ~/.ssh/id_ed25519_work   # skip SSH generation, use existing key provided

gpx use <name>

Switch the active Git identity globally, or just for the current repo.

gpx use work
gpx use personal --local   # local to current repo only

gpx current

Show which profile is currently active.

gpx current
gpx current --json

gpx ls

List all saved profiles.

gpx ls
gpx ls --json

gpx show <name>

Show full details of a profile.

gpx show work

gpx edit <name>

Edit an existing profile's SSH key, GPG key, or signing setting.

gpx edit work --ssh-key ~/.ssh/new_key
gpx edit work --gpg-key ABC123DEF456
gpx edit work --signing true

gpx remove <name> / gpx rm <name>

Remove a profile. SSH keys are moved to ~/.ssh/gpx-removed/, not deleted but stored safely.

gpx remove work
gpx rm work
gpx rm work --force   # to remove currently active profile

gpx run <name> -- <command>

Run a single command temporarily under a different profile, then restore.

gpx run personal -- git commit -m "minor change"        # changes 3892 lines of code🫤
gpx run work -- git push origin main

gpx doctor [name]

Diagnose profile and system health - checks Git, SSH key, SSH agent, GPG key.

gpx doctor
gpx doctor work
gpx doctor --json

gpx init

Inject shell integration and prompt badge into your shell config.

gpx init --shell bash
gpx init --shell zsh
gpx init --shell powershell

After running, your prompt shows the active profile:

[work] ~/projects/company-app $

gpx completion

Print shell completion script.

gpx completion --shell bash
gpx completion --shell zsh

gpx config

Get or set gpx configuration values.

gpx config set auto-detect true
gpx config get auto-detect

gpx export

Export all profiles to JSON.

gpx export
gpx export -o my-profiles.json

gpx import <filepath>

Import profiles from a JSON file.

gpx import my-profiles.json

Global Flags

Available on every command:

| Flag | Description | |---|---| | --json | Structured JSON output | | --no-interactive | Disable prompts - for scripts and agents | | --no-color | Disable ANSI colors | | --quiet | Suppress all output except errors | | --debug | Show debug logs |


Data Storage

~/.gpx/
├── profiles.json        # All profile definitions
├── active.json          # Currently active global profile
├── config.json          # gpx settings (auto-detect, etc.)
└── backups/             # Timestamped backups before writes

~/.config/gpx/
└── config.json          # GitHub OAuth tokens (keyed by GitHub username)

~/.ssh/
├── id_ed25519_gpx_work      # Generated private key (eg. 'work' profile)
├── id_ed25519_gpx_work.pub  # Generated public key (eg. 'work' profile)
├── config                   # Contains gpx-managed blocks
└── gpx-removed/             # SSH keys from removed profiles (not deleted)

gpx manages ~/.gitconfig and ~/.ssh/config safely - it only ever touches its own clearly-marked blocks and uses atomic writes throughout.


Local Development

bun install
bun run dev             # run CLI locally
bun run build           # compile to dist/
bun run test            # run all tests
bun run test:coverage   # get test coverage
bun run lint            # check for linting errors
bun run format          # format using prettier