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

worktree-jumper

v1.0.0

Published

Interactively jump between git worktrees from your shell

Readme

worktree-jumper

CI npm version License: Apache-2.0

Interactively jump between git worktrees from your shell. Run wtj, pick a worktree from the list, and your shell cd's straight there.

Why

Worktrees used to be a niche git feature. AI-assisted development made them everyday infrastructure: coding agents isolate their work in parallel worktrees, so several branches now move at once on the same repo instead of one at a time.

That shifts the human's job to hopping between those worktrees all day — reviewing an agent's diff, running the code, testing a PR locally before merging it. Git has no built-in command to switch into a worktree, so the ritual is always the same:

  • git worktree list, find the right row
  • select and copy a long, unmemorable path (.claude/worktrees/fix-auth-redirect...)
  • assemble a cd, paste it

Do that a few dozen times a day and it's real friction. worktree-jumper collapses the whole thing into: type wtj, pick, land.

Install

npm install -g worktree-jumper

Node 22.13+ is required.

Setup

worktree-jumper init

With no arguments, this detects your shell and prints the exact line to add to your shell config, along with the file to add it to — nothing is written for you. That line is a small eval; the binary itself can't cd your shell (only a child process, it can't reach into its parent), so init hands you a tiny shell function that does. Here's the line for each supported shell, ready to paste:

| Shell | Config file | Line to add | | ----- | --------------------------------------------- | ---------------------------------------------- | | zsh | ~/.zshrc | eval "$(worktree-jumper init zsh --print)" | | bash | ~/.bashrc | eval "$(worktree-jumper init bash --print)" | | fish | ~/.config/fish/conf.d/worktree-jumper.fish | worktree-jumper init fish --print \| source |

Prefer not to copy-paste it yourself:

worktree-jumper init zsh --install

--install needs an explicit shell (bash, zsh, or fish). It shows you the config file it's about to touch, asks for confirmation, and wires up the eval line for you — your shell config is only ever touched on this explicit path, after you say yes. It also tells you how to activate the change in your current shell right away, without opening a new one.

Custom function name

By default the function you get is wtj. To use a different name, add --as <name> — to both the eval line and the --install form:

eval "$(worktree-jumper init zsh --print --as jump)"
worktree-jumper init zsh --install --as jump

The name can contain letters, digits, and underscores, and can't start with a digit. Whichever name you install with is what you type daily, so pick one and use it consistently — if you reinstall with a different --as, the old function name stops working until you re-source your shell config.

Usage

wtj

Shows an interactive picker of the current repository's worktrees — branch name (or detached @ <sha> / (bare)), with the path as a hint and the worktree you're already in marked (current). Selecting one cd's your shell there. Press Esc/Ctrl-C to cancel without moving.

Supported shells

bash, zsh, and fish (3.4+).