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

commit-builder

v1.3.0

Published

Herramientas CLI para commits estandarizados

Readme

⚠️ Advertencia

Esta librería está diseñada para funcionar con proyectos que usan Node.js v16.13.1 o versiones anteriores. Su funcionamiento no está garantizado con versiones más recientes.


🔧 commit-builder

Automatiza la creación de commits en proyectos Git siguiendo convenciones estándar (Conventional Commits), con soporte interactivo y comandos extendidos para push y tag.

Ideal para equipos que buscan consistencia en los mensajes de commits, facilidad en el tagging automatizado y flujos simples para integraciones continuas.


🚀 Instalación

Usar en un proyecto (recomendado)

npm install commit-builder --save-dev

o

yarn add commit-builder --dev

(Opcional) Uso global

npm install -g commit-builder

o

yarn global add commit-builder

🧰 Scripts disponibles

Script: npx commit

Crea un commit interactivo con mensajes estructurados usando Conventional Commits.

Te pedirá:

Tipo (feat, fix, refactor, etc.)
Módulo o componente afectado,
Título breve del cambio,
Mensaje descriptivo opcional.

Resultado del commit:

feat(auth): agrega validación de sesión
Se mejora la validación al iniciar sesión usando tokens temporales.

Script: npx commit-push

Hace un commit interactivo al igual que lo hace npx commit y además realiza git push automáticamente.


Script: npx commit-push-tag

Hace un commit interactivo, realiza push y crea un tag con nombre basado en la rama + hash corto, y lo sube a GitLab.

Ejemplo de tag generado:

qa-feature/login/1a2b3c4

El tag apunta al último commit de la rama.
Si ya existe, lo sobrescribe (-f).


Script: npx new-tag

Crea un tag con nombre basado en la rama actual, hash corto y comentario del último commit.
Luego realiza push del mismo.


Script: npx commit-push-mr

Hace un commit interactivo, realiza push y genera automáticamente una URL para crear un Merge Request en GitLab.

💡 Por ahora este script solo funciona con repositorios GitLab.
Es necesario que el repositorio use protocolo https en su remote y que tengas instalado el CLI oficial glab.

Instalación de glab (todos los sistemas operativos)

macOS (usando Homebrew):

brew install glab

Windows (usando Scoop):

scoop install glab

Windows (alternativa usando Chocolatey):

choco install glab

Linux (Debian/Ubuntu):

curl -s https://raw.githubusercontent.com/profclems/glab/trunk/scripts/install.sh | sudo bash

Linux (Arch Linux):

sudo pacman -S glab

Otra alternativa:

Puedes consultar más métodos de instalación oficiales aquí:
👉 https://gitlab.com/gitlab-org/cli#installation

Autenticación con tu cuenta de GitLab:

glab auth login

Sigue las instrucciones en consola para vincular tu cuenta (usa el protocolo https).

Verificar si estás autenticado correctamente:

glab auth status

Deberías ver tu usuario y el host configurado (por ejemplo: gitlab.com).

Una vez autenticado, el script te mostrará directamente la URL del Merge Request creado, lista para revisar.


🛠️ Setup opcional en package.json

Agrega alias en tu proyecto:

{
  "scripts": {
    "commit": "npx commit",
    "commit-push": "npx commit-push",
    "commit-push-tag": "npx commit-push-tag",
    "new-tag": "npx new-tag",
    "commit-push-mr": "npx commit-push-mr"
  }
}

Y luego puedes ejecutar con:

yarn commit / yarn commit-push / yarn commit-push-tag / yarn commit-push-mr

o

npm run commit / npm run commit-push / npm run commit-push-tag / npm run commit-push-mr

🧪 Tip

Asegúrate de tener Git inicializado y configurado con un remote válido (origin) antes de usar los comandos de push y tag.


📄 Licencia

MIT — libre para usar y adaptar.


¿Listo para tener commits más limpios, consistentes y automatizados? 🎯