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

gh-ssh

v1.3.0

Published

Interactive CLI that guides you through creating or reusing SSH keys and connecting them to GitHub.

Readme

gh-ssh

An interactive CLI that guides you through creating or reusing an SSH key and connecting it to GitHub in a 7-step workflow. Supports macOS and Linux with clipboard integration.

Installation

Requirements:

  • Node.js >= 20

Install globally:

  • npm install -g gh-ssh

Run without installing:

  • npx gh-ssh

Usage

Run interactive setup:

  • gh-ssh

Show help/version:

  • gh-ssh --help
  • gh-ssh --version

Provide options up front:

  • gh-ssh --email [email protected]
  • gh-ssh --type ed25519
  • gh-ssh --key-name id_github_work
  • gh-ssh --update-config
  • gh-ssh --skip-config
  • gh-ssh --upload
  • gh-ssh --skip-upload
  • gh-ssh --key-title "My MacBook (work)"

Options:

  • -h, --help
  • -v, --version
  • --email <email> GitHub email for key comment
  • --type <ed25519|rsa> Key type (default: ed25519)
  • --key-name <name> Key filename in ~/.ssh (default: id_ed25519 or id_rsa)
  • --update-config Update ~/.ssh/config with the selected key
  • --skip-config Skip updating ~/.ssh/config
  • --upload Upload the public key to GitHub via gh (errors if not possible)
  • --skip-upload Skip uploading via gh and show the manual flow
  • --key-title <title> Title to use when uploading via gh

How it works

  1. Detect existing public keys in ~/.ssh and optionally reuse one.
  2. Generate a new key pair if needed (ed25519 by default, rsa 4096 fallback).
  3. Start ssh-agent if it is not already running.
  4. Add the selected key to ssh-agent.
  5. Optionally update ~/.ssh/config (with an optional GitHub host alias).
  6. Copy the public key to clipboard (macOS/Linux) or print it to the terminal, then add it at GitHub Settings.
  7. Prompt to verify with ssh -T [email protected] (or your alias).

Platform notes

  • macOS: full workflow, clipboard uses pbcopy.
  • Linux: full workflow, clipboard uses wl-copy, xclip, or xsel (if available).
  • Requires ssh-keygen, ssh-agent, and ssh-add to be available in PATH.

Development

  • Install dependencies: npm install
  • Run locally (TypeScript): npm run dev
  • Type check: npm run typecheck
  • Build CLI: npm run build
  • Run built CLI: npm start

Manual testing

  • npm run dev -- --help
  • npm run dev -- --version
  • npm run dev -- --email [email protected] --type ed25519

Conventional Commits

We use Conventional Commit–style PR titles and squash merges to drive automated versioning and changelogs. Always use a semantic PR title and squash-merge so the PR title becomes the commit message used for releases.

Examples:

  • feat: add support for multiple GitHub hosts
  • fix: handle missing ssh-agent
  • feat!: change default key type (breaking change)
  • chore: update dev dependencies (no release)