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

git-puller

v2.0.0

Published

Git pull all repository of directory tree from specified directory.

Readme

git-puller 🚀

NPM version CI

A modern, beautiful CLI tool to pull all git repositories in a directory tree with smart branch detection and colorful output.

✨ Features

Smart Branch Detection

  • 🎯 Auto-detects the right branch: tries mainmaster → current branch
  • No more guessing which branch to use across different repositories
  • Override with custom branch when needed

Modern CLI Interface

  • 🎨 Colorful output with syntax highlighting
  • Progress indicators for scanning and pulling operations
  • 📊 Summary table showing success/failure statistics
  • Clear status symbols for easy scanning

Developer Experience

  • Parallel pulling for maximum performance
  • 📁 Recursive directory scanning handles nested repos
  • 🛡️ TypeScript with full type safety
  • Modern async/await architecture
  • 🧪 Comprehensive test coverage with Vitest
  • 🎯 ESLint + Prettier for code quality
  • 🪝 Pre-commit hooks with Husky
  • 🚀 CI/CD with GitHub Actions
  • 💻 Supports Node.js 18+

Installation

Install the command line interface globally:

npm install -g git-puller

Or use with npx:

npx git-puller -d ./

🚀 Quick Start

# Pull all repos in current directory (auto-detects branch)
git-puller -d ./

# Or use the short alias
gplr -d ./

📖 Usage

Usage: git-puller [options]

🚀 Pull all git repositories in a directory tree with smart branch detection

Options:
  -V, --version           output the version number
  -d, --directory <path>  Target directory (required)
  -r, --remote <name>     Git remote (default: "origin")
  -b, --branch <name>     Git branch (auto | main | master | custom) (default: "auto")
  -h, --help              display help for command

Smart Branch Detection

When using the default "auto" mode, git-puller will:

  1. ✅ Check for main branch first
  2. ✅ Fall back to master if main doesn't exist
  3. ✅ Use current branch if neither exists

Examples

Basic Usage

# Pull all repos in current directory
git-puller -d ./

# Pull all repos in a projects folder
git-puller -d ~/projects

# Using the short alias
gplr -d ./

Advanced Usage

# Force a specific branch across all repos
git-puller -d ./ -b main

# Use a different remote
git-puller -d ./ -r upstream

# Combine options
gplr -d ~/work -r origin -b develop

Output Example

┌─────────────────────────────────────────────────┐
│         Git Puller - Pulling Repositories       │
└─────────────────────────────────────────────────┘

 Remote: origin  •  Branch: auto-detect

✓ Found 5 directories to check

✓ /path/to/repo1
  Updated: 3 changes
  Files changed: 2 files

✓ /path/to/repo2
  Already up to date

┌────────────────────┬──────────┬───────────────┐
│ Status             │ Count    │ Percentage    │
├────────────────────┼──────────┼───────────────┤
│ ✓ Successful       │ 1        │ 20.0%         │
├────────────────────┼──────────┼───────────────┤
│ ○ Up to date       │ 4        │ 80.0%         │
├────────────────────┼──────────┼───────────────┤
│ ✗ Failed           │ 0        │ 0.0%          │
└────────────────────┴──────────┴───────────────┘

  All repositories processed successfully!

💡 Why git-puller?

Problem

Managing multiple git repositories across different directories is tedious:

  • Different repos use different default branches (main vs master)
  • Manually pulling each repository is time-consuming
  • No visibility into which repos were updated
  • Error-prone when managing dozens of projects

Solution

git-puller solves this by:

  • Auto-detecting the correct branch for each repository
  • Pulling all repos in parallel for speed
  • Beautiful output showing exactly what happened
  • Summary statistics for quick overview
  • Error handling that doesn't stop on single failures

Perfect for:

  • 👨‍💻 Developers managing multiple projects
  • 📁 Keeping workspace repositories in sync
  • 🏢 Teams with many microservices
  • 🎓 Students with multiple course repositories

🛠️ Development

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

# Run tests
npm test

# Run tests with UI
npm run test:ui

# Run tests with coverage
npm run test:coverage

# Lint code
npm run lint

# Format code
npm run format

# Check formatting
npm run format:check

Project Structure

git-puller/
├── src/
│   ├── index.ts        # Main CLI entry point
│   ├── ui.ts           # Modern UI components
│   ├── utils.ts        # Directory utilities
│   └── utils.test.ts   # Unit tests
├── dist/               # Compiled JavaScript
└── package.json

📋 Requirements

  • Node.js >= 18.0.0
  • Git installed and accessible from command line

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 License

Provided under the terms of the MIT license.

🙏 Acknowledgments

Built with:


Made with ❤️ for developers who manage multiple repositories