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

gitla

v1.3.1

Published

Git workflow automation CLI - branch, commit, push, cherry-pick in one command

Readme

gitla

Git workflow automation CLI. From uncommitted changes to pushed branches in one command.

What it does

Automates the team's standard git flow:

  1. Stashes your changes
  2. Pulls the latest source-branch
  3. Applies the stash (kept as backup until the workflow completes successfully)
  4. Runs lint + build checks
  5. Creates a task branch from source-branch, commits and pushes
  6. Checks out dev-branch, creates a -dev branch, cherry-picks the commit, pushes
  7. Optionally opens a PR to dev-branch

Installation

npm install -g gitla

That's it. gitla is now available globally.


First run

The first time you run gitla with no arguments, it starts an interactive setup wizard:

No config found. Let's set it up, you can edit this later:

  Available tokens: {type}, {board}, {task}
  {board} and {task} are required in both patterns, {type} is optional

Jira board name (e.g. TTBO):
Branch name pattern (press enter for default "{type}/{board}-{task}"): 
Commit message prefix pattern (press enter for default "{type}: [{board}-{task}]"): 
AI provider (anthropic/openai) — press enter to skip AI: 
Always open a PR after push? (y/n):
Run build check before proceeding? (y/n):

Config is saved to ~/.gitlarc.json


Usage

Manual mode — provide branch type and message yourself

gitla -b feat-123 -m "add login page"

Must be on source-branch. -b takes <type>-<taskNumber>. No confirmation prompt in manual mode.


Update mode — already on a task branch, push an update

gitla -m "fix edge case in login"

AI mode — let AI write the commit message and pick the branch type

gitla --ai 123

Must be on source-branch. AI analyzes your diff, picks the branch type (feat, fix, etc.) and writes the commit message.

Requires ai to be configured in ~/.gitlarc.json


When you're already on a task branch (anything that's not source-branch, dev-branch, or master), gitla skips branch creation and:

  1. Commits and pushes the current branch
  2. Checks out the -dev branch (creates it if it doesn't exist), cherry-picks, pushes
  3. Returns you to the task branch

Unfuck mode — remove changes from source-branch before a prod deploy

When you need to merge source-branch to master but some changes shouldn't go to prod yet, --unfuck removes them cleanly without messing up the git history. It creates a new undo/{original-branch-name} branch, applies the inverse of the commits, and opens a PR back to source-branch.

# By full branch name — finds all commits matching it in source-branch
gitla --unfuck TTBO-123

# Single commit
gitla --unfuck a1b2c3d

# Range of commits (includes both ends, order doesn't matter, gitla figures it out)
gitla --unfuck a1b2c3d e4f5g6h

Must be on source-branch. The undo branch is named after the original branch (e.g. undo/feat/TTBO-123).


Options

| Flag | Description | |---|---| | --ai <taskNumber> | AI mode — generates branch type and commit message | | -b <type-task> | Branch type and task number (e.g. feat-123) | | -m <message> | Commit message | | --unfuck <target> | Remove changes by ticket or commit hash(es) from source-branch | | -y, --yes | Skip confirmation prompt | | --skip-checks | Skip lint check, build, and husky hooks for this run |


Config

Config lives at ~/.gitlarc.json. Open it with:

gitla config

Fields

{
  "board": "TTBO",
  "sourceBranch": "staging",
  "devBranch": "develop",
  "branchPattern": "{type}/{board}-{task}",
  "commitPattern": "{type}: [{board}-{task}]",
  "ai": {
    "provider": "anthropic",
    "apiKey": "sk-ant-...",
    "model": "claude-haiku-4-5-20251001",
    "flags": ["feat", "fix", "refactor", "chore"]
  },
  "alwaysOpenPR": false,
  "buildBeforeProceed": true,
  "enableNotifications": true
}

| Field | Required | Description | |---|---|---| | board | Yes | Jira board prefix (e.g. TTBO) | | sourceBranch | Yes | The branch you work on and create task branches from (e.g. staging) | | devBranch | Yes | The branch task changes get cherry-picked to (e.g. develop) | | branchPattern | Yes | Branch name template. Must include {board} and {task}. {type} is optional. | | commitPattern | Yes | Commit message prefix template. Same tokens. | | ai | No | Remove or omit to disable AI entirely | | ai.provider | Yes (if ai) | anthropic or openai | | ai.apiKey | Yes (if ai) | Your API key | | ai.model | No | Defaults to claude-haiku-4-5-20251001 (Anthropic) or gpt-4o-mini (OpenAI) | | ai.flags | Yes (if ai) | Branch type options AI can choose from | | alwaysOpenPR | No | Skip the PR prompt and always open one (default: false) | | buildBeforeProceed | No | Run npm run build before git operations (default: true) | | enableNotifications | No | macOS notifications + terminal bell on finish/fail (default: true) |

Pattern tokens

| Token | Value | |---|---| | {type} | Branch type (feat, fix, etc.) — optional | | {board} | Your Jira board name (TTBO) | | {task} | Task number (123) |

Examples:

| branchPattern | Result | |---|---| | {type}/{board}-{task} | feat/TTBO-123 | | {board}-{task} | TTBO-123 | | {type}-{board}-{task} | feat-TTBO-123 |

| commitPattern | Result | |---|---| | {type}: [{board}-{task}] | feat: [TTBO-123] add login page | | {board}-{task} | TTBO-123 add login page | | [{type}] {board}-{task} | [feat] TTBO-123 add login page |


Notifications

On completion (or failure), gitla fires a terminal bell and a macOS native notification.

To make notifications persist instead of disappearing instantly: System Settings → Notifications → Script Editor → set to Alerts.


Updating gitla

npm update -g gitla

Uninstalling gitla

npm uninstall -g gitla