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

leganux-commit-describer

v1.0.0

Published

CLI tool to describe git commit changes using DeepSeek AI

Readme

lnxcommit — Leganux Commit Describer

CLI que analiza los cambios de tus commits de Git y genera una descripción legible en español usando IA (DeepSeek).


Requisitos

  • Node.js >= 18
  • Una API key de DeepSeek
  • El directorio donde lo uses debe ser un repositorio Git

Instalación

Opción A — Global desde npm

npm install -g leganux-commit-describer

Opción B — Clonar y enlazar localmente

git clone https://github.com/leganux/leganux-commit-describer.git
cd leganux-commit-describer
npm install
npm link

Tras la instalación el binario lnxcommit quedará disponible en tu PATH.


Comandos

lnxcommit configure

Guarda tu API key de DeepSeek en ~/.lnx_commit_describer/config.json. Solo necesitas ejecutarlo una vez (o cuando quieras cambiar la key).

lnxcommit configure

Flujo interactivo:

🔧  Configuración de lnxcommit

API key actual: (no configurada)

? Ingresa tu API key de DeepSeek: ****************************

✅  API key guardada en: /Users/<tu-usuario>/.lnx_commit_describer/config.json

lnxcommit describe

Analiza el repositorio Git del directorio actual (o del indicado con --path) y muestra la descripción de cambios directamente en la consola.

# En el directorio del repo
lnxcommit describe

# Apuntando a otro repositorio
lnxcommit describe --path /ruta/al/repo

Salida de ejemplo:

🔍  Analizando cambios en: /Users/leganux/mi-proyecto

:sparkles: Título: Migración de script a librería npm con CLI interactivo

- :sparkles: Se agrega el archivo `bin/lnxcommit.js` que expone el CLI con commander
- :recycle: Se refactoriza `describe-changes.js` separando la lógica en `lib/core.js`
- :memo: Se actualiza `README.md` con instrucciones completas de uso
- :package: Se crea `package.json` definiendo el binario `lnxcommit`

Resumen: Se convirtió el script original en una herramienta de línea de comandos instalable...

Opciones

| Opción | Descripción | |--------|-------------| | --path <ruta> | Ruta al repositorio git (por defecto: directorio actual) |


lnxcommit describeandexport

Igual que describe, pero además exporta el resultado a un archivo .txt.

# Exporta a commit-description.txt en el directorio actual
lnxcommit describeandexport

# Con ruta y nombre de archivo personalizado
lnxcommit describeandexport --path /ruta/al/repo --output ./changelog/cambios.txt

Salida de ejemplo:

🔍  Analizando cambios en: /Users/leganux/mi-proyecto

- :sparkles: ...
- :bug: ...

📄  Descripción exportada a: /Users/leganux/mi-proyecto/commit-description.txt

El archivo generado tiene el siguiente formato:

# Descripción de cambios
Generado: 2026-05-06 14:00:00
Directorio: /Users/leganux/mi-proyecto

- :sparkles: Título: ...
- :recycle: ...
...

Opciones

| Opción | Descripción | |--------|-------------| | --path <ruta> | Ruta al repositorio git (por defecto: directorio actual) | | --output <archivo> | Archivo de salida (por defecto: commit-description.txt en el repo) |


Configuración almacenada

La API key se guarda de forma local en tu máquina en:

~/.lnx_commit_describer/config.json

Ejemplo del contenido:

{
  "apiKey": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Este archivo es solo tuyo y nunca se sube al repositorio (está en .gitignore).


Cómo funciona internamente

  1. Detecta la rama base de comparación (origin/main, origin/master o HEAD~1).
  2. Obtiene git diff --name-status y el patch unificado contra esa base.
  3. Construye un prompt en español y lo envía a la API de DeepSeek (deepseek-chat).
  4. Formatea la respuesta como viñetas con gitmoji y la muestra / guarda.

Estructura del proyecto

leganux-commit-describer/
├── bin/
│   └── lnxcommit.js        # Punto de entrada del CLI (commander)
├── lib/
│   └── core.js             # Lógica reutilizable (git, AI, config)
├── describe-changes.js     # Script original (standalone)
├── package.json
└── README.md

Licencia

MIT © leganux