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

@marcuwynu23/gitrepo

v1.0.1

Published

CLI tool to create GitHub repositories and optionally set remote origins

Downloads

3

Readme

gitrepo

A simple CLI tool to create GitHub repositories (in your personal account or organization) and automatically set them as a Git remote using SSH.

📦 Features

  • Create repositories under your GitHub username or a specified organization.
  • Choose visibility: --private or --public.
  • Add as Git remote automatically (git remote add).
  • Initialize Git repo and checkout to a default or custom branch.
  • Optionally skip adding Git remote with --remote-only.
  • Create multiple repositories in one command.

Dependencies

Ensure the following tools are installed on your system:

  • Git – Required for local git operations.
  • GitHub CLI (gh) – Used to create repositories on GitHub.
  • Node.js – To run the CLI tool.
  • ts-node – Used if running the tool via TypeScript directly (CLI includes #!/usr/bin/env ts-node).
  • Optional: javascript-obfuscator – Used in the npm run build script for obfuscation.

🚀 Installation

Clone this repo and run:

npm install
npm run build

Or install globally (if published):

npm install -g gitrepo

🛠️ Usage

gitrepo [options] <repo1> <repo2> ...

Options

| Flag | Description | | ----------------- | --------------------------------------------------- | | --org <org> | Specify GitHub organization to create the repo in | | --private | Make repository private (default if neither is set) | | --public | Make repository public | | --remote <name> | Remote name (default: origin) | | --remote-only | Skip local git init and just create GitHub repo | | --branch <name> | Default branch name (default: main) |

📂 Example

# Create a private repo in your personal GitHub and set remote
gitrepo --private my-awesome-tool

# Create a public repo in your organization
gitrepo --org my-org --public new-ui-library

# Only create the remote repo, no local changes
gitrepo --remote-only --org my-org static-assets

# Create multiple repos in one go
gitrepo --public app-api app-web app-utils

🧠 Notes

  • GitHub CLI (gh) is required. Make sure you're authenticated:
    gh auth login
  • SSH key must be configured in your GitHub account.

📄 License

MIT License