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

@kianax/wt

v0.2.0

Published

Git worktree manager - make worktrees as effortless as branches

Readme

wt - Git Worktree Manager

A fast, interactive TUI for managing git worktrees. Makes worktrees as effortless as branches.

Install

npm install -g @kianax/wt

Or build from source (requires Bun):

bun install && bun run build
cp wt /usr/local/bin/

Shell Integration

Shell integration enables wt to change your working directory when selecting a worktree. Without it, selections just print the path.

Bash/Zsh - add to ~/.bashrc or ~/.zshrc:

eval "$(wt shell-init bash)"   # or zsh

Fish - add to ~/.config/fish/config.fish:

wt shell-init fish | source

The TUI will prompt you to set this up on first run.

Usage

wt                    # Open interactive TUI
wt new <name>         # Create new worktree
wt cd <name>          # Switch to worktree (requires shell integration)
wt rm <name>          # Remove worktree
wt mv <old> <new>     # Rename worktree
wt ls                 # List all worktrees
wt current            # Show current worktree name

Command Options

# Create with options
wt new feature --base main        # Branch from specific base
wt new feature --branch feat/foo  # Custom branch name
wt new feature --detach           # Detached HEAD (no branch)

# Remove with options
wt rm feature --force             # Force remove even if dirty
wt rm feature --delete-branch     # Also delete the branch

# List with options
wt ls --json                      # JSON output
wt ls --porcelain                 # Machine-readable format

# Current worktree info
wt current --path                 # Full path
wt current --branch               # Branch name

TUI Keybindings

| Key | Action | |-----|--------| | j/k or ↑/↓ | Navigate | | Enter | Select worktree | | n | New worktree | | d | Delete worktree | | r | Rename worktree | | i | Show details | | s | Settings | | q | Quit |

Status Indicators

The TUI shows status for each worktree:

| Status | Meaning | |--------|---------| | dirty | Uncommitted changes | | ahead | Commits ahead of comparison branch | | behind | Commits behind comparison branch | | diverged | Both ahead and behind | | synced | Up-to-date with comparison branch | | merged | Branch merged into comparison branch | | stale | No commits in 30+ days |

Sync status compares against origin/main by default (using local refs—no fetch). Falls back to origin/master, then local main/master if remote doesn't exist.

Press i on a worktree to see which branch it's comparing against (e.g., ↑3 ahead (vs origin/main)).

To customize the comparison branch, press s to open Settings or edit ~/.config/wt/config.json:

{
  "defaults": {
    "comparisonBranch": "origin/develop"
  }
}

How It Works

Worktrees are stored in ~/.worktrees/<repo-id>/ by default:

~/.worktrees/
  github.com-user-repo/
    feature-auth/
    bugfix-login/

The repo ID is derived from your git remote URL (e.g., github.com-user-repo).

Configuration

All configuration is in ~/.config/wt/config.json:

{
  "defaults": {
    "branchPrefix": "feature/",
    "staleDays": 30
  },
  "repos": {
    "github.com-user-repo": {
      "branchPrefix": "feat/"
    }
  }
}

Use repos to override settings for specific repositories (keyed by repo ID).

License

MIT