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-jira-fast-ticket

v2.3.0

Published

Streamline your workflow with this CLI tool that creates Jira tickets and automatically switches to a new Git branch named after the ticket. Perfect for developers using Git and Jira for project management on Unix-like systems.

Readme

git-jira-fast-ticket

CI CI and Release

Create a Jira work item and immediately switch to a Git branch named after it.

$ git-jira-fast-ticket PAY "Fix the checkout redirect"
Jira ticket created: PAY-412 - https://your-domain.atlassian.net/browse/PAY-412
Switched to a new branch 'PAY-412-Fix-the-checkout-redirect'

Quickstart

  1. Install it:

    npm install -g git-jira-fast-ticket
  2. Configure it once. The wizard asks for your Jira URL, your email and an API token, and where to keep the token:

    git-jira-fast-ticket setup
  3. Create a ticket from inside any Git repository:

    git-jira-fast-ticket PAY "Fix the checkout redirect"

Run git-jira-fast-ticket --help at any time to see what is configured and where each value came from.

Requirements

  1. Node.js 18 or newer. Node is the only runtime this tool needs; there is no Bash, curl or jq involvement.
  2. Git 2.x. The tool creates the ticket and then creates the branch.

Creating a Jira API token

  1. Open https://id.atlassian.com/manage-profile/security/api-tokens (Atlassian profile → Security → API tokens).
  2. Choose Create API token, give it a name, and copy the value.
  3. Paste it when the setup wizard asks for the Personal Access Token. It is read without echoing and never printed.

The email must be the address you sign in to Jira with; the URL is your site root, for example https://your-domain.atlassian.net.

Configuration

Settings live in Git config, under the jira-fast-ticket section. That means there is no config file to create, and both scopes come for free: git config --global applies everywhere, git config --local applies to one repository and takes precedence.

| Setting | Environment variable | Default | Purpose | | --- | --- | --- | --- | | jira-fast-ticket.url | JIRA_URL | — | Jira site root, for example https://your-domain.atlassian.net | | jira-fast-ticket.email | JIRA_EMAIL | — | The email you sign in to Jira with | | jira-fast-ticket.token | JIRA_PAT | — | A Jira API token | | jira-fast-ticket.issueType | JIRA_ISSUE_TYPE | Task | Work item type to create |

Values are resolved per setting, first match wins:

  1. A non-empty environment variable.
  2. The repository-local Git config.
  3. The global Git config.
  4. The default, where the setting has one.

To set them by hand:

git config --global jira-fast-ticket.url https://your-domain.atlassian.net
git config --global jira-fast-ticket.email [email protected]
git config --local  jira-fast-ticket.token <your-api-token>

The wizard writes the URL and email globally. It asks where the token should go:

  1. This repository (the default) writes it to .git/config, which cannot be committed, so the token cannot leak into the repository.
  2. All repositories writes it to the shared Git config, which is convenient but also the file people paste into public dotfiles repositories.

A repository-scoped token also lets you point the URL at a second Jira site in one repository without affecting the others.

Usage

git-jira-fast-ticket <PROJECT_KEY> <TITLE> [DESCRIPTION] [OPTIONS]

Because Git resolves git-<name> from PATH, the subcommand form works as well:

git jira-fast-ticket PAY "Fix the checkout redirect"
  1. PROJECT_KEY: the Jira project key, for example PAY.
  2. TITLE: the work item summary.
  3. DESCRIPTION: optional; a plain-text description. Defaults to the title.

Options:

| Option | Effect | | --- | --- | | -x, --no-checkout | Create the ticket but only print the branch command; do not create or switch branches | | --configure | Run the setup wizard, same as git-jira-fast-ticket setup | | -v, --version | Print the version | | -h, --help | Print help and the configuration status | | -- | Treat everything after it as positional arguments |

The created work item is printed, and the branch is created and checked out. The branch name is <KEY>-<title> with every run of characters outside A-Za-z0-9 collapsed to a single dash and any leading or trailing dash removed, so Fix the checkout redirect becomes PAY-412-Fix-the-checkout-redirect.

Troubleshooting

The tool prints the reason Jira gave, plus a hint that names the setting to check.

| Message | Fix | | --- | --- | | Missing required configuration: JIRA_URL, ... | Run git-jira-fast-ticket setup, or set the missing keys as shown in the message | | 401 / 403 | The email or token is wrong or expired. Check JIRA_EMAIL and JIRA_PAT, or create a new API token | | 404 | JIRA_URL is wrong, or the project key does not exist | | 400, or an error naming issuetype | The project does not use the configured work item type. Set it: git config --global jira-fast-ticket.issueType Story | | 429 | Jira is rate limiting. Retry in a moment | | 5xx | A Jira-side error. Retry shortly | | A network error | Check that JIRA_URL is reachable and that the machine is online |

Development

git clone https://github.com/tiriana/git-jira-fast-ticket.git
cd git-jira-fast-ticket
npm ci
npm test

The suite uses the built-in node:test runner and needs no network access or real credentials: the end-to-end tests run the real entry point inside temporary repositories against a local Jira stub.