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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@relbns/github-cloner

v1.1.1

Published

Github Cloner is a CLI tool for cloning Github repositories with interactive lists in the terminal. the tool lists your repositories and sorts them by owners (users and organizations) and by name. choosing the repo will clone it to the current directory i

Downloads

257

Readme

GitHub Cloner

🚀 Interactive CLI tool for effortlessly cloning your GitHub repositories and managing branches

Features

  • 📋 Interactive list of all your GitHub repositories
  • 🔍 Smart organization by users and organizations
  • 🎯 Branch management within git repositories:
    • View and checkout branches from open PRs
    • Browse and checkout remote branches
    • Auto-detect existing branches
    • Pull latest changes for local branches
  • 🔎 Quick search functionality with autocomplete
  • ⚡ Clone repositories directly to your current directory
  • 🎯 Duplicate detection to prevent accidental re-cloning
  • ⚙️ Configurable sorting options (by name or last update)

Installation

npm install -g @relbns/github-cloner

Prerequisites

  • Node.js >=18.0.0
  • npm >=9.5.1
  • GitHub account with a personal access token

Setting up GitHub Token

  1. Create a GitHub personal access token:

  2. Add token to your shell profile:

    # For bash users (in ~/.bashrc or ~/.bash_profile):
    export GITHUB_TOKEN=your_token_here
    
    # For zsh users (in ~/.zshrc):
    export GITHUB_TOKEN=your_token_here
  3. Reload your shell or run:

    source ~/.bashrc  # or ~/.zshrc for zsh users

Usage

Simply run:

clone

Repository Cloning

When run in a non-git directory:

  1. Displays an interactive menu of your repositories
  2. Allows you to search and select a repository
  3. Clones the selected repository to your current directory

Branch Management

When run inside a git repository:

  1. Choose between:
    • Browse branches from open PRs
    • Browse all remote branches
    • Clone a new repository
  2. For PR branches:
    • View all branches with open PRs
    • See which branches exist locally
    • Pull latest changes for existing branches
  3. For remote branches:
    • View branches that don't exist locally
    • Easily checkout new branches

Navigation

  • Use ↑/↓ arrows to navigate
  • Start typing to search repositories
  • Press Enter to select
  • Choose "Go back" to return to previous menu
  • Choose "Exit" to quit

Settings

Access settings menu to:

  • Configure sorting preferences
  • Adjust display options
  • Manage GitHub token

Support

For bugs and feature requests, please open an issue.

License

MIT © Ariel Benesh