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

gitgrip

v0.4.2

Published

git a grip - Multi-repo workflow tool

Readme


Manage multiple related repositories as a single workspace with synchronized branches, linked pull requests, and atomic merges.

Inspired by Android's repo tool, gitgrip brings manifest-based multi-repo management to any project.

Features

  • Manifest-based configuration - Define all your repos in a single YAML file
  • Multi-platform support - Works with GitHub, GitLab, and Azure DevOps (even mixed in one workspace)
  • Synchronized branches - Create and checkout branches across all repos at once
  • Linked PRs - Create pull requests that reference each other across repos
  • Atomic merges - All-or-nothing merge strategy ensures repos stay in sync
  • Status dashboard - See the state of all repos at a glance

Installation

Homebrew (macOS/Linux)

brew tap laynepenney/tap
brew install gitgrip

npm

npm install -g gitgrip

Quick Start

1. Create a manifest repository

Create a new repo to hold your workspace manifest (e.g., my-workspace), then add a manifest.yaml:

version: 1

manifest:
  url: [email protected]:your-org/my-workspace.git

repos:
  frontend:
    url: [email protected]:your-org/frontend.git
    path: ./frontend
    default_branch: main

  backend:
    url: [email protected]:your-org/backend.git
    path: ./backend
    default_branch: main

  shared:
    url: [email protected]:your-org/shared-libs.git
    path: ./shared
    default_branch: main

settings:
  pr_prefix: "[cross-repo]"
  merge_strategy: all-or-nothing

2. Initialize a workspace

mkdir my-workspace && cd my-workspace
gr init [email protected]:your-org/my-workspace.git

This clones the manifest repo into .gitgrip/manifests/ and all defined repositories.

3. Start working

# Check status of all repos
gr status

# Create a feature branch across all repos
gr branch feature/new-feature

# Make changes, commit in each repo, then create linked PRs
gr pr create --title "Add new feature"

# Sync all repos with latest from remote
gr sync

Commands

| Command | Description | |---------|-------------| | gr init <url> | Initialize workspace from manifest repo | | gr sync | Pull latest from all repos | | gr status | Show status of all repos | | gr branch [name] | Create or list branches | | gr checkout <branch> | Checkout branch across repos | | gr add [files] | Stage changes across repos | | gr diff | Show diff across repos | | gr commit -m "msg" | Commit across repos | | gr push | Push across repos | | gr pr create | Create linked PRs | | gr pr status | Show PR status | | gr pr merge | Merge all linked PRs | | gr repo add <url> | Add a new repository to workspace | | gr forall -c "cmd" | Run command in each repo | | gr tree add <branch> | Create a worktree-based workspace | | gr tree list | List all griptrees | | gr tree remove <branch> | Remove a griptree |

Command Details

gr init <manifest-url>

Initialize a new workspace by cloning the manifest repository and all defined repos.

gr sync [options]

Pull latest changes from the manifest and all repositories.

| Option | Description | |--------|-------------| | --fetch | Fetch only, don't merge | | --no-link | Skip processing copyfile/linkfile entries | | --no-hooks | Skip running post-sync hooks |

gr status

Show status of all repositories including branch, changes, and sync state.

gr branch [name]

Create a new branch across all repositories, or list existing branches.

| Option | Description | |--------|-------------| | -r, --repo <repos...> | Only operate on specific repos | | --include-manifest | Include manifest repo |

gr pr create

Create linked PRs across repos with changes.

| Option | Description | |--------|-------------| | -t, --title <title> | PR title | | -b, --body <body> | PR body | | -d, --draft | Create as draft | | --push | Push branches first |

gr pr merge

Merge all linked PRs atomically.

| Option | Description | |--------|-------------| | -m, --method <method> | merge, squash, or rebase | | --no-delete-branch | Keep branches after merge | | -f, --force | Merge even if checks pending |

gr repo add <url>

Add a new repository to the workspace. Parses the URL, updates the manifest, and optionally clones the repo.

| Option | Description | |--------|-------------| | --path <path> | Local path (default: ./<repo-name>) | | --name <name> | Name in manifest (default: from URL) | | --branch <branch> | Default branch (default: main) | | --no-clone | Only update manifest, skip cloning |

If the workspace is on a feature branch, the new repo will be checked out to that branch automatically.

gr forall -c "<command>"

Run a command in each repository (like AOSP's repo forall).

| Option | Description | |--------|-------------| | -c, --command | Command to run (required) | | -r, --repo <repos...> | Only run in specific repos | | --include-manifest | Include manifest repo | | --continue-on-error | Continue if command fails |

Environment variables available in command:

  • REPO_NAME - Repository name
  • REPO_PATH - Absolute path to repo
  • REPO_URL - Repository URL

Manifest Format

The manifest file (manifest.yaml) defines your workspace:

version: 1

manifest:
  url: [email protected]:your-org/workspace.git

repos:
  repo-name:
    url: [email protected]:your-org/repo.git
    path: ./local-path
    default_branch: main

settings:
  pr_prefix: "[cross-repo]"
  merge_strategy: all-or-nothing

Merge Strategies

  • all-or-nothing - All linked PRs must be approved before any can merge
  • independent - PRs can be merged independently

Multi-Platform Support

gitgrip supports multiple hosting platforms. The platform is auto-detected from the repository URL.

Supported Platforms

| Platform | URL Patterns | |----------|--------------| | GitHub | [email protected]:org/repo.git, https://github.com/org/repo.git | | GitLab | [email protected]:group/repo.git, https://gitlab.com/group/repo.git | | Azure DevOps | [email protected]:v3/org/project/repo, https://dev.azure.com/org/project/_git/repo |

Authentication

Each platform requires its own authentication:

GitHub:

export GITHUB_TOKEN=your-token
# or
gh auth login

GitLab:

export GITLAB_TOKEN=your-token
# or
glab auth login

Azure DevOps:

export AZURE_DEVOPS_TOKEN=your-pat
# or
az login

Mixed-Platform Workspaces

A single manifest can contain repos from different platforms:

repos:
  frontend:
    url: [email protected]:org/frontend.git
    path: ./frontend

  backend:
    url: [email protected]:org/backend.git
    path: ./backend

  infra:
    url: https://dev.azure.com/org/project/_git/infra
    path: ./infra

Self-Hosted Instances

For GitHub Enterprise, GitLab self-hosted, or Azure DevOps Server, add a platform config:

repos:
  internal:
    url: [email protected]:team/repo.git
    path: ./internal
    platform:
      type: gitlab
      baseUrl: https://gitlab.company.com

Griptrees (Multi-Branch Workspaces)

Work on multiple branches simultaneously without switching. Griptrees use git worktrees to create parallel workspace directories.

# Create a griptree for a feature branch
gr tree add feat/new-feature

# Creates a sibling directory with all repos on that branch:
# ../feat-new-feature/
#   ├── frontend/
#   ├── backend/
#   └── shared/

# Work in the griptree
cd ../feat-new-feature
gr status

# List all griptrees
gr tree list

# Lock to prevent accidental removal
gr tree lock feat/new-feature

# Remove when done (branches are preserved)
gr tree remove feat/new-feature

Benefits:

  • No branch switching required
  • Shared git objects (fast creation, minimal disk usage)
  • Independent working directories

Shorthand

Use gr as the primary command:

gr status
gr sync
gr branch feature/foo

The long form gitgrip also works.

Requirements

  • Node.js >= 18.0.0
  • Git
  • Platform CLI (optional, for token auth fallback):
    • GitHub: gh CLI
    • GitLab: glab CLI
    • Azure DevOps: az CLI

License

MIT