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

@victorhalla/n8n-nodes-wwebjsapi

v1.1.3

Published

n8n community node for WWebJS API (WhatsApp Web JS wrapper)

Readme

n8n-nodes-wwebjsapi

Node n8n para integração completa com a WWebJS API — um wrapper REST para o WhatsApp Web JS.

🚀 Instalação

# No diretório do n8n
npm install n8n-nodes-wwebjsapi

Ou via interface do n8n: Settings → Community Nodes → Install


⚙️ Configuração

  1. No n8n, crie uma credencial do tipo WWebJS API Credentials
  2. Preencha:
    • Base URL: URL do seu servidor WWebJS (ex: http://localhost:3000)
    • API Key: valor da variável API_KEY configurada no servidor

📋 Operações disponíveis

O node é gerado automaticamente a partir do swagger.json da API. As operações são organizadas por categoria:

Session

| Operação | Descrição | |---|---| | Get all sessions | Lista todas as sessões ativas | | Start session | Inicia uma nova sessão | | Stop session | Para uma sessão | | Get session status | Status atual da sessão | | Get session QR code | Dados do QR code | | Get QR code as image | QR code como imagem PNG | | Request pairing code | Autenticar via código de pareamento | | Restart session | Reinicia a sessão | | Terminate session | Encerra a sessão | | Terminate inactive sessions | Encerra todas sessões inativas | | Terminate all sessions | Encerra todas as sessões | | Get page screenshot | Screenshot do browser |

Client

| Operação | Descrição | |---|---| | Get connection info | Informações da conexão atual | | Accept group invite | Aceita convite de grupo | | Archive chat | Arquiva um chat | | Create group | Cria um grupo | | Get all chats | Lista todos os chats | | Get all contacts | Lista todos os contatos | | Get number ID | Obtém WID de um número | | Send message | Envia mensagem de texto | | Send media from URL | Envia mídia por URL | | Set status message | Define mensagem de status | | Check if user is registered | Verifica se número está no WhatsApp | | Get chat by ID | Detalhes de um chat | | Get contact by ID | Detalhes de um contato |

Message

| Operação | Descrição | |---|---| | Get messages from chat | Lista mensagens de um chat | | Delete message | Deleta uma mensagem | | React to message | Reage com emoji | | Star message | Marca/desmarca mensagem como favorita |


🔄 Atualizar para nova versão da API

O node é gerado automaticamente a partir do swagger.json. Para atualizar:

# Opção 1: Script automático
bash scripts/update-swagger.sh

# Opção 2: Manual
curl -o swagger.json https://raw.githubusercontent.com/avoylenko/wwebjs-api/refs/heads/main/swagger.json
node scripts/generate-from-swagger.js
npm run build

🛠️ Desenvolvimento

# Clone e instale
git clone <repo>
cd n8n-nodes-wwebjsapi
npm install

# Gerar a partir do swagger atual
npm run generate

# Compilar
npm run build

# Desenvolver com watch
npm run dev

📁 Estrutura do projeto

n8n-nodes-wwebjsapi/
├── swagger.json                    # ← Atualize este arquivo para novas versões
├── scripts/
│   ├── generate-from-swagger.js   # Gerador automático do node
│   └── update-swagger.sh          # Script de atualização completa
├── nodes/
│   └── WWebjsApi/
│       ├── WWebjsApi.node.ts      # ← GERADO AUTOMATICAMENTE
│       └── wwebjs.svg
├── credentials/
│   └── WWebjsApiCredentials.credentials.ts
├── package.json
└── tsconfig.json

⚠️ Não edite WWebjsApi.node.ts diretamente — ele é regerado a cada atualização.


📄 Licença

MIT