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

@335g/pi-git

v0.0.8

Published

Git utilities extension for pi-coding-agent

Readme

@335g/pi-git

npm version License: MIT

A pi-coding-agent extension that adds a /commit command for generating Conventional Commits messages using LLM or heuristic fallback.

Features

  • /commit command – Stage all changes and generate a commit message in one step
  • Inline message support/commit fix typo uses the message directly without AI generation
  • AI-powered generation – Leverages pi's LLM to produce Conventional Commits messages from staged diffs
  • Heuristic fallback – When the LLM is unavailable, generates a commit message from diff analysis
  • Language support – Commit message (subject and body) can be written in English or Japanese (configured via .pi-git/config.toml)
  • Interactive confirmation – Review, edit, or cancel the proposed commit message before executing
  • Merge conflict detection – Refuses to commit when a merge is in progress

Installation

pi install @335g/pi-git

Or add it to your pi package config:

{
  "packages": {
    "@335g/pi-git": "latest"
  }
}

Usage

Basic commit

In a pi session, inside a git repository:

/commit

This will:

  1. Check for merge conflicts
  2. Check for uncommitted changes
  3. Stage all files (git add -A)
  4. Analyze the staged diff
  5. Generate a Conventional Commits message via LLM
  6. Present the message for confirmation
  7. Execute the commit

Inline commit message

/commit fix typo in header

Skips AI generation and commits directly with the provided message.

Configuration

Create .pi-git/config.toml in your project root to set the commit body language:

# .pi-git/config.toml
lang = "ja"   # Commit message in Japanese (default: "en" — English)

Commit Message Convention

Generated messages follow the Conventional Commits specification:

type(scope): subject

body

footer

Types

| Type | Description | |------------|-----------------------------------------------------| | feat | New feature, command, option, or API | | fix | Bug fix or correction of unintended behavior | | refactor | Code structure improvement without behavior change | | chore | Build config, dependencies, CI, repository setup | | docs | Documentation-only changes | | test | Adding or modifying tests | | style | Code formatting (no behavioral impact) | | perf | Performance improvements |

Development

# Install dependencies
npm install

# Build
npm run build

# Run tests
npm test

Requirements

License

MIT © Yoshiki Kudo