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

github-pull-shark

v1.0.0

Published

Automatically create and merge pull requests to earn the GitHub Pull Shark achievement

Readme

GitHub Pull Shark Achievement Generator

npm version License: MIT

Automatically create and merge pull requests to earn the GitHub Pull Shark achievement on your profile. The Pull Shark achievement is awarded to users who have had multiple pull requests merged.

GitHub Pull Shark Achievement

Installation

# Install globally
npm install -g github-pull-shark

# Or install locally in your project
npm install github-pull-shark

Requirements

  1. A GitHub Personal Access Token (PAT)
  2. A GitHub repository that you own (or have write access to)

Getting a GitHub Personal Access Token

  1. Visit GitHub's token settings
  2. Click "Generate new token" (classic)
  3. Give it a descriptive name (e.g., "Pull Shark Generator")
  4. Select the following permissions:
    • repo (Full control of private repositories)
    • Or at minimum: public_repo (if only using with public repositories)
  5. Click "Generate token"
  6. Important: Copy your token immediately as you won't be able to see it again!

Usage

Command Line Interface (CLI)

You can run the tool directly from the command line:

# Run with interactive prompts
github-pull-shark

# Or provide all options as arguments
github-pull-shark --token YOUR_GITHUB_TOKEN --username YOUR_USERNAME --repo YOUR_REPO --number 4

CLI Options

  • -t, --token <token> - Your GitHub personal access token
  • -u, --username <username> - Your GitHub username
  • -r, --repo <repository> - Target repository name
  • -n, --number <number> - Number of pull requests to create (default: 1)
  • --non-interactive - Run without interactive prompts
  • -V, --version - Output the version number
  • -h, --help - Display help information

Environment Variables

You can also set the following environment variables:

GITHUB_TOKEN=your_github_token
GITHUB_USERNAME=your_username
TARGET_REPO=your_repository

Create a .env file in your project directory with these variables.

Programmatic Usage

You can also use the package programmatically in your JavaScript code:

const PullShark = require('github-pull-shark')

const config = {
  token: 'YOUR_GITHUB_TOKEN',
  owner: 'YOUR_USERNAME',
  repo: 'YOUR_REPOSITORY',
  numPullRequests: 4, // Number of PRs to create
}

const pullShark = new PullShark(config)
pullShark.validate()
pullShark
  .run()
  .then(() => console.log('Done!'))
  .catch((error) => console.error(`Error: ${error.message}`))

Best Practices

  • Create a dedicated repository for this tool to avoid cluttering your main repos
  • GitHub may have rate limits or abuse detection, so don't create too many PRs at once
  • The Pull Shark achievement typically requires at least 2 merged pull requests, but creating 4 is recommended to ensure you receive it

Troubleshooting

Token Permissions

If you're getting authentication errors, make sure your token has the correct permissions as listed above.

Repository Access

Make sure you're using a repository that you own or have write access to.

Rate Limiting

If you hit GitHub's rate limits, try creating fewer PRs or wait a while before trying again.

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 -am 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Created with ❤️ by Muhammad Danial


If you found this package helpful, please consider ⭐ starring our GitHub repository!