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

monkey-git

v1.0.13

Published

Git worktree workflow tools — jump between branches, clean up merged worktrees, and stay productive.

Downloads

1,383

Readme

🐒 monkey

Git worktree workflow tools. Jump between branches in isolated worktrees, clean up when done.

Install

npm install -g monkey-git

How It Works

~/Sites/
├── my-project/                  ← main worktree (dev branch)
├── my-project-feat/login/       ← monkey jump feat/login
├── my-project-fix/bug-123/      ← monkey jump fix/bug-123

Each worktree is a full working copy sharing the same .git objects — no cloning, instant creation.

Commands

| Command | Description | |---------|-------------| | monkey jump <branch> | Create a worktree, run setup, and open in editor | | monkey jump --term <branch> | Same, but open a terminal instead of the editor | | monkey jump --no-open <branch> | Create and setup the worktree without opening anything | | monkey jump --from-base <branch> | Fork from the main worktree instead of the current branch | | monkey drop [branch] | Remove a worktree and delete its branch | | monkey list | List all active worktrees with clean/dirty status | | monkey swap <branch> | Open an existing worktree in your editor | | monkey prune | Clean up worktrees for branches already merged into base | | monkey config | Show current configuration |

Safety guards

monkey drop prompts for confirmation (y/N) when:

  • The worktree has uncommitted changes
  • The branch is not merged into the base branch

Configuration

git config monkey.baseBranch dev     # Base branch for prune (default: auto-detects dev/main/master)
git config monkey.editor cursor      # Preferred editor (default: auto-detects from environment)

Project Setup Hooks

When monkey jump creates a new worktree, it looks for a setup script in the current worktree (where you ran the command) and runs it inside the new worktree directory.

Resolution order:

  1. .local.monkey.sh — personal/local setup (add to .gitignore)
  2. .monkey.sh — shared team setup (commit to repo)
  3. Auto-install — if neither exists, detects your package manager (pnpm/yarn/npm/bun) from the lockfile and runs install automatically

Scripts run inside the new worktree directory with these environment variables:

  • $ROOT — the worktree you ran monkey jump from
  • $MAIN_ROOT — the main worktree (first worktree, typically your base branch)

Example: .monkey.sh (shared, committed)

#!/usr/bin/env bash
# Shared setup — runs for every team member on `monkey jump`

# Install dependencies
pnpm install

# Copy environment file from main worktree
cp "$MAIN_ROOT/.env" .env

# Run codegen
pnpm api:codegen

Example: .local.monkey.sh (personal, gitignored)

#!/usr/bin/env bash
# Personal overrides — takes priority over .monkey.sh

pnpm install

# Use my local dev database
cp "$MAIN_ROOT/.env" .env
sed -i '' 's/DATABASE_URL=.*/DATABASE_URL=postgres:\/\/localhost:5432\/mydb/' .env

# Symlink large assets from main worktree instead of copying
ln -sf "$MAIN_ROOT/public/assets" public/assets

Shell Integration

Completions

# Zsh — add to ~/.zshrc
fpath=("$(npm root -g)/monkey-git/lib/completions" $fpath)
autoload -Uz compinit && compinit

# Bash — add to ~/.bashrc
source "$(npm root -g)/monkey-git/lib/completions/monkey.bash"

Shell function mode

Source the init script to get monkey-jump/monkey-drop style functions alongside the monkey CLI:

# Add to ~/.zshrc or ~/.bashrc
source "$(npm root -g)/monkey-git/lib/shell-init.sh"

Platform Support

Works on macOS, Linux, and Windows (Git Bash / WSL). Editor auto-detection checks git config monkey.editor$VISUAL → Cursor → VS Code → system default (open / xdg-open / start).

License

MIT