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 🙏

© 2025 – Pkg Stats / Ryan Hefner

git-describe-ai

v1.1.4

Published

Generate conventional commit messages from git diff using AI

Readme

git-describe-ai

npm version

AI를 이용해 git diff 기반 커밋 메세지를 자동으로 생성해주는 CLI 도구입니다. Conventional Commits 형식의 커밋 메세지를 영어 또는 한국어로 생성할 수 있으며, 필요시 간단한 설명도 함께 포함됩니다.


소개

많은 개발자들이 커밋 시점에 메시지를 어떻게 작성할지 고민하며 시간을 소모하거나, fix, update, test와 같은 의미 전달이 부족한 메시지를 반복적으로 작성하는 경우가 많습니다.

하지만 커밋 메시지는 협업, 변경 추적, 코드 리뷰, 디버깅에 핵심적인 메타데이터입니다.

단순 커밋 메시지 외에, 변경 내용을 짧은 bullet로 정리해주는 설명 옵션은 코드리뷰나 PR 메시지에도 그대로 붙여 쓸 수 있습니다.

git-describe-ai는 AI로 git diff를 요약하여 커밋 메시지를 자동 생성하는 도구입니다. 커밋 메시지를 고민하지 않아도, 일관되고 읽기 쉬운 로그를 남길 수 있습니다.


기능

  • Git 변경사항 기반 커밋 메세지 자동 생성
  • 영어 / 한국어 옵션 지원 (--lang en or --lang ko)
  • description 항목 추가 (--des)
  • 커밋 메세지와 description의 근거인 변경된 diff 내용 확인 (--diff)
  • Ollama 기반 LLM 사용 (로컬에서 작동)

설치

npm install -g git-describe-ai

사용법

1. 커밋할 파일을 stage 하기

git add .

2. 커밋 메세지 생성

git-describe-ai --lang ko
git-describe-ai --lang en
git-describe-ai --lang en --des
git-describe-ai --lang en --des --diff

| 옵션 | 설명 | |-----------|----------------------------------------------------| | --lang | 출력 언어 설정 (en, ko) | | --des | 변경 요약 설명 포함 (2~4줄) | | --diff | 어떤 변경사항을 기준으로 생성했는지 함께 출력함 |


예시 출력(git-describe-ai --lang ko --des --diff)

✨ Suggested commit message:
feat: 필터링 기능 개선
- 다중 선택 지원
- 백엔드에 파라미터 전송 방식 변경

📄 Based on git diff:

diff --git a/src/filter.ts b/src/filter.ts
index 123abc4..567def8 100644
--- a/src/filter.ts
+++ b/src/filter.ts
@@ -10,6 +10,12 @@
+  const selected = options.split(',');
+  queryParams.set('filter', selected.join(','));

Ollama 설치 및 실행 안내(macOS 기준)

1. 설치

brew install ollama

2. 모델 선택 및 실행 (예: mistral)

ollama run mistral

처음 실행 시 모델이 다운로드됩니다.

3. 서버 실행

ollama serve

또는 ollama run mistral로도 자동 실행됩니다.


.env 루트 디렉토리에 설정

OLLAMA_URL = "http://localhost:11434/api/generate"
OLLAMA_MODEL = "mistral"

.env 없이도 기본값(mistral, localhost)으로 동작하지만,
환경에 따라 모델 이름이나 서버 주소를 설정할 수 있습니다.