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

gitpt

v1.7.2

Published

CLI tool that helps you write commit messages & pull request descriptions using AI

Readme

GitPT

GitPT (Git Prompt Tool) is a git command alias that writes your commit messages with an LLM, built for on-device models. Use it anywhere you use git: every command it doesn't change passes straight through, so you can replace git with it and lose nothing. The one command that changes is commit, which writes the message for you.

Big remote models already write commits fine. The harder case is the small local model on your machine (Apple's Foundation Models, Ollama, LM Studio), which holds only a few thousand tokens. A real diff is much larger, so GitPT summarizes it file by file until it fits the model's context window, then writes the message from that summary. Remote APIs (OpenAI, Anthropic, OpenRouter) work too.

GitPT generating a commit message

The diff is summarized to fit the model's context window before the message is written.

New: Apple Foundation Models. On macOS 27 and later, GitPT runs on Apple's built-in on-device model. No API key, no signup, nothing leaves your Mac. Run gitpt setup and choose Apple Foundation Models.

Install

npm install -g gitpt

Setup

gitpt setup     # pick a model

Optional: alias git so GitPT runs everywhere you already type git.

alias git=gitpt

Use

With plain git, you write the message yourself:

git add .
git commit -m "fix: handle empty staged diff"   # you write the message

With GitPT, you don't:

gitpt add .
gitpt commit                                    # GitPT writes it from the diff

gitpt commit reads your staged diff, writes the message, and opens it in your editor. Save and close to commit.

Through plain git commit

Prefer typing git commit? Two ways:

  • Shell alias — add alias git=gitpt to your shell rc, then git commit runs GitPT.
  • Git hook — run gitpt hook install once. A normal git commit (without -m) then opens your editor prefilled with an AI-generated message. It steps aside for -m, merges, squashes, and amends, and never blocks a commit if generation fails. Remove it with gitpt hook uninstall.

Commands

  • gitpt commit: write a commit message from staged changes. Respects -m and your commitlint rules.
  • gitpt model: pick or switch the model. Each provider keeps its own key.
  • gitpt setup / gitpt config / gitpt reset: configure, show, or clear settings.
  • gitpt pr create: draft a pull request title and description with the gh CLI (experimental).
  • gitpt hook install / gitpt hook uninstall: use GitPT through a plain git commit via a prepare-commit-msg hook.

Models

  • On-device: Apple's Foundation Models on macOS 27 or later (no API key), or any OpenAI-compatible local server such as Ollama or LM Studio.
  • Remote: OpenAI, Anthropic, OpenRouter. Bring an API key.

Requests and bugs

Want a feature or hit a bug? Open an issue.

License

MIT