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

check-dependencies-ai

v1.0.7

Published

Verifica la compatibilidad de dependencias en package.json usando OpenAI

Downloads

61

Readme

🛠️ check-dependencies-ai

Verifica la compatibilidad de dependencias en package.json usando OpenRouter AI 🤖
📌 Compatible con Linux, macOS y Windows

Este script analiza las dependencias de tu proyecto y consulta OpenRouter (OpenAI, Mistral, DeepSeek, etc.) para detectar posibles problemas de compatibilidad.
Se instalarán automáticamente las librerías necesarias si no están presentes.


🔑 Configuración de la API Key

Antes de usar el módulo, necesitas una API Key de OpenRouter.
📌 Crea tu API Key en: https://openrouter.ai/settings

Luego, configura la API Key en tu sistema con:

check-dependencies-ai setup

Esto te pedirá que ingreses la API Key, el modelo de IA a utilizar (gpt-4o, mistral, deepseek, etc.) y guardará la configuración en un archivo .env.


🚀 Instalación y uso

1️⃣ Usar con npx (sin instalación)

Ejecuta directamente sin instalar nada:

npx check-dependencies-ai

2️⃣ Instalar globalmente

Si prefieres instalarlo en tu sistema para usarlo en cualquier proyecto:

npm install -g check-dependencies-ai
check-dependencies-ai

3️⃣ Especificar un package.json manualmente

Si quieres analizar otro proyecto diferente al actual:

check-dependencies-ai -p /ruta/a/otro/package.json

🛠 ¿Qué hace esta herramienta?

Detecta automáticamente el package.json correcto (fuera de node_modules).
Verifica si las dependencias instaladas coinciden con las requeridas.
Consulta a OpenRouter AI (OpenAI, Mistral, DeepSeek, etc.) para detectar incompatibilidades y sugerir soluciones.
Compatible con entornos Linux, macOS y Windows (con PowerShell).


📌 Requisitos

  • Node.js instalado (versión 16+)
  • Clave de API de OpenRouter en la variable de entorno OPENROUTER_API_KEY

Para configurarla manualmente, agrega esta línea a tu ~/.bashrc, ~/.zshrc o variables de entorno de Windows:

export OPENROUTER_API_KEY="tu-api-key-aqui"

Luego ejecuta:

source ~/.bashrc  # o source ~/.zshrc si usas Zsh

En Windows:

[System.Environment]::SetEnvironmentVariable("OPENROUTER_API_KEY", "tu-api-key-aqui", "User")

⚠️ Advertencia

Este script no modifica archivos del sistema, pero instalará automáticamente librerías npm si faltan.
Si prefieres evitar esto, instala manualmente con:

npm install openai dotenv commander axios

🤖 Ejemplo de uso

1️⃣ Verificar dependencias de un proyecto

check-dependencies-ai

Salida esperada:

📂 Usando package.json en: /home/user/mi-proyecto/package.json
🔍 Verificando dependencias con OpenRouter AI...

🤖 Respuesta de la IA:
- express: requerido ^4.17.1, instalado 4.18.2 ✅
- cors: requerido ^2.8.5, instalado 2.8.5 ✅
- body-parser: requerido ^1.19.0, instalado 1.20.0 ⚠️ (posible incompatibilidad)

Sugerencia: Considera actualizar `body-parser` a la última versión estable.

2️⃣ Verificar un package.json específico

check-dependencies-ai -p /home/user/otro-proyecto/package.json

📝 Licencia

MIT © 2025


👨‍💻 Contribuciones

¡Las contribuciones son bienvenidas! Si quieres mejorar esta herramienta:

  1. Haz un fork del repositorio.
  2. Crea una nueva rama (feature/nueva-funcionalidad).
  3. Haz un commit con tus cambios (git commit -m "Añadir nueva funcionalidad").
  4. Envía un pull request.

¿Te gustó esta herramienta?

Si te resultó útil, dale una estrella ⭐ en GitHub y ayúdame a mejorarla.
🚀 ¡Gracias por usar check-dependencies-ai! 🚀


🔥 Cambios en esta versión

Compatibilidad con Windows, macOS y Linux.
Ahora se puede usar sin instalar con npx.
Manejo mejorado de package.json con opción -p.
Se mejoró la documentación de la configuración de la API.