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

@avilesodar/n8n-nodes-waha

v0.1.1

Published

Nodo custom de n8n para conectar con WAHA (WhatsApp HTTP API)

Readme

n8n-nodes-waha

Nodo custom de n8n para conectar con WAHA (WhatsApp HTTP API).

Estructura del proyecto

n8n-waha-node/
├── src/
│   ├── index.ts                          # Punto de entrada
│   ├── credentials/
│   │   └── WahaApi.credentials.ts        # Credencial reutilizable (URL + API key)
│   └── nodes/Waha/
│       ├── Waha.node.ts                  # Nodo activo (enviar mensajes, sesión)
│       └── WahaTrigger.node.ts           # Nodo trigger (recibir mensajes)
├── package.json
├── tsconfig.json
└── README.md

Instalación paso a paso

1. Compilar el paquete

cd n8n-waha-node
npm install
npm run build

2. Publicar en npm

El nodo se instala en n8n desde la UI, por lo que necesita estar en el registro de npm.

# Si no tienes cuenta en npm, créala en https://www.npmjs.com
npm login

# Publica el paquete (la primera vez)
npm publish --access public

# Para actualizaciones futuras, sube la versión primero:
# npm version patch   ← bug fix
# npm version minor   ← nueva operación
# npm publish

El nombre del paquete en npm será n8n-nodes-waha (definido en package.json). Si ese nombre ya está tomado, cámbialo a algo único como n8n-nodes-waha-tuempresa.

3. Habilitar Community Nodes en n8n

Agrega esta variable a tu docker-compose de n8n y reinicia:

environment:
  - N8N_COMMUNITY_PACKAGES_ENABLED=true

4. Instalar el nodo desde la UI de n8n

  1. Abre n8n → Settings → Community Nodes → Install
  2. Escribe el nombre del paquete: n8n-nodes-waha
  3. Acepta el aviso de seguridad → Install
  4. n8n se reinicia automáticamente y el nodo ya aparece en el canvas

5. Escanear QR de WhatsApp

  1. Abre el dashboard de WAHA: https://waha.tudominio.com/dashboard
  2. Ve a la sesión default → clic en Start
  3. Escanea el QR con tu WhatsApp

6. Configurar la credencial en n8n

En cualquier nodo WAHA → Create new credential:

  • URL Base: http://waha:3000 (nombre del contenedor en la red homelab)
  • API Key: el valor de WAHA_API_KEY en tu .env

Flujo básico de chatbot en n8n

[WAHA Trigger] → [tu lógica / AI] → [WAHA: Enviar Texto]

En el nodo WAHA Enviar Texto:

  • Número de Destino: ={{ $json.from }} (el que te escribió)
  • Mensaje: ={{ $json.respuesta }} (lo que tu chatbot generó)
  • Sesión: default

Variables de entorno importantes (docker-compose)

| Variable | Descripción | |---|---| | WHATSAPP_API_KEY | Clave para proteger la API de WAHA | | WHATSAPP_HOOK_URL | URL de n8n donde llegan los webhooks | | WHATSAPP_HOOK_EVENTS | Eventos que WAHA reenvía (message, session.status…) | | WHATSAPP_DEFAULT_ENGINE | WEBJS (recomendado) o NOWEB |


Producción

  • Cambia WHATSAPP_API_KEY por una clave segura
  • Reemplaza WEBHOOK_URL en n8n por tu dominio real (con HTTPS)
  • Usa un número de WhatsApp dedicado, no tu número personal