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

@jasonfutch/worktree-manager

v1.1.0

Published

Terminal app for managing git worktrees with AI assistance

Downloads

208

Readme

Worktree Manager TUI/CLI

A terminal app for managing git worktrees with AI assistance.

Features

  • TUI Interface - Full terminal UI built with blessed
  • Git Worktree Management - Create, list, and remove worktrees
  • Branch Flexibility - Create worktrees from new branches, existing local branches, or remote branches
  • IDE Integration - Open worktrees in VS Code, Cursor, Zed, and more
  • AI Integration - Launch Claude, Gemini, or Codex in any worktree
  • Parallel Development - Work on multiple features simultaneously
  • Auto-Update Notifications - Get notified when a new version is available

Requirements

  • Node.js >= 18
  • Git
  • Optional: VS Code, Cursor, Zed, Claude CLI

Installation

npm install -g @jasonfutch/worktree-manager

Usage

Interactive TUI Mode

# Launch TUI in current directory
wtm

# Launch TUI for a specific repo
wtm /path/to/repo

Keybindings

| Key | Action | | ------- | ------------------------- | | ↑/k | Move up | | ↓/j | Move down | | Enter | Select/Details | | n | Create worktree (new or existing branch) | | d | Delete worktree | | e | Open in editor (selector) | | t | Open terminal | | a | Launch AI tool (selector) | | r | Refresh | | ? | Help | | q | Quit |

Creating Worktrees

Press n to create a new worktree. You'll be presented with two options:

  1. Create new branch - Enter a new branch name and select a base branch to create it from
  2. Use existing branch - Select from available local or remote branches

When using existing branches:

  • Local branches are listed first
  • Remote branches are marked with ⬇ and listed after local branches
  • Selecting a remote branch (e.g., origin/feature) automatically creates a local tracking branch
  • Branches already checked out in other worktrees are filtered out

CLI Commands

# List all worktrees
wtm list
wtm list /path/to/repo

# Create a new worktree (creates new branch from base)
wtm create feature/my-feature
wtm create feature/my-feature -b main
wtm create feature/my-feature -p /custom/path

# Create worktree from existing branch
wtm create existing-branch        # Uses existing local branch
wtm create origin/feature -e      # Creates local tracking branch from remote

# Remove a worktree
wtm remove feature/my-feature
wtm remove feature/my-feature --force

# Open worktree in editor
wtm open feature/my-feature
wtm open main -e cursor
# Editors: code, cursor, zed, webstorm, subl, nvim

# Open terminal in worktree
wtm terminal feature/my-feature
wtm term main

# Launch AI tool in worktree
wtm ai feature/my-feature
wtm ai main -t gemini
# Tools: claude, gemini, codex

# Update to latest version
wtm update

# Show detailed help
wtm help

How It Works

  1. Worktrees - Uses git worktree to create isolated working directories for each branch
  2. Parallel Development - Each worktree is independent, allowing you to run different AI coding sessions
  3. IDE Integration - Opens editors in the worktree directory so your AI assistant has the right context
  4. Terminal Sessions - Opens new terminal windows/tabs in the worktree directory

Updating

The CLI automatically checks for updates once per day and notifies you when a new version is available:

╭─────────────────────────────────────────────────╮
│                                                 │
│   Update available 1.0.0 → 1.1.0                │
│   Run npm i -g @jasonfutch/worktree-manager     │
│                                                 │
╰─────────────────────────────────────────────────╯

You can also manually update at any time:

wtm update

Screenshots

Main Interface

Main TUI

Create New Worktree

Create Worktree

Open In Editor

Editor Selector

Open In AI Tool

AI Selector


Development

Installation from Source

git clone https://github.com/jasonfutch/worktree-manager
cd worktree-manager
npm install
npm run build

# Link globally for testing
npm link

Commands

npm run dev      # Run in development mode
npm run build    # Build TypeScript
npm run clean    # Clean build artifacts

Architecture

worktree-manager/
├── src/
│   ├── index.ts          # CLI entry point
│   ├── types.ts          # TypeScript types
│   ├── errors.ts         # Custom error classes
│   ├── constants.ts      # Application constants
│   ├── version.ts        # Version from package.json
│   ├── git/
│   │   └── worktree.ts   # Git worktree operations
│   ├── tui/
│   │   └── app.ts        # Blessed TUI application
│   └── utils/
│       ├── helpers.ts    # Utility functions
│       ├── shell.ts      # Shell escaping utilities
│       ├── launch.ts     # Editor/terminal launchers
│       └── checks.ts     # Startup validation
├── dist/                 # Compiled output
├── package.json
├── tsconfig.json
└── README.md

License

MIT